🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Quake2 bsp face data

Started by
3 comments, last by RedKnite 23 years, 11 months ago
I have a question for anyone that has or has attempted a quake 2/3 bsp viewer. ive loaded out all the data, but it seems as though the face data has indexes do 6/7/8 sided polygons? i was just curious on how you guys either split up the polygons, or your methods for rendering this kind of data, thanks.
Advertisement
You can render them as triangle fans. So the triangles would go like this : 012 023 034 045 etc etc

Nate Miller
http://nate.scuzzy.net
Thanks nate, i see how this is possible to draw the faces, but, how am i able to extract 3 points out of the data(first triangle in the fan) to be able to complete the fan? as the face data is just pointing to edges which only are only 2 integers that point to 2 vertices?? thanks again
I''ve read that you are trying to do a bsp render?

I''ve also trying to do an engine reading data from a bsp file and rendering on the sreen.
Where can I found informations about the bsp format and how to read it and ...


Well, as for the file format, the best place i know of is a tutorial on flipcode.

http://www.flipcode.com/tutorials/tut_q2levels.shtml

Other then that you might take a look at q2utils source code for some information on reading in the data from the files. As for rendering, your more or less on your own. You could always go to the 3d engines list and pick through an engines source code to find something, but your better off taking a shot at it.

This topic is closed to new replies.

Advertisement