Sign in to follow this  

Co-ordinates...

This topic is 4133 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello friends, 1) I am currently rotating a cube and translating it by a random no. After a certain period i want the current Co-ordinates of the vertices of d cube in terms of world view... I searched in this forum but couldnot get how to perform it.. if u can pls give step by step method it would be great help to me. 2) After random rotations, Can the angles made by local axis with the world view axis be found? Thanks.

Share this post


Link to post
Share on other sites
Quote:
After a certain period i want the current Co-ordinates of the vertices of d cube in terms of world view...

Well, vertices you pass through glVertex3* are defined in an object space. In order to get vertices coordinates in a world space, you have to multiply each vertex by a modelview matrix. And you have to do it manually. Modelview matrix can be obtained from OGL by getFloatfv(...).

Quote:
2) After random rotations, Can the angles made by local axis with the world view axis be found?

Yes. As far as I know, try searching for Euler angles.

Cheers!

Share this post


Link to post
Share on other sites

This topic is 4133 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this