NeHe World Demo - how?

Started by
5 comments, last by zarfius 20 years, 9 months ago
I''ve been implementing my own First Person kind of thingy using NeHe''s great tutorials, but the problem I am having is that my objects disappear too quickly into the distance. I downloaded the "NeHe World" demo found on the projects section of the main page and I found that my code could do pretty much everything in this demo, but I can''t make my rooms soo big? How can u make such a large room and still be able to see everything from so far away! I hope I am making sense because I''m getting very frustrated. Thanx in advance DiLZ
Advertisement
I think you are having problems with objects going beyond the far clip plane and disappearing - evn though you should be able to see them right?

Just make the distance that you move per second smaller, and make all the geometry smaller.
Couldnt he also just change the far clipping plane to a larger value?

"What we do in life, echos in eternity" -- Gladiator
Thanx for your replies so far guys. I have considered both options. I was hoping there was a way I could change the far clipping pane value but can it be done? and if so what''s the command?



DiLZ
You probably have something like this in your code...

gluPerspective(90.0f, (GLfloat)width / (GLfloat)height, 0.1f, 100.0f); 


The last two values represent the near and far clipping planes. Set the last one to a larger number to see further.
Thank you

That works great! Just what I was looking for!


DiLZ
quote:Original post by m_wherrett
You probably have something like this in your code...

gluPerspective(90.0f, (GLfloat)width / (GLfloat)height, 0.1f, 100.0f);  


The last two values represent the near and far clipping planes. Set the last one to a larger number to see further.

btw: don''t use such a low value for your near plane,.... it kills zbuffer accuracy...
--------<a href="http://www.icarusindie.com/rpc>Reverse Pop Culture

This topic is closed to new replies.

Advertisement