PDA

View Full Version : "Camera" transformations.....



LordOfTheUniverse
12-26-2002, 12:18 PM
If anyone could help me this is the problem:

I calculate matrices for rotations and translation for my object and render it - it's OK (rotations are relative to
object frame). Then i invert this matrix and multiply
Eye, Center and Up vectors by this inverted matrix.
(above vertices are expanded into 1x4 matrix by adding 1 to coordinates). I use Exy, Center and Up
to feed gluLookAt.
When I render the scene everything goes fine except for the fact ----and this is the problem----- object rotates arount body axes, but "camera" around GLOBAL axes.
If someone could help me I'd be grateful.

P.S. Check www.loiv.torun.pl/~stinger (http://www.loiv.torun.pl/~stinger)
and tell me of your feelings