Eric Wasylishen
c55112b47f
qbsp: refactor lmshifts lump export
2021-08-23 23:18:43 -06:00
Eric Wasylishen
31d5e67603
qbsp: delete qbsp's copy of bspx code
2021-08-23 23:03:25 -06:00
Eric Wasylishen
490e71bb1a
qbsp: remove cTotal
2021-08-23 22:50:03 -06:00
Eric Wasylishen
df3ae568e5
qbsp: remove dead code
2021-08-23 22:45:27 -06:00
Eric Wasylishen
a7fd04af12
qbsp: refactor texdata writing
2021-08-23 22:44:22 -06:00
Eric Wasylishen
6a7e59026c
qbsp: refactor entities lump writing
2021-08-23 22:20:08 -06:00
Eric Wasylishen
bfef548ba5
qbsp: remove uses of AddLump for lighting/visdata
2021-08-23 21:13:42 -06:00
Eric Wasylishen
561ffffb9b
qbsp: refactor model writing
2021-08-23 21:01:49 -06:00
Eric Wasylishen
c3d338616b
qbsp: remove dead code
2021-08-23 20:18:15 -06:00
Eric Wasylishen
f59bc08db8
qbsp: refactor face writing
2021-08-23 20:16:40 -06:00
Eric Wasylishen
a0bdbf89d1
qbsp: refactor surfedges writing
2021-08-23 19:52:46 -06:00
Eric Wasylishen
d7c7fb6b2d
qbsp: remove dead code
2021-08-23 19:46:39 -06:00
Eric Wasylishen
8147b97dc6
qbsp: refactor vertexes writing
2021-08-23 19:45:31 -06:00
Eric Wasylishen
f4700f978d
qbsp: refactor edges writing
2021-08-23 19:36:41 -06:00
Eric Wasylishen
671bacf30c
qbsp: refactor clipnode writing (changes .bsp output)
...
- drop reshuffling feature from ExportClipNodes
As far as I can tell, the only purpose of this was to keep clipnodes
for a given model contiguous within the lump (i.e. keep the different
hulls contiguous).
Vanilla qbsp didn't appear to have done this, and the code was
unmaintainable/complex, so I'm dropping the feature.
2021-08-23 18:05:37 -06:00
Eric Wasylishen
bc5e743817
qbsp: writebsp: delete dead code
2021-08-23 18:02:05 -06:00
Eric Wasylishen
382a725f2b
qbsp: refactor writing of leafs, nodes, marksurfaces lump
...
- only support bsp29 for now
2021-08-23 18:02:05 -06:00
Eric Wasylishen
24fc2ffc6a
qbsp: refactor plane lump writing
2021-08-23 18:02:05 -06:00
Eric Wasylishen
460428d099
qbsp: refactor texinfo lump writing
2021-08-23 18:02:05 -06:00
Jonathan
eaa86c71c6
Q2BSP + QBSP ( #313 )
...
* 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
2021-08-23 09:56:33 -06:00
Eric Wasylishen
ff7f8a1542
qbsp: add -nothreads debug option
2021-08-23 00:12:38 -06:00
Eric Wasylishen
29652b4a7a
qbsp: fix some threading issues with solidbsp.cc stats
2021-08-23 00:00:01 -06:00
Eric Wasylishen
a53cf8dbbe
qbsp: fix some thread safety bugs (mostly affecting stats output)
2021-08-22 23:45:42 -06:00
Eric Wasylishen
a618e5f5b5
common: assert(0) on Q_assert failure for better debugger experience
2021-08-22 23:27:05 -06:00
Eric Wasylishen
f7256907d5
common: fix build of bsputils.cc with double == vec_t
2021-08-22 15:12:19 -06:00
Eric Wasylishen
3b17e577b5
build: fix linking to embree under vcpkg
2021-08-22 13:48:53 -06:00
Eric Wasylishen
282f9cc241
build: add vcpkg instructions for windows
2021-08-22 13:29:04 -06:00
Eric Wasylishen
d6c888bee9
vis add -nostate debug option, skips loading from state file
2021-08-15 13:22:57 -06:00
Eric Wasylishen
2ff31d012e
light: fix all rays missing on debian/ubuntu's embree builds
2021-08-05 20:11:44 -06:00
Eric Wasylishen
5cc6605186
docs: update instructions for Ubuntu
2021-08-05 18:54:02 -06:00
Eric Wasylishen
ff5572f97d
light: log number of bounce lights at the end of MakeBounceLights
2021-07-13 22:47:53 -06:00
Eric Wasylishen
6e12b3d956
common: fix another 99999 constant
2021-07-13 22:02:41 -06:00
Eric Wasylishen
5e61c17cc5
docs: remove obsolete text in README.md
2021-07-13 21:51:56 -06:00
Eric Wasylishen
f6e34053fa
build: add macOS build instructions
2021-07-13 21:48:23 -06:00
Eric Wasylishen
30656f56e6
build: raise macOS minimum to 10.14, required by current tbb
2021-07-13 21:48:12 -06:00
Eric Wasylishen
7a78e0a5b5
build: remove unused includes, fixes compat with tbb 2021.3.0
2021-07-13 21:47:52 -06:00
Eric Wasylishen
c9570260fa
gcc 11: pass constant to offsetof
2021-05-30 23:12:17 -06:00
Eric Wasylishen
4ba0e99d3f
Light_PointInSolid: add check against model bounds
2021-05-21 22:35:41 -06:00
Eric Wasylishen
ab6956c9d0
bsputils: fix comment
2021-05-21 22:25:05 -06:00
Eric Wasylishen
ffe90adc1c
light: improve logging
2021-05-21 22:01:09 -06:00
Eric Wasylishen
6ecdd444ca
light: optimize surface light generation
2021-05-21 22:01:09 -06:00
Eric Wasylishen
3f00d2fd00
light: add fixme
2021-05-21 20:47:25 -06:00
Eric Wasylishen
8fc3266db5
light: update testmap
2021-05-21 20:47:20 -06:00
Eric Wasylishen
fbde6065fa
light: raise max verts in SubdividePolygon to 64 (for surface lights)
2021-04-11 20:57:30 -06:00
Eric Wasylishen
72885addf1
common: fix build failure
2021-03-23 21:17:09 -06:00
Eric Wasylishen
386faa9315
qbsp: raise MAX_SUPERFACE_POINTS from 512 to 8192
2021-03-23 21:05:52 -06:00
Eric Wasylishen
fea7849315
common: preserve order of key/value pairs
2021-02-10 00:05:53 -07:00
Eric Wasylishen
c8b2f6f8e6
decompile: fix "done" message
2021-02-08 23:35:07 -07:00
Eric Wasylishen
7c1b90abf3
disable travis
2021-02-07 14:57:47 -07:00
Eric Wasylishen
fcf0ebbbfe
build: upgrade googletest
2021-02-07 14:42:12 -07:00