Does anybody know how OpenGL converts real coordinates to pixels?
I have some 3D models with points’ coordinates lying in the cube -2.5 to 2.5 along each dimension (x,y,z) and I want to find the pixels of the bitmaps so that none of the models get off the bitmap!
Check the utility function gluProject and read the OpenGL Programmer Guide (search for RedBook.pdf), Appendix F, Homogeneous Coordinates and Transformation Matrices