Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Camera Control Contradiction. Which is correct.

AnnMarie Otoole
Addicted scripter
Join date: 6 Jan 2007
Posts: 162
09-25-2008 20:31
The llSetCameraAtOffset and the llSetCameraEyeOffset have a Caveat:-

"Setting this will not update the cameras of seated avatars, it will only effect avatars that subsequently sit down. The camera settings have to be prepared in advance. "

But when I get permission and prepare the settings in advance of sitting I get the error message:-

"Office Desk Chair: Camera control currently only supported for attachments and objects on which you are sitting."

Huh?
Kaluura Boa
Polygon Project
Join date: 27 Mar 2007
Posts: 194
09-25-2008 23:50
You don't need to ask for permissions. The message is a bit unclear but what it means is that you can *ask* for PERMISSION_CONTROL_CAMERA only in attachments and to the avatar sitting on the object.

Since llSetCameraAtOffset() and llSetCameraEyeOffset() are meant to prepare the cam before one AV sits, to who would you want to ask for permissions any way? To all avies of SL to be sure that the cam will be set for anybody who sits? o.O :P
AnnMarie Otoole
Addicted scripter
Join date: 6 Jan 2007
Posts: 162
09-26-2008 08:50
OK I over simplified the original question.

The chair uses llSitTarget() and it is programmed as a vehicle so it will slide across the floor with some rotational activity. The problem is the camera follows the avatar and spins around with the chair. It doesn't do any harm but the view looks 1000 times better if the camera is fixed.

If they have used the remote camera feature prior to sitting, this is no problem but if the cam is "following" the avatar it is very disconcerting when the chair rotates.

Somehow I need to get the camera out of the FOLLOW AVATAR mode. I don't actually care too much where it is so long as it stays fixed like it would after using the camera controls.

I did set llSetVehicleFlags(VEHICLE_FLAG_CAMERA_DECOUPLED); but that only works if they are in mouselook which is extremely unlikely.

I tried setting the camera in state_entry() without permission but that doesn't work.

I tried setting the camera prior to sitting with permission but that gives an error message.

I tried setting the camera after they sit without permission but that doesn't work.

I tried setting the camera WITH permission after they sit but that doesn't work.

NOTHING I do seems to be able to position the camera in a fixed position
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
09-26-2008 09:02
I believe you are going to have to request PERMISSION_CONTROL_CAMERA (when the avatar sits) and then use llSetCameraParams() for that.

http://www.lslwiki.net/lslwiki/wakka.php?wakka=llSetCameraParams
http://www.lslwiki.net/lslwiki/wakka.php?wakka=FollowCam
AnnMarie Otoole
Addicted scripter
Join date: 6 Jan 2007
Posts: 162
09-26-2008 15:17
Cool, thanks a million. That was more or less what I was trying but getting an error report. Using the llSetCameraParams works but I was having problems with the llSetCamera xxx functions. These are apparently old and incomplete.
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
09-26-2008 15:31
From: AnnMarie Otoole
Cool, thanks a million. That was more or less what I was trying but getting an error report. Using the llSetCameraParams works but I was having problems with the llSetCamera xxx functions. These are apparently old and incomplete.

Well, somewhat old. But I also see them as fulfilling a different purpose. Just like you can still set llSitTarget(), but now we (whether accidentally or not) have the option of dynamically moving the avatar once it sits with llSetLinkPrimitiveParams().