Difference between revisions of "LSL Protocol/Restrained Love Open Relay Group/camera"

From Second Life Wiki
Jump to navigation Jump to search
Line 12: Line 12:
*!x-setcamera
*!x-setcamera
*!x-setcamera/clear
*!x-setcamera/clear
*!x-poscamera
*!x-poscamera/clear


The purpose of this x-tension is to enable the relay to control the camera of the wearer. The following commands summarize the use of the camera generally used by RLV controllers (at least the use we are aware of).
The purpose of this x-tension is to enable the relay to control the camera of the wearer. The following commands summarize the use of the camera generally used by RLV controllers (at least the use we are aware of).

Revision as of 00:34, 22 July 2011

camera

STATUS: proposal

version: 000

RECOMMENDED WITH: vision

  • !x-thirdview, synonym of the Susan's relay command @thirdview=add/n
  • !x-thirdview/clear, synonym of the Susan's relay command @thirdview=rem/y
  • !x-setcamera
  • !x-setcamera/clear
  • !x-poscamera
  • !x-poscamera/clear

The purpose of this x-tension is to enable the relay to control the camera of the wearer. The following commands summarize the use of the camera generally used by RLV controllers (at least the use we are aware of).

Description of !x-thirdview and !x-thirdview/clear

!x-thirdview forces the wearer of the relay to use mouselook mode. The interest of this command is to be able to force the wearer to use mouselook mode even in grid-wide mode.

  • The acknowledgment for !x-thirdview is either !x-thirdview,ok or !x-thirdview,ko, not @thirdview=add,ok or @thirdview=add,ko.
  • The acknowledgment for !x-thirdview/clear is either !x-thirdview/clear,ok or !x-thirdview/clear,ko, not @thirdview=add,ok or @thirdview=add,ko.

Interaction of !x-thirdview with !x-vision

When the wearer does not want to switch to mouselook mode, a blind command like !x-vision/<0'0'0>/1.0/TEXTURE_BLANK/1.0'1.0/0.0'0.0/0.0 will be executed by the relay itself until the wearer changes the mode.

Description of !x-setcamera and !x-setcamera/clear

This command requires for the script in the relay to have the PERMISSION_CONTROL_CAMERA. The syntax of !x-setcamera follows the syntax of the LSL command llSetCameraParams(). So the syntax is

!x-setcamera/INTEGER/FLOAT/FLOAT/FLOAT/FLOAT/INTEGER/VECTOR/FLOAT/FLOAT/VECTOR/FLOAT/INTEGER/FLOAT

See http://lslwiki.net/lslwiki/wakka.php?wakka=llSetCameraParams for further details. When a parameter is the empty string, the default value must be used. So !x-setcamera/clear is equivalent to !x-setcamera/////////////. This command is a restriction, i.e. in ask mode, a permission must be granted. When several controllers send camera settings, a stack of settings is created and the last one is used. When the stack is empty, the wearer's camera goes back to default settings, i.e. llClearCameraParams() is executed.

Description of !x-poscamera and !x-poscamera/clear

This command requires for the script in the relay to have the PERMISSION_TRACK_CAMERA. The syntax of !x-poscamera is

!x-poscamera/FLOAT

It forces the wearer to keep the camera close to the avatar, the distance must not be greater than the float number given in parameter. The command !x-poscamera/0 is equivalent to !x-poscamera/clear. This command is a restriction, i.e. in ask mode, a permission must be granted. When several controllers send !x-poscamera, a stack of distances is created and the last one is used. When the stack is empty, the wearer's camera goes back to the default setting.

Interaction of !x-poscamera with !x-vision

When the wearer keeps the camera too far, a blind command like !x-vision/<0'0'0>/1.0/TEXTURE_BLANK/1.0'1.0/0.0'0.0/0.0 will be executed by the relay itself until the wearer puts the camera closer.