Archived

This topic is now archived and is closed to further replies.

Liquidus4

OpenGL Loading .map to OpenGL

Recommended Posts

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?

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites