Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Camera Help

Boq Beauchamp
Registered User
Join date: 3 Oct 2006
Posts: 59
11-15-2006 21:24
Okay I am using llSetCameraEyeOffset and llSetCameraAtOffset to make the camera look at a Blackjack table when an avatar sits on the stool in front of it. I have it so the avatar always faces the table when it sits and the camera focuses over the table correctly EXCEPT for rotation. It is 90 degrees off. I think this is because the stool must be rotated 90 degrees for the avatar to always face the table. How do I rotate the camera to be correct.
Logan Park
Registered User
Join date: 23 Sep 2006
Posts: 10
11-15-2006 22:35
Sounds like you need to set the camera's position differently. Keep the same focal point, but reposition the camera itself as if the focal point is the center of a circle, and you've moved the camera 1/4th the way around the circle from where it currently is.

For example, if the camera is a 6 on the clock face looking at the center of the clock face, change the coords of the cam position to correspond to 9 or 3.

Using vectors, if the focal point is at <0,0,0> and the camera is at <0,1,1>, you might try moving it to <1,0,1>.

If you have the camera pointed straight down, the cam may get a bit seasick. A good way to fake this is having it *really close* to vertical but not quite there.
Boq Beauchamp
Registered User
Join date: 3 Oct 2006
Posts: 59
11-16-2006 06:55
I had it looking straight down and just changing that made it work. It's not exactly the view I wanted, but it will definitely work. Thank you!