Commit Graph

2474 Commits

Author SHA1 Message Date
Eric Wasylishen ed527217c6 vis: fix writing leaf.visofs for Q1 cluster vis 2021-10-08 23:52:46 -06:00
Eric Wasylishen 056e9442fd bspinfo, bspfile: fixes for handling of \0 terminator on entdata 2021-10-08 23:03:05 -06:00
Eric Wasylishen f3f07d9e06 bspfile: fix reading/writing of entdata adding extra null terminators 2021-10-08 22:45:55 -06:00
Eric Wasylishen bf8f00df01 build: don't compile qbsp + light twice 2021-10-08 20:30:18 -06:00
Eric Wasylishen 34b6462641 build: build common as a static library 2021-10-08 20:08:26 -06:00
Eric Wasylishen 560be82885 build: remove more unsupported mingw stuff 2021-10-08 19:59:20 -06:00
Eric Wasylishen e8b943cf90 build: remove DOUBLEVEC_T (unused now) 2021-10-08 19:47:32 -06:00
Eric Wasylishen 4c17969651 build: remove mingw workaround (unsupported) 2021-10-08 19:46:48 -06:00
Eric Wasylishen 76d0dae890 mathlib: GLM_InterpolateNormal: quick hack to fix build of testlight 2021-10-08 19:31:06 -06:00
Eric Wasylishen 100d364edf Merge remote-tracking branch 'origin/master' into pr/322 2021-10-08 19:04:48 -06:00
Eric Wasylishen 5cf82ee023 qbsp: restore use of options.worldExtent
should fix minor precision differences in .prt files
2021-10-08 19:04:11 -06:00
Eric Wasylishen f0e3d32ffc testmaps: ignore space change in json diff 2021-10-08 17:19:22 -06:00
Eric Wasylishen b855bbd0f2 testmaps: Add qbsp_angled_brush.map 2021-10-08 17:18:17 -06:00
Jonathan 1b1679fa22 normals are now a special tuple-ish type, so that we can calculate tangents and bitangents for Q2RTX if requested (currently it always does it, but we can fix that later)
always emit texinfo for q2 brush sides
2021-10-08 14:17:48 -04:00
Eric Wasylishen 33a454c700 Merge remote-tracking branch 'origin/master' into pr/322 2021-10-08 00:58:25 -06:00
Eric Wasylishen 3df3891563 bspfile: fix hexen2 hull sizes 2021-10-08 00:56:11 -06:00
Eric Wasylishen cfee292e5f qbsp: use fmt to print portals 2021-10-08 00:44:34 -06:00
Eric Wasylishen afcf84ba1c Merge remote-tracking branch 'origin/master' into pr/322 2021-10-07 23:56:03 -06:00
Eric Wasylishen 9610841dd7 qbsp: use fmt to print "origin" keys for rotators 2021-10-07 23:52:30 -06:00
Eric Wasylishen 447b9e0492 Merge remote-tracking branch 'origin/master' into pr/322 2021-10-07 23:40:57 -06:00
Eric Wasylishen eeededb619 vis: don't crash on vising 1 leaf maps 2021-10-07 23:34:05 -06:00
Eric Wasylishen 3296761693 threads: fix calling convention error (affecting my win32 VS build) 2021-10-07 23:34:05 -06:00
Eric Wasylishen a894bbd5de testmaps: add origin brush test 2021-10-07 23:33:59 -06:00
Eric Wasylishen e3f6dc9be0 Merge remote-tracking branch 'origin/master' into pr/322 2021-10-07 20:09:18 -06:00
Eric Wasylishen 532b35c5bf qbsp: insert new epairs at the end of an entity 2021-10-07 20:06:20 -06:00
Eric Wasylishen d40e79ae29 mathlib: revert Q_rint to match master
The one on master returns 0 ==Q_rint(-0)
whereas the std::rint returns -0 == Q_rint(-0)
2021-10-07 19:08:34 -06:00
Eric Wasylishen 3d8d803674 testmaps: ignore space change in json diff 2021-10-07 00:38:06 -06:00
Eric Wasylishen dddfc11dde Merge remote-tracking branch 'origin/master' into pr/322 2021-10-07 00:32:14 -06:00
Eric Wasylishen 681a916348 qbsp: wad.cc: zero out data after \0 in dmiptex_t.name
This is just for consistency with the cleanup branch which is also doing this
2021-10-07 00:31:11 -06:00
Eric Wasylishen 673e386c16 Merge remote-tracking branch 'origin/master' into pr/322 2021-10-06 22:23:25 -06:00
Eric Wasylishen 17d8c6f7ad testmaps: also save + diff expected log output for the tiny test maps 2021-10-06 22:19:18 -06:00
Eric Wasylishen e6c015a1b3 testmaps: change diff option for ignoring CRLF/LF differences 2021-10-06 21:52:49 -06:00
Eric Wasylishen 83883aaee0 add gitattributes 2021-10-06 21:51:56 -06:00
Eric Wasylishen 1ce3702e32 testmaps: ignore trailing space in .json diff (line ending differences) 2021-10-06 18:36:42 -06:00
Eric Wasylishen fcda291e9a testmaps: ignore trailing space in .json diff (line ending differences) 2021-10-06 18:31:09 -06:00
Eric Wasylishen f6e9ba4eb2 qbsp: drop mapentity_t::epair_order and std::map for epairs
just store as a std::vector of pairs. Lookups aren't done much in qbsp
so linear search performance should be fine.

