Advertisement

How the #@!! does glFrustum-algorithm work?

Started by February 14, 2000 04:18 PM
0 comments, last by Peter Svensson 24 years, 7 months ago
Hello!! Does anyone know how the glFrustum algorithm works? I don''t seem to get the algorithm right. What i want to do is to convert a vertex (x,y,z) to screen coordinates using the same algorithm as glFrustum uses. And acctually the reverse too - from screen coordinates to a vertex. screenX = MagicGlFrustomAlgorithm( x, y, z ); screenY = MagicGlFrustomAlgorithm( x, y, z ); //Peter - Thanx
Here is the man page for the glFrustum() call that describes how the matrix is setup : http://trant.sgi.com/opengl/docs/man_pages/hardcopy/GL/html/gl/frustum.html

Nate
http://nate.scuzzy.net

This topic is closed to new replies.

Advertisement