Commit Graph

2482 Commits

Author SHA1 Message Date
Jonathan 01b8abf93c Removed a lot of unused functions
Moved vector-related operations from mathlib to qvec, moved a few into qv::
Use clamp/max/min directly instead of #define'ing them
Move a few single-use functions directly above their usages
2021-10-10 14:04:09 -04:00
Eric Wasylishen a1609ae1e6 qbsp: add _omitbrushes to tell qbsp to discard all brushes in a func_ 2021-10-09 15:22:27 -06:00
Eric Wasylishen ed1982b782 testmaps: update expected .json output to account for nexttexinfo change 2021-10-09 13:06:16 -06:00
Jonathan a8d5125321 Merge branch 'type-cleanup' of https://github.com/Paril/ericw-tools into type-cleanup 2021-10-09 14:14:54 -04:00
Jonathan eb4bcf96dc -includeskip for Q2RTX
Fix missing fmt include
Default nexttexinfo to -1 to match other tools
Fmt support for bspversion_t, use that instead of a static function
Cleanup write functions
2021-10-09 14:14:49 -04:00
Eric Wasylishen f0f7722909 light: fix build 2021-10-09 11:48:18 -06:00
Eric Wasylishen 9dcef7839a common: remove dead code (mesh_t, octree) 2021-10-09 11:40:35 -06:00
Eric Wasylishen 4accc4d56b light: remove incorrect assertion face->lightofs != -1
This can happen for Q1 with a solid black face
2021-10-09 00:13:23 -06:00
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