Archived

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

Problem with a fog

This topic is 5520 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

I'' ve created a textured cube and I''m inside this cube. When a fog is disabled everything is ok, but when I enable fog something bad happens with texture. Why? How to resolve that?

Share this post


Link to post
Share on other sites
I thought that it was my mistake, that texture is streatching strangely, but I''ve downloaded 16th Lesson of NeHe''s tutorial and modified one variable from the begining of the source code from
GLfloat z = -5.0f;
to
GLfloat z = 0.0f;
The result was the same I had before. That should be enough. Download this lesson please, and tell me how to resolve this problem.

Share this post


Link to post
Share on other sites