[sldev] How does the camera mechanism work
Dave Parks
davep at lindenlab.com
Thu Mar 22 14:59:35 PDT 2007
In an internal maintenance branch, I just checked in a joystick driven
flycam. Basically, if you don't call gAgent.updateCamera, you can call
some other function to update the camera position and rotation.
Tobias Lang wrote:
> Hi,
>
> I like to control the viewer camera (in mouse look mode) from an
> external source, lets say an intertial tracker. I studied the code,
> but I am still not sure how the whole camera system works.
> In my understanding, the LLAgent (thats me) has a LLViewerCamera
> which in the end has a LLCoordFrame. In the LLCoordFrame, the
> orientation and translation is stored. So any change to the camera
> must finally change this coordinateframe (?)
> But the difficult part is to find out where the transformations are
> set...
>
> Looking at the code, I see methods like updateCamera() in LLAgent,
> updateCameraLocation(..) in LLViewerCamera, setOriginAndLookAt() etc.
> There are also many calls like setLookAt() or setLookDir(). (What is
> the difference between these two?)
>
> Can someone describe briefly, how all the camera mechanism works, please?
>
> Thanks,
> Tobias
>
>
>
> _______________________________________________
> Click here to unsubscribe or manage your list subscription:
> /index.html
More information about the SLDev
mailing list