#### Archived

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

# NeHe World Demo - how?

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

## Recommended Posts

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

##### Share on other sites
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.

##### Share on other sites
Couldnt he also just change the far clipping plane to a larger value?

##### Share on other sites
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

##### Share on other sites
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.

##### Share on other sites
Thank you

That works great! Just what I was looking for!

DiLZ

##### Share on other sites
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...

1. 1
2. 2
Rutin
19
3. 3
4. 4
5. 5

• 10
• 14
• 30
• 13
• 11
• ### Forum Statistics

• Total Topics
631786
• Total Posts
3002350
×