I am trying to make the camera look at a certain point from a certain point and be able to change both of them from the script. I have read and re-read the camera controls and I know my math is right for selecting the points. Using the llSetCameraParams call, I set these values and have several issues:
1) if I set the Camera loacation to be 3 meters above the center of the prim that I am sitting on, but no matter what I do, it is always 2-3 meters behind me.
2) I set the camera target to be the center of a nearby prim (by touching the prim and having it deliver the locations via llGetPos()) but the camera never really points at the prim. It just moves a little bit in that direction. From reading the wiki, it seems that the camera should be pointing direclty at its target - is this not true?
3) Subsequent camera calls do nothing unless I turn the camera off and then back on again with sequential commands. While this works, there is nothing in the documentation that indicate that it should be this way.
4) Is there anyway from a script to disable the User Invoked camera (turn it off, for example) I have tried everything, but if the user has Alt-clicked, the camera seems inaccesible. In the product I am working on, I want the user to Alt click, but in certain circumstances I want to force the focus of the user on certain things (e.g. a powerpoint presentation on a screen).
I have been scripting for two years steady in SL (i.e. I'n not a newbie to scripting), but nothing about the camera seems to work as described in the wiki. Are there any good documentaions on this that describe how it really works?