@setcam_fov:<radians>=force zooms the camera to a particular vertical field of view. It doesn't stop the user from zooming again afterwards; use @setcam_fovmin/@setcam_fovmax for that.

Syntax

@setcam_fov:<fov_in_radians>=force

Parameters

fov_in_radians
Vertical field of view. The viewer's default is 60° = 1.0472 rad. The value is clamped to the camera's own min/max view, then to any RLV zoom/FOV limits.

Specification

Calls LLViewerCamera::setDefaultFOV(value) and stores the resulting (clamped) angle in the CameraAngle setting, so it persists like a manual zoom.

Caveats

Examples

llOwnerSay("@setcam_fov:0.5=force");   // zoom in (about 29 degrees)
llOwnerSay("@setcam_fov:1.0472=force"); // back to default

See also

Implementation notes

RRInterface.cpp:2372-2376. The RLV clamping happens inside setDefaultFOV (llviewercamera.cpp:821-831) against mCamZoomMin/mCamZoomMax.

Client differences

No differences found between Marine's RLV and CoolVL (mkrlinterface.cpp:2871-2877).

Comparison with RLVa

No significant differences from RLVa's @setcam_fov.