Jump to content
  • Advertisement

Archived

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

Liquidus4

OpenGL Loading .map to OpenGL

This topic is 5746 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
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]

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
kewl tutorial
but too late i already coded a compiler damn
i could have spared a lot of time with this tutorial

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!