This topic is now archived and is closed to further replies.

1.0f = how many pixel ?

This topic is 5780 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

If your projection is orthographic, 1.0f will correspond to a fixed number of pixels (depending on the window size and the projection matrix though).
If your projection is perspective, 1.0f will correspond to a higher number of pixels for close objects, and a lower number of pixels for far objects. (by close or far , I mean close to or far away the camera)
I think it is clear explanation. At least I hope it is.

Edited by - vincoof on February 19, 2002 3:42:03 PM

Share this post

Link to post
Share on other sites
Original post by Eber Kain
If you want to modify specific pixel locations, look into the glDrawPixels function.

No, please don''t . Setup an orthographic projection matrix and then use glViewport to make screen coordinates equal to pixel coordinates.

Share this post

Link to post
Share on other sites