Camera rotation question
Hi Friends,
I did a camera system using axis-angle method. Rotating each axis (x,y,z)independently based on the user input and creating a matrix from these axis by inserting axis in each column of the matrix.
Rotation of axis are based on user input. No predefined order of rotation. for example if user rotates y first , i rotate the z and x axis based on Y. similarly others also.
So now when i use this matrix for transforming the objects to world , it rotates in world coordinates. but what i need is something different. it seems like camera rotates in its local axis and objects rotates in world axis.
this is not a first person view what i need.
Any idea ?
thanks
kdworld.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement