Don't click here unless you want to be banned.

LSL Wiki : Camera

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are


SL includes both first-person and third-person camera modes. By disconnecting the camera from the avatar (to around 50m max away [see Notes below]), a lot more can be done otherwise. Some uses of the camera functions are for vehicles and machinima.


Function Description
llClearCameraParams Resets all camera values to their defaults.
llSetCameraParams Sets camera parameters.
llForceMouselook Sets camera to mouselook if an avatar sits on the object.
llGetCameraPos Gets current camera position for agent.
llGetCameraRot Gets current camera rotation for agent.
llReleaseCamera Returns camera to agent.
llSetCameraAtOffset Sets camera offset (position) to look at if an avatar sits on the object.
llSetCameraEyeOffset Sets camera eye offset if an avatar sits on the object.

Camera Modes

  1. seated avatar
    1. normal sitting cam (llSetCameraEyeOffset, llSetCameraAtOffset)
    2. scripted "follow cam" (llSetCameraParams)
  2. standing avatar
    1. normal avatar cam
    2. scripted "follow cam"
  3. alt-zoom
    1. another object or avatar
    2. a fixed point in space or the ground
  4. customize avatar mode
  5. mouselook

Hitting Esc in modes 3-5 will pop out to modes 1-2, depending on the situation (whether you are sitting or not, for example).

When grabbing/touching, the camera mode is 3b where the camera is locked to a fixed point in space. It isn't a special "grab" camera but just a variation of alt-zoom.

Scripted camera controls with llSetCameraParams are not active when in alt-zoom, customize avatar mode, or mouselook.


Q: How do I take a snapshot with LSL?
A: You can't. You need both a client (to render the image) and a user (to push the button) to take a snapshot. Short of some sort of macro system running on your computer, there's no way to automate this process.

Functions | Agent/Avatar
There are 7 comments on this page. [Display comments/form]