ericw-tools/light
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
..
CMakeLists.txt build: fix linking to embree under vcpkg 2021-08-22 13:48:53 -06:00
bounce.cc light: log number of bounce lights at the end of MakeBounceLights 2021-07-13 22:47:53 -06:00
entities.cc Q2BSP + QBSP (#313) 2021-08-23 09:56:33 -06:00
imglib.cc Q2BSP + QBSP (#313) 2021-08-23 09:56:33 -06:00
light.cc Q2BSP + QBSP (#313) 2021-08-23 09:56:33 -06:00
litfile.cc common, light, vis: change from bsp2_t to mbsp_t 2017-10-01 22:32:20 -06:00
ltface.cc Q2BSP + QBSP (#313) 2021-08-23 09:56:33 -06:00
main.cc light: add "testlight" target 2016-08-15 21:18:14 -06:00
phong.cc light: make a certain degenerate face non-fatal 2021-08-29 20:43:55 -06:00
settings.cc common: move vec_from_mangle and mangle_from_vec to mathlib 2017-04-23 19:31:00 -06:00
surflight.cc light: q2: avoid black seams on geometry near sky 2020-12-29 15:58:40 -07:00
test.cc light: add "testlight" target 2016-08-15 21:18:14 -06:00
test_common.cc qbsp: fix relative paths for .wad files 2019-10-27 19:03:45 -06:00
test_entities.cc light: entity warnings: print bbox for bmodel entities 2016-11-24 17:10:15 -07:00
test_light.cc light: fix fix_coord bug (for sampling fence textures) and 2019-03-24 23:43:47 -06:00
test_ltface.cc light: add some tests for the EntDict_Check* functions 2016-09-19 19:16:45 -06:00
trace.cc Q2BSP + QBSP (#313) 2021-08-23 09:56:33 -06:00
trace_embree.cc Q2bsp VIS support (#315) 2021-08-31 22:38:12 -06:00