Quote:Original post by KaKaroTo
Thanks for the model. :) :) :)
I took Nehe's routine for creating an OpenGL window and combined it
with a 3ds loader.
The program displayed the model but not properly.
I'm working with Visual studio 2003 .NET, I've Uploaded the program:
http://www.badongo.com/file/2573951
Please Take a look I'm sure it's something simple
I downloaded your program and there doesn't seem to be a problem with the display - there's just a problem with how you set the scene ;)
I had to set the far clipping plane to a value of around 30000 to see the whole model. As such, you might consider to both increase the far clipping plane distance a bit and to scale the model down a bit because a far plane distance of 30000 shouldn't be necessary for that racing track, I think...
If you add these two lines to your drawing function:
glScalef(0.01f, 0.01f, 0.01f );glTranslatef( 0.0f, -1000.0f, 50.0f );
and change the gluPerspective call in your scene resize function to:gluPerspective(45.0f,(GLfloat)width/(GLfloat)height,1.0f,1000.0f);
then things are already starting to look a lot better ;)