I have just finished learning how to load in terrain from the opengl game proramming book. I have the quake level editor and I was wondering how hard it is and how I should go abut loading these levels into my own games. I really don''t care about collision detection now just want to load them in.
Any help/suggestions/tutorials would be greatly appreciated.
If you want to load *.bsp files, there''s an article somewhere at www.flipcode.com . Search that site.
If you want to load *.map, files, open one up in notepad to see the format. Each brush is defined as the convex space contained within n planes. Within each brush block, there will be n lines of text (1 for each plane) each of which has three vertices, which define that plane. You''d have to calculate the convex polygons formed in that manner, and then tesselate them into triangles.
loading quake3 levels is very difficult because of shaders and bezier patches. bezier patches are not that difficult but shaders are a bitch because u have to rewrite every thing that loads textures. try loading quake1 bsps first and work your way up