epair_order approach gets messy because we sometimes add epairs
2021-10-06 18:26:25 -06:00
Eric Wasylishen 402c18bad0 Merge branch 'master' into pr/322 2021-10-06 18:00:39 -06:00
Eric Wasylishen ca7002cb38 qbsp: preserve .map file order of epairs 2021-10-06 17:58:20 -06:00
Eric Wasylishen 4ce6be739b CI: add bspinfo/bsputil to PATH before running regression tests 2021-10-06 17:24:13 -06:00
Eric Wasylishen d73b89015a CI: remove unused travis config 2021-10-06 17:23:30 -06:00
Eric Wasylishen 48652c7155 CI: add bspinfo/bsputil to PATH before running regression tests 2021-10-06 17:23:10 -06:00
Eric Wasylishen 377868978d bspinfo: write json to .bsp.json for consistency with master branch / automated tests 2021-10-06 17:19:45 -06:00
Eric Wasylishen dbbe2290a7 testmaps: commit .json of tiny test maps 2021-10-06 17:14:28 -06:00
Eric Wasylishen 7cf1107f83 testmaps: commit .json of tiny test maps 2021-10-06 17:09:52 -06:00
Eric Wasylishen 9b19828530 qbsp: avoid triggering MSVC std::vector access bounds check
even though we're just taking the address with &, face->edges[face->w.size()]
was accessing an out-of-bounds element
2021-10-06 16:44:14 -06:00
Eric Wasylishen 0d06489016 qbsp: change HashVec to inline (fixing macOS build) 2021-10-06 16:38:24 -06:00
Jonathan aa2a94e0a7 Uninitialized values aren't constexpr, changing these default constructors to inline 2021-10-06 03:43:30 -04:00
Jonathan 16d3bcc7c7 Revert "clang /macOS: un-constexpr things that were erroring"
This reverts commit 33745c3cb8.
Value-initialize v which removes the need for the bottom `if constexpr` expression.
2021-10-06 03:42:46 -04:00
Eric Wasylishen a84de6a2d6 csg4.cc: don't use alloca inside loop
it's crashing in release builds on macOS..
not sure exactly why, but it's also leaking stack
since none of them are freed until the function exits
2021-10-06 01:02:03 -06:00
Eric Wasylishen 22145327e6 qbsp: fix use-reference-after-vector-resize 2021-10-06 00:19:47 -06:00