Fitting a scene to the viewport?
If I have a readily rotated and projected scene (i.e. do not let OpenGL do the projection, but do it myself), how do I fit my scene exactly to the viewport? Or in other words, how do I compute the proper z value for glTranslated() to fit my scene right into the viewport?
Or to put it differently again: How do I tell OpenGL to put my vertices 1:1 to the screen (i.e. if I have a vertex {1,1,1} I want it to be at that position in my render window (viewport).
[edited by - karx11erx on May 15, 2004 8:45:48 PM]
_________karx11erxVisit my Descent site or see my case mod.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement