Jump to content
  • Advertisement

Archived

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

_PMEP_

Quake 1 bsp rendering

This topic is 5281 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''m making Q1 bsp renderer with openGL, and I know how to read lump file. So I can load vertexes, faces, nodes, etc. I used fread & fseek... like this : fseek(fp, header.lumps[LUMP_FACES].fileofs, SEEK_SET); fread(dfaces, numfaces, sizeof(dface_t), fp); The problem is, I can''t render it!!! OMG I have q1 source, I read it again and again, but it uses sorted-edge when rendering, so it doesn''t fit with me. In quake3, it''s easy like this : glDrawArrays(GL_TRIANGLE_FAN, pFace->startVertIndex, pFace->numOfVerts); is there any other way - not using sorted-edge rendering - ? is there anybody who made a q1 viewer with openGL? thanks

Share this post


Link to post
Share on other sites
Advertisement

  • 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!