Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Camera Functions

Ace Cassidy
Resident Bohemian
Join date: 5 Apr 2004
Posts: 1,228
08-11-2007 06:44
I've been away from SL for a couple of years, and am just getting back and have started dusting off some of the projects I had been working on. One of my projects is a "telescope" which uses the functions llSetCameraOffset() and llSetCameraEyeOffset() to strategically position the sitter's view so that it appears that they are "gazing" at some stellar images I have strategically placed.

This worked fine a couple of years ago, but now seems to be borked. That is, the camera view is not changed at all when one sits on the object.

Have these functions been obsoleted in favor of llSetCameraParams()? The wiki doesn't seem to say anything about the functions that I am using not being supported anymore.

Also, is the permission PERMISSION_CONTROL_CAMERA like PERMISSION_TRIGGER_ANIMATIONS in that it is automatically granted for anyone sitting or if the object is attached?

TIA,

- Ace
_____________________
"Free your mind, and your ass will follow" - George Clinton
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
08-11-2007 18:33
The -AtOffset and -EyeOffset functions still work for me. (They set the "default" cam position, though, so if you're panned away from default when you sit, it won't take effect until you punch the Escape key some magical number of times.)

And yes, the cam perms are granted automatically for sit targets and attachments; the script should request them, but they'll be granted without needing to ask the user.