LordOfTheUniverse
12-16-2002, 01:22 AM
Hi,
I hace two matrices - normal and inverted for each
object in scene.
suppose I have camera attached to an object.
How to make camera reflect objects rotations.
Currently I do it like that:
gluLookAt(matrix[12] +distance,matrix[13],matrix[14]
matrix[12], matrix[13], matrix[14]
matrix[4], matrix[5], matrix[6]);
but it works only for rotation around X axis
Please give me a hint.
.
I hace two matrices - normal and inverted for each
object in scene.
suppose I have camera attached to an object.
How to make camera reflect objects rotations.
Currently I do it like that:
gluLookAt(matrix[12] +distance,matrix[13],matrix[14]
matrix[12], matrix[13], matrix[14]
matrix[4], matrix[5], matrix[6]);
but it works only for rotation around X axis
Please give me a hint.
.