Loading .map to OpenGL
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?
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]
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]
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.
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.
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.
kewl tutorial
but too late i already coded a compiler damn
i could have spared a lot of time with this tutorial
but too late i already coded a compiler damn
i could have spared a lot of time with this tutorial
http://www.gamedev.net/community/forums/topic.asp?topic_id=120565
check for beta release version
check for beta release version
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement