PDA

View Full Version : Rendering bitmaps



09-14-2004, 12:35 AM
Hi,

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!

Thanks for any help

Relic
09-14-2004, 03:10 AM
Answer is: yes! ;)

Check the utility function gluProject and read the OpenGL Programmer Guide (search for RedBook.pdf), Appendix F, Homogeneous Coordinates and Transformation Matrices

09-14-2004, 08:21 AM
I have already downloaded the red book but, since being a beginner, I did not know where exactly to search. I think I will find it now.

Thanks!