Hi. I’m starting to learn how to use xith3d, and my own experience is that there are very few examples for newbie’s like me on how to create 3d games.
My intention is to post my own code as it develops. I hope this is ok. This way I and others can also get some feedback on what to do / not to do.
The code as it is now uses the ASE loader to load the world. I have added a very simple keyboard control that changes the view.
One of the current problems with the “game” is that it will crash on a slow computer. I think this might have something to do with the handling of threads, but I am working on this now.
I successfully loaded a level with 200000+ polygons on a p4 2.4 GHz with an ATI Radeon Mobility 9000 graphics card with 64mb memory. I think this is quite nice but I removed some of the demanding objects for this example because it will totally crash a computer if it is not fast enough to run the code.
If it should crash, try changing the sleep thread in the while loop to e.g. 40.
If you have any comments they are of cause very welcome
Source: http://www.harme.dk/testlevel.zip
http://www.harme.dk/level1.jpg
http://www.harme.dk/level2.jpg
http://www.harme.dk/level3.jpg
- 03-10-2005
Added simple material and light
-03-12-2005
Added Fog