Skip to main content
gamedev.net
🔒 Locked

anyone know

Started by hello_there 1 reply 150+ views
Original Post
hello_there
hello_there
how when thing are within 1.0f of the camera they''re not drawn. is there anyway to turn this of or anything. i only don''t want to draw it when it''s behind the camera.
____________How could hell be worse?
Dean Harding
Dean Harding
The front clipping plane needs to be > 0 units from the camera, meaning you need to specify a strictly positive value for it. The third parameter to gluPerspective is the near clipping plane, you can just specify a smaller value (that is not zero). Something like 0.1 maybe. Note that the smaller this value is, the less precision you''ll get in your z buffer (it''s a bit more involved than that, but that''s good for a start), so don''t make it much less than 0.1 if you can help it.

If I had my way, I''d have all of you shot!


codeka.com - Just click it.

hello_there
hello_there
thanks it works good now.
____________How could hell be worse?

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.