[opensource-dev] llcamera

Jacek Antonelli jacek.antonelli at gmail.com
Fri Mar 19 13:54:51 PDT 2010


On Fri, Mar 19, 2010 at 8:56 AM, Thomas Schindler
<Thomas.Schindler at t-systems-mms.com> wrote:
> Hi there,
>
> I have a question to the llcamera.cpp code. There is a function that
> calculates frustum planes. Four variables are existing: top, bottom, left,
> right. The bottom is the negative value of top, the same with left and
> write. If I change now the values and add +20 behind left and right, I
> expected an effect in which my avatar would stand not in the middle of the
> viewer window, but somewhere more left or right. But if I compile and run
> the viewer, I don't see any difference. Does anybody can explain it to me,
> please?

I'm not an OpenGL expert, but I believe the frustum is used for
determining whether an object can be seen from the current camera view
(e.g. it's not behind the camera or off to the sides). I don't think
the frustum controls the camera position or rotation, though. For
that, I think you want to look at the LLCoordFrame class
(llmath/llcoordframe.cpp), which is inherited by the llCamera class.

Hope that helps. :-)

- Jacek


More information about the opensource-dev mailing list