Commit Graph

2852 Commits

Author SHA1 Message Date
Eric Wasylishen 2c8de8b877 q2_liquids.map: add lava/water covering each other tests 2022-06-11 14:07:19 -06:00
Eric Wasylishen 948d3463ba testqbsp: Add q2_liquids test 2022-06-11 01:21:17 -06:00
Eric Wasylishen 5372c4a568 qbsp: fix q2 liquids not mirrored 2022-06-10 23:29:28 -06:00
Eric Wasylishen 121c6384fe q2_liquids.map: "un-default" content/surface flags in TB so they don't require a baseq2 dir to compile correctly 2022-06-10 22:15:20 -06:00
Eric Wasylishen 28c6489968 q2_liquids.map, q2_water_trans.map from Paril 2022-06-10 22:11:59 -06:00
Eric Wasylishen 3bf797d72e bspfile: build fix 2022-06-10 21:35:01 -06:00
Eric Wasylishen 64159d92f1 Merge remote-tracking branch 'github-desktop-paril/type-cleanup' into brushbsp 2022-06-10 21:32:23 -06:00
Eric Wasylishen 66063168f6 testqbsp: all q2 tests pass against these tools + q2tools-220 2022-06-10 20:30:20 -06:00
Eric Wasylishen b3cedd7fed testqbsp: adjust detail test case to pass in q2-220 tools 2022-06-10 20:21:00 -06:00
Eric Wasylishen ce1c2c2c19 qbsp_q2_detail: translate map so center doesn't get chopped in q2 tools 2022-06-10 20:18:35 -06:00
Eric Wasylishen c878a11f1d testqbsp: fix detail test expectations 2022-06-10 20:14:54 -06:00
Eric Wasylishen fc5f1573ef qbsp: simplify ShouldClipbrushEatBrush
fixes lavaclip test case
2022-06-10 20:00:42 -06:00
Eric Wasylishen d4f1707cdb qbsp: proper merging of Q2 contents 2022-06-10 19:19:00 -06:00
Eric Wasylishen 31ab4546a3 testqbsp: update playerclip test expectation to match q2tools_220 2022-06-10 19:00:19 -06:00
Eric Wasylishen 2a851f87d0 qbsp: use Q2_CONTENTS_DETAIL in Q2 mode, not CFLAGS_DETAIL 2022-06-10 18:16:03 -06:00
Jonathan 79ca3c1543 fix inversion on content types portal visibility in Q2 (opaque water, etc was considered see-through; now it correctly assumes they are solid) 2022-06-10 06:53:38 -04:00
Jonathan 812797f7ed enable lighting for warp/sky in Q2
simplify bitflag definitions
change nudging light warning to make more sense
another #define -> constexpr pass
2022-06-10 06:29:14 -04:00
Jonathan 5b4660fa63 simplify crc code 2022-06-10 04:47:10 -04:00
Jonathan 42c4060a64 canonize plane stuff into an enum type, remove duplicates
more macros into constexpr's
use options.epsilon directly instead of ON_EPSILON in qbsp
2022-06-10 04:43:56 -04:00
Jonathan 0d56c49d7a remove hardcoded lightstyles max, use config option 2022-06-10 04:22:12 -04:00
Eric Wasylishen 3c4f798e97 qbsp: add create_detail_illusionary/fence/solid_contents 2022-06-10 01:07:20 -06:00
Eric Wasylishen 014e0d8aaa qbsp: replace some contents.extended reads with new is_detail_*() getters 2022-06-10 00:07:01 -06:00
Eric Wasylishen 8c1095715c qbsp: refactor out is_detail(int32_t types = CFLAGS_DETAIL_MASK) since it's going to depend on game now 2022-06-09 23:48:26 -06:00
Eric Wasylishen 47aa1f7476 qbsp: replace is_detail() with is_any_detail(options.target_game) 2022-06-09 23:32:33 -06:00
Eric Wasylishen 5025985348 testqbsp: hide current test failures 2022-06-09 23:20:19 -06:00
Eric Wasylishen 33f1681261 bspfile.hh: updates to content type constants docs 2022-06-08 01:03:39 -06:00
Eric Wasylishen f15e3b958a testqbsp: fix some test expectations to match q2tools 2022-06-08 01:02:00 -06:00
Eric Wasylishen c8841fb1bf testqbsp: add lavawater test 2022-06-08 01:01:17 -06:00
Eric Wasylishen 6c3b8a9413 Merge branch 'type-cleanup' into brushbsp 2022-06-07 20:05:02 -06:00
Eric Wasylishen 4941a86cbe qbsp: rest of fix for qbsp_q2_bmodel_collision, only needed on type-cleanup branch 2022-06-07 19:49:39 -06:00
Eric Wasylishen 0326374d68 testqbsp: bmodel collision issue where world and bmodel are interfering 2022-06-07 19:27:42 -06:00
Eric Wasylishen 633aaf3954 testqbsp: mark lavaclip test as [!mayfail] 2022-06-07 19:27:16 -06:00
Jonathan 76ac68861e Merge branch 'type-cleanup' of https://github.com/Paril/ericw-tools into type-cleanup 2022-06-07 20:36:22 -04:00
Jonathan d348a4cb6b fix nodes getting negative planes from certain splits
# Conflicts:
#	include/qbsp/brush.hh
#	qbsp/solidbsp.cc
2022-06-07 20:31:28 -04:00
Jonathan cc8719cb84 Merge branch 'brushbsp' of https://github.com/ericwa/ericw-tools into brushbsp 2022-06-07 20:30:19 -04:00
Jonathan 3d539b9660 fix nodes getting negative planes from certain splits 2022-06-07 20:30:10 -04:00
Eric Wasylishen ad8e6a7a75 testqbsp: bmodel collision issue where world and bmodel are interfering 2022-06-07 17:05:03 -06:00
Jonathan 7bfb5a188f Merge branch 'type-cleanup' into brushbsp 2022-06-07 17:44:49 -04:00
Jonathan a94de7f8cc use closer to Q2 version of WindingIsTiny
allow .outside.map to be written for Q2 as well
2022-06-06 17:54:05 -04:00
Jonathan 80664675aa fix extra LMSHIFT lump 2022-06-06 04:20:34 -04:00
Jonathan 54efff2e7a don't print out % if it hasn't changed 2022-06-06 03:29:33 -04:00
Jonathan b5458aaa78 Merge branch 'brushbsp' of https://github.com/ericwa/ericw-tools into brushbsp 2022-06-06 03:26:24 -04:00
Jonathan c5e864fca1 re-enable stuff
undo the shared lock stuff
2022-06-06 03:26:19 -04:00
Eric Wasylishen a12427b47d decompile: fix --decompile-ignore-brushes 2022-06-06 00:07:39 -06:00
Eric Wasylishen c2b39a6502 decompile: fix texture name crash with missing texinfo 2022-06-06 00:07:37 -06:00
Eric Wasylishen fe31e1c1ce bsputil: add --decompile-ignore-brushes option for visualizing leafs in q2 maps 2022-06-06 00:07:31 -06:00
Eric Wasylishen 7c1f84c481 decompile: fix --decompile-ignore-brushes 2022-06-05 23:55:02 -06:00
Eric Wasylishen e29dcd281a decompile: fix texture name crash with missing texinfo 2022-06-05 23:42:44 -06:00
Eric Wasylishen c83f4cb10c bsputil: add --decompile-ignore-brushes option for visualizing leafs in q2 maps 2022-06-05 23:24:02 -06:00
Jonathan 8f50108b5e slight optimization for winding_t: use memcpy directly. the copy constructor can't automatically optimize it into a memcpy because of the iterator wrapper.
use side_t where appropriate
add a shared lock to map.planes, and hide the original vector to prevent non-locked read/writes
move MakeSkipTexinfo to the beginning of the operation - make a global skip texinfo as the first texinfo. it will get culled out later if need be.
re-enable ChooseMidPlaneFromList; seems to work, but maybe there's a test that is failing that is the reason it was if'd out?
enable parallelization of PartitionBrushes since map.planes is lockable now
2022-06-05 22:52:02 -04:00