PDA

View Full Version : Fastest way to compute 2D view point from 3D point?



robosport
10-15-2003, 10:23 AM
I have a point in an OpenGL 3D perspective view. What is the fastest way to figure out what 2D view coordinate the 3D point maps to?

I'm hoping there is a way to simply apply the projection matrix to the point. Is there a way in OpenGL to apply the projection matrix and retrive the coordinate result?

All suggestions are much appreciated.

Thanks in advance.

robosport

mogumbo
10-15-2003, 10:31 AM
gluProject

robosport
10-15-2003, 11:45 AM
Exactly what I was looking for. Thank you for the quick response!

robosport