jdolan / quetoo

Quetoo ("Q2") is a free first person shooter based on id Tech2. GPL v2 license.
http://quetoo.org
204 stars 28 forks source link

Feature/faces reference brush sides #641

Closed jdolan closed 2 years ago

jdolan commented 3 years ago

Something that always bothered me about the Quake BSP format is that faces had no relationship to the brush sides that created them. This patch fixes that. Faces no longer duplicate plane, texinfo and contents. Instead, they point to the original brush side in the map file that created them. This is not only a more efficient format, but it allows us to do more deterministic and WYSIWYG face merging for flares, etc.

There are issues with blended faces in this patch so far. That's why it's WIP. I think it has to do with portal / plane sidedness.

This patch will require no effort from map authors, but it will require a rebake of all maps (BSP format change).

jdolan commented 3 years ago

Made some more progress on this yesterday. I'm also cleaning up a lot of the collision and game API to deal with brush sides instead of passing planes and texture references around. It's coming together nicely. Did not spend any time on the blended faces issue tho..

jdolan commented 2 years ago

This is now ready for review.