Loading .map to OpenGL

Started by
5 comments, last by Liquidus4 21 years, 5 months ago
I am trying to load i map that i created in Worldcraft into openGL. The maps are saved as text files, so i figured it would be easy. It looks like that on each line there are coordinates for 3 vertices(also texture info after, but i am not concerned about that right now). I put the vertices into openGL and ran the program. All the vertices were in the right place, but they did not connect properly. I use LINE_LOOP to see exactly what was going on, and it seems the lines go to the wrong vertices. How do i fix this?
The funny thing about driving a car over a cliff is, you still hit those breaks. Hey! Better try the emergency break!
Advertisement
you don t

in worldcraft you create a mesh by using brushes

each of the sides of a brush is represented by 3 vertices you can get all the vertices by getting the intersections of these points


i have written a compiler which works fine

if you like to use it let me know its still a beta but it is operational

my icq is 82015598 contact me if you are interested

[edited by - Basiror on October 20, 2002 6:27:14 PM]
http://www.8ung.at/basiror/theironcross.html
I would like to use the compiler if i could, but i do not have icq, also, almost all the vertices load, only a few are not in the right place. i understand the 3 vertices for a brush, but i don''t understand how finding where thy all intersect will help me. You can email me your compiler if you would, at rjlouie@iupui.edu.
The funny thing about driving a car over a cliff is, you still hit those breaks. Hey! Better try the emergency break!
Hi,

Have a look at this site, under tutorials.

http://folk.uio.no/stefanha/

Everything you need to know about loading halflife .map files is there, excellent description and good source code.
Thanks alot noisecrime. The tutorial there was a lot of help, if anyone knows of a tutorial that simply gets a list of vertex data(and maybe simple texture info) to put into openGL, that would be very hepful. That tutorial involves outputing to another file type, but it explains how it is done well enough for me to use it.
The funny thing about driving a car over a cliff is, you still hit those breaks. Hey! Better try the emergency break!
kewl tutorial
but too late i already coded a compiler damn
i could have spared a lot of time with this tutorial
http://www.8ung.at/basiror/theironcross.html
http://www.gamedev.net/community/forums/topic.asp?topic_id=120565

check for beta release version
http://www.8ung.at/basiror/theironcross.html

This topic is closed to new replies.

Advertisement