Commit Graph

901 Commits

Author SHA1 Message Date
Jonathan 6ba71cb1b9 Merge branch 'type-cleanup' of https://github.com/Paril/ericw-tools into type-cleanup 2022-06-02 10:23:44 -04:00
Jonathan 464b87f095 remove a debugbreak
"fix" broken q2 maps
2022-06-02 10:23:39 -04:00
Eric Wasylishen 0eeabaeb21 qbsp: fix incorrect return in FindAreas 2022-06-01 23:21:43 -06:00
Jonathan 1f28be4a4c Merge branch 'type-cleanup' of https://github.com/Paril/ericw-tools into type-cleanup 2022-06-02 01:05:48 -04:00
Jonathan 11f937f0ad add mottling that was used for _minlight on objects in Q2 maps
fix _minlight for Q2
set up a few better defaults for Q2
temp-ish fix for areaportals
2022-06-02 01:05:41 -04:00
Eric Wasylishen d43f10ae2b qbsp: fix areaportals touching detail 2022-06-01 22:01:48 -06:00
Jonathan aad711bb73 HACK: always connect bmodels to their brushes. this is temporary until we can figure out why the node bounds are wrong 2022-06-01 18:45:02 -04:00
Jonathan f64c8e7160 remove Q2_CONTENTS_TRANSLUCENT on load, since it breaks stuff
more areaportal fatal -> warning
2022-06-01 18:36:09 -04:00
Jonathan 8b4bd6deeb non-recursive method for animated textures; makes it easier to follow and makes sure the chain ends in -1 2022-06-01 17:42:37 -04:00
Jonathan 487c0fa1c6 Merge branch 'type-cleanup' of https://github.com/Paril/ericw-tools into type-cleanup 2022-06-01 15:30:32 -04:00
Jonathan a9e9c14e0d warning for invalid face contents rather than a hard assert error
remove _wad warning for Quake II, Q2 doesn't use wads
areaportals are still fiddly, but this should help track down the errors - print entity # (bounds still not working)
2022-06-01 15:30:27 -04:00
Eric Wasylishen 442a7d0484 testqbsp: add tests for qbsp_angled_brush.map, qbsp_sealing_point_entity_on_outside.map 2022-05-24 20:04:08 -06:00
Eric Wasylishen 5a0d6bbeef testqbsp: add qbsp_func_detail.map test case 2022-05-24 19:51:32 -06:00
Eric Wasylishen e4f6201bbe testbqsp: add simple_sealed_rotated 2022-05-22 13:36:19 -06:00
Eric Wasylishen d3ee17ac59 testqbsp: remove -noprogress as it hinders debugging 2022-05-22 13:16:27 -06:00
Eric Wasylishen ba884f6e1a qbsp: CreateBrushFaces: list -> vector 2022-05-22 12:54:47 -06:00
Eric Wasylishen a4ebfab691 tests: fix case issue with catch includes 2022-05-15 13:19:46 -06:00
Eric Wasylishen 03d9df50e5 tests: don't include(CTest) as it generates unwanted targets 2022-05-15 12:43:35 -06:00
Eric Wasylishen 7f0f3e9992 tests: fix build errors 2022-05-15 12:40:20 -06:00
Eric Wasylishen c925f7be74 test: convert test case macros to Catch2 2022-05-15 12:27:43 -06:00
Eric Wasylishen 28bea85d97 test: convert assertions to Catch2 format 2022-05-15 12:18:09 -06:00
Eric Wasylishen 9fe42ef6c7 test: swap GTest out in favour of Catch2 2022-05-15 12:00:50 -06:00
Eric Wasylishen 254310dc2c tests: switch to Catch2 style 2022-05-15 11:20:02 -06:00
Jonathan d9c6e52bd3 Merge branch 'type-cleanup' of https://github.com/Paril/ericw-tools into type-cleanup 2022-05-15 10:09:41 -04:00
Jonathan e2512372c3 fix -convert not working properly for Q2 maps
begin code for alias files
2022-05-15 10:09:38 -04:00
Eric Wasylishen 215c6549b9 testqbsp: add test of nodraw + includeskip 2022-05-15 01:49:27 -06:00
Eric Wasylishen 67a895d1e7 testqbsp: fix use of msvc-ism 2022-05-15 00:50:53 -06:00
Eric Wasylishen d34d41a390 testqbsp: add helper for compiling with an external bsp tool 2022-05-15 00:37:58 -06:00
Eric Wasylishen e834b848b9 qbsp: fix areanodes test 2022-05-15 00:15:17 -06:00
Eric Wasylishen 153bde886b testmaps_q2.base1leak: remove brushbsp arg 2022-05-14 20:14:09 -06:00
Eric Wasylishen 9c806d2d15 settings: don't call exit(0) in printHelp() as it's problematic for tests 2022-05-14 18:11:14 -06:00
Eric Wasylishen c537ad39c1 qbsp: move wadlist to map struct 2022-05-14 15:55:18 -06:00
Eric Wasylishen bc90198006 qbsp: move wal_cache to map struct 2022-05-14 15:29:58 -06:00
Eric Wasylishen fa18a6755a qbsp: fix q2 brush export breaking when multiple tests run 2022-05-14 15:13:47 -06:00
Eric Wasylishen 863a3de04f testqbsp: write out .bsp.json files for testmaps 2022-05-14 15:08:49 -06:00
Eric Wasylishen 2195a3f5a4 testqbsp: adjust testmaps_q2.detail to accept extra solid leafs generated on type-cleanup branch 2022-05-13 01:18:30 -06:00
Eric Wasylishen b2e78376cb qbsp: require nonzero intersection between leaf/brush in order to add a leafbrush
removes some unnecessary leafbrushes in testmaps_q2.detail
2022-05-13 01:17:45 -06:00
Eric Wasylishen b3f35b28ad testqbsp: relax node count requirement in simple_worldspawn_sky 2022-05-13 00:27:40 -06:00
Eric Wasylishen b6ce6ae527 testqbsp: simple_worldspawn_sky: fix expectation so sky leafs don't fill outwards 2022-05-12 23:51:05 -06:00
Eric Wasylishen 8f0034565d qbsp: surfaces.cc: don't output inside faces of sky brushes
Can't see them anyway
2022-05-12 23:43:32 -06:00
Jonathan 59db5bfdc5 Merge branch 'type-cleanup' of https://github.com/Paril/ericw-tools into type-cleanup
# Conflicts:
#	include/qbsp/qbsp.hh
#	qbsp/map.cc
#	qbsp/qbsp.cc
2022-05-11 09:50:46 -04:00
Jonathan cbdb5c0c73 slight bit of cleaning 2022-05-11 09:46:39 -04:00
Eric Wasylishen a1b8a38283 merge non-brush bsp specific changes from brushbsp branch 2022-05-11 01:58:53 -06:00
Eric Wasylishen d763b2e336 build: support clang-cl 2022-05-10 21:39:58 -06:00
Jonathan d6377acff9 -q2rtx implies -q2bsp now 2022-04-30 23:30:18 -04:00
Jonathan cc0e1a5561 move Face_IsLightmapped to light
Fix q2rtx, needs to include lightstyle for nodraw for emissive invisibles with lightstyles
fix wal (for the 900th time)
auto-set -nolighting for -q2rtx
2022-04-30 23:27:21 -04:00
Jonathan b7fbf28e51 fix .wal loading (Again...) 2022-04-27 14:57:40 -04:00
Jonathan 0b41f0a03b notriggermodels support 2022-04-16 22:20:29 -04:00
Jonathan 6080e7fc5d a bit of q2rtx stuff 2022-04-16 10:28:46 -04:00
Jonathan f5cda68416 clean up percent stuff
comment out "didn't split" message
fix winding resize
merge phong loops together
2022-03-07 14:49:50 -05:00