Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Forced camera locking

Kyle Kips
Registered User
Join date: 29 May 2008
Posts: 1
07-15-2008 16:42
I am working on reconstructing, within Second Life, an experiment previously performed in a laboratory. Participants view an object from a specific angle, perform a mental task, and then make a decision. The experiment necessitates that participants only view the object from the predetermined angle.

The current plan is to have participants sit their avatars in a scripted chair. The script will then move the camera to the predetermined location of the object and set it to the proper viewing angle.

My question is, is it possible to forcibly lock someone's camera such that they cannot move or rotate it at all while they are seated in the scripted chair? (i.e. temporarily lock the participant out of using Focus/Orbit/Pan modes)
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
07-15-2008 17:38
Not with the regular client. Theoretically, it should be possible to create a client that disabled user cam control, but it would be difficult to get anybody to agree to download and use it.

Thinking about this practically, a script could get PERMISSION_TRACK_CAMERA and use llGetCameraPos() and -Rot() to detect when the cam moved from the scripted orientation; then you could throw out those trials and admonish the subject to keep their mitts off the cam controls.
_____________________
Archived for Your Protection
Selavy Oh
conceptual
Join date: 28 Feb 2007
Posts: 4
07-29-2008 13:29
or you could make the object invisible by sending it a message when you detect that the camera has been moved by the subject. alternatively, you could rotate the object so that it is always seen from the same viewing angle.
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
07-30-2008 15:16
or you could simply provide the viewer with an IMAGE of the object.
_____________________

● Inworld Store: http://slurl.eclectic-randomness.com
● Website: http://www.eclectic-randomness.com
● Twitter: @WinterVentura
Cryas Tokhes
Great Googley Moogley...
Join date: 8 Feb 2006
Posts: 124
07-31-2008 17:18
llSetCameraEyeOffset();
llSetCameraAtOffset();

Look into these it may help.
Forces a camera position that is currently free.
Remember that it must be set before the agent sits in the chair.

this also means that if there is a change in position, that the person must sit up and sit again.