Having problems with tutorial 10, the world tutorial.

Started by
6 comments, last by X_Breaker 21 years, 6 months ago
I can't get anything displayed in the window. I'm pretty sure that the world is being loaded correctly from file, but nothing is showing up on the screen at all. I tried copying the source code into various points in my project, and then tried compiling the source code by itself. Although it compiles, the executable doesn't run at all. The executable that comes with the source does run, though, and I can see what the results are supposed to look like. Here's a link to my cpp file. Maybe somebody can take a look at it and tell me what I'm doing wrong. I've scoured over it all day, and I can't figure out what the problem is. I haven't had any problems displaying things to the screen in any of the tutorials so far, so this has thrown me. http://students.uww.edu/bundajw08/createwindow.cpp [edited by - X_Breaker on October 17, 2002 7:09:34 PM]
Advertisement
Got me...

[twitter]warrenm[/twitter]


filein = fopen("World.txt", "rt"); // Open the file.

Are you sure you''ve got the world.txt in the right place in your directory

Debug up to this line and see what value filein is.
That''s not it. The program would crash on the fgets since filein would be NULL after a failed call of fopen.

[twitter]warrenm[/twitter]

Grrrr...this frustrates me. Be sure to post if you figure it out.

[twitter]warrenm[/twitter]

Could you please include the entire file? (World.txt, *.bmp)


Stick
you have commented out the code to setup and enable light 2, yet you still are allowing disabling/enabling lighting... so my guess is that you can''t see anything because there is no lighting (pressing L will hopfully toggle lighting)

<-- smile :-)
check your gluPerspective settings.. the relation to the drawn map has to be right. and the viewing distance could even make some problems ( did not look into your sourcecode but this was an error i had while rendering bsp files )

This topic is closed to new replies.

Advertisement