Commit Graph

10 Commits

Author SHA1 Message Date
Eric Wasylishen 5465ab4ff6 Revert "Q2bsp VIS support (#315)"
This reverts commit 90973e1198.
2021-09-19 14:56:25 -06:00
Jonathan 90973e1198
Q2bsp VIS support (#315)
* Add QBSP - the BSP2-esque variant to Q2BSP - to bspinfo, and all of its accompanying structures.

* pass around ident, since Q2 needs it - admittedly it's a bit ugly, but it works for now.
conversion for QBSP

* Fix light

* _qbsp_ -> _qbism_

* Introduced bspversion_t, a struct that holds pertinent information about different BSP versions and also acts as a tagged pointer type for direct comparisons. This makes a lot of code paths simpler. I'm not entirely set on the wordings or usages yet, and maybe we can stuff boolean flags inside of them for different behaviors (for instance Q2, QBism and HL would have the "colored lightmap" boolean set to true, which replaces the check-for-all-three in the lightmapper)
Swapped arguments to ConvertBSPFormat to have the conversion target last instead of first
Finished rename of qbsp -> qbism
Tested:
 - bspinfo on various BSPs I had laying around (Q1, Q2, Qbism)
 - bsputil converting between Q2 and Qbism, and that they loaded in engine/roundtripped properly
Not tested:
 - vis/rad on anything major (I still can't run rad due to embree being weird)
 - bsputil conversion of Q1-esque maps

* Q2 VIS
Almost working, just in-game is not 100% functional

* PHS! Q2 VIS!

* Fix missing loadversion assignment
Fix missing \n

* Implement q2bsp -> mbsp visdata copy
fix sky lighting to use arghrad compat
2021-08-31 22:38:12 -06:00
Eric Wasylishen b5fcdec19e cleanup: remove "byte" typedef 2021-02-07 14:02:35 -07:00
Eric Wasylishen fc1475b4de qbsp3: fix compile errors as c++ 2017-10-05 12:31:29 -06:00
Eric Wasylishen 91a1b229f4 qbsp3: rename files to .cc 2017-10-05 12:24:00 -06:00
Eric Wasylishen 02fe11c30c qbsp3: prefix CONTENTS_ and SURF_ with Q2_ prefix 2017-10-04 11:59:06 -06:00
Eric Wasylishen 69f502f7a3 qbsp3: add "q2_" prefix to some types 2017-09-24 21:58:47 -06:00
Eric Wasylishen f9276c62ec qbsp3: fix warnings 2017-09-24 15:37:29 -06:00
Eric Wasylishen c314b29f82 qbsp3: set up cmake build 2017-07-28 00:00:15 -06:00
Eric Wasylishen 3e549bd38f qbsp3: import qbsp3 from https://github.com/id-Software/Quake-2-Tools 2017-07-27 23:51:34 -06:00