Archived

This topic is now archived and is closed to further replies.

robotica

get the resulting coordinate of vertexes..

Recommended Posts

Hi, all.. Could you help me? I can rotate and translate vertexes by glRotatef(), glTranslatef(). But I can't get the resulting coordinate of vertexes. Is there any method to get the resulting coordinate? Please help me..^^ Thanks all..^^ Yongwoo Edited by - robotica on October 24, 2001 4:18:26 AM Edited by - robotica on October 24, 2001 4:19:04 AM Edited by - robotica on October 24, 2001 10:02:15 AM

Share this post


Link to post
Share on other sites
I think you just multiply the matrix by the vertex to get the resulting point. Don''t know anymore detail though, I''m not so good with matricis.

Alex Broadwin
A-Tronic Software & Design
-----
"if you fail in life, you were destined to fail. If you suceed in life, call me."
"The answer is out there."
"Please help, I''m using Windows!"

Share this post


Link to post
Share on other sites
You can use the GL_FEEDBACK mode to get the result of transformations etc. You might get better performance using custom matrix operations if you need alot of it though.

Share this post


Link to post
Share on other sites
You can use glGetFloatv(), or something like that, to return the value of a transformed matrix. As for writeing your own matrix math stuff I look at it like this, OpenGL relys so much on Matrix Operations, i doubt i could write anything more optimized than they did.

If there is anything in the offical documentation that reccomends that you write your own matrix operation routines could someone please point me to it.

Share this post


Link to post
Share on other sites