Advertisement

get the resulting coordinate of vertexes..

Started by October 24, 2001 03:16 AM
2 comments, last by robotica 23 years, 4 months ago
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
Yongwoo Shin
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!"
Alex BroadwinA-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!"
Advertisement
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.
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.
www.EberKain.comThere it is, Television, Look Listen Kneel Pray.

This topic is closed to new replies.

Advertisement