Commit Graph

306 Commits

Author SHA1 Message Date
Eric Wasylishen 46d460277a ltface: support -world_units_per_luxel without -novanilla
first pass implementation - quality of vanilla LM is bad, due to nearest sampling
the decoupled lightmap
2022-11-14 23:58:31 -07:00
Eric Wasylishen d7acd046c3 light/qbsp: add _surflight_rescale key 2022-11-12 17:07:02 -07:00
Eric Wasylishen 93d059058f testqbsp: fix mirrorinside + bmodels in Q1 mode 2022-11-11 12:33:47 -07:00
Eric Wasylishen e6cec0eb5e qbsp: fix _mirrorinside 0 in q2 mode 2022-11-06 23:53:06 -07:00
Eric Wasylishen 5e0431adbd add testcase where detail causes a "vis leak"
this is due to detail sealing
2022-11-06 23:30:08 -07:00
Eric Wasylishen da5910e732 tests: first steps on a light test case 2022-10-30 15:32:41 -06:00
Eric Wasylishen 22b9329489 testmaps: add q2 lighting testmap 2022-10-29 20:35:10 -06:00
Eric Wasylishen 27045404d3 tests: add CSGFaces basic test 2022-10-23 19:20:19 -06:00
Eric Wasylishen 501ced4bfe qbsp: restore func_detail_wall support 2022-10-21 18:33:38 -06:00
Eric Wasylishen 74996f97d2 light_q2_translucent_shadow.map: add WINDOW test cases 2022-10-19 00:22:41 -06:00
Eric Wasylishen c78b0396a9 light: fix wrong opacity of trans33/trans66 translucent shadows
- support _light_alpha key in q2 mode
- add q2 translucent shadows testmap
2022-10-19 00:00:47 -06:00
Eric Wasylishen 8bfd11ba13 testqbsp: add a obj2map terrain test case
some terrain I created in Blender
2022-09-26 22:40:09 -06:00
Eric Wasylishen e081e36d28 testmaps: add retrojam1_ericw.map 2022-09-16 23:19:32 -06:00
Eric Wasylishen 68e2f97fbf qbsp: sync FindAreas to Quake-2-Tools version
fixes area portals in cases when area has no point entities in it
2022-09-10 15:49:17 -06:00
Eric Wasylishen a8a8966e28 test_qbsp: add failing test for 0.125 unit wide faces (currently not generated) 2022-09-08 23:51:51 -06:00
Eric Wasylishen c8c526ab57 qbsp: fix mist-clip intersection chopping up the faces
note it makes the simple_worldspawn_detail clipnodes count
test fail. Clipnode counts are way too high in general so this isn't
a huge issue yet.
2022-08-28 14:13:14 -06:00
Eric Wasylishen d9856230a6 testqbsp: q1_rocks: sky -> solid to simplify test case 2022-08-20 01:24:10 -06:00
Eric Wasylishen f3a2d99544 testqbsp: adjust q1_rocks test case
avoid potential ambiguity for BrushBSP over whether sky should split wall brushes
2022-08-20 00:22:21 -06:00
Eric Wasylishen 251a6dc7ca testmaps: add a more minimal q1_rocks that's just a cube 2022-08-19 22:55:27 -06:00
Eric Wasylishen 648ffab77b testqbsp: improve q1_rocks test 2022-08-19 22:10:16 -06:00
Eric Wasylishen 10051ceff5 testmaps: remove some accidental brushes in q1_hull_expansion_lip.map
testqbsp: more detailed q1_hull_expansion_lip tests for clipnodes

testqbsp: decompile hull1 of testmaps by default

testqbsp: corrections to the q1_hull_expansion_lip.map expectation

adjust gitignore
2022-08-19 20:49:59 -06:00
Eric Wasylishen 832ab0ee94 testqbsp: q1_hull_expansion_lip.map: move detail to world as a temp workaround
for -debugexpand only expanding world brushes
2022-08-19 01:14:38 -06:00
Eric Wasylishen 8ce72efba2 testmaps: add q1_hull_expansion_lip.map
which is getting incorrectly expanded
2022-08-16 00:35:47 -06:00
Eric Wasylishen d88bedd153 testqbsp: add q1_rocks.map test with obj2map style brushes 2022-08-15 01:07:47 -06:00
Eric Wasylishen 244399b6f7 testqbsp: make q1_hull1_content_types seal in hull1/2 2022-08-14 21:40:49 -06:00
Eric Wasylishen 0642ad16d3 testqbsp: start a hull1 content type test 2022-08-14 18:14:56 -06:00
Eric Wasylishen 35859a6ea4 tests: add q1_wad_mapname test 2022-08-14 13:45:31 -06:00
Eric Wasylishen 995ac04673 tests: add a few clipnode count tests
adjust qbsp_simple_worldspawn_detail.map so it seals in hull1/2
2022-08-13 20:11:22 -06:00
Eric Wasylishen e05a2bdf75 qbsp: "-add additional.map" feature 2022-08-01 19:13:10 -06:00
Eric Wasylishen f665cd5cb6 testqbsp: rename our copy of base1.map to base1-test.map
for easier loading in game in Q2
2022-07-31 21:29:25 -06:00
Eric Wasylishen a2451a41fb qbsp: rewrite of q1 contents representation in bspfile.cc
use q2-like bitflags so we can represent mixes like (water | mist), which we need within the compiler
2022-07-27 02:31:49 -06:00
Eric Wasylishen 7f955a5247 testmaps: add q1_tjunc_angled_face 2022-07-13 00:59:46 -06:00
Eric Wasylishen 6d847fed85 testqbsp: rename quake map source to have -test suffix, for easier loading in an id1/maps directory
otherwise vanilla engines will load the original .bsp's from the pak files
2022-07-12 23:13:46 -06:00
Eric Wasylishen 54a6762a05 qbsp: add edge sharing test 2022-07-10 01:25:28 -06:00
Eric Wasylishen c2a2890240 testqbsp: add texture metadata for some of the base1.map special textures
so we can compile a working version of the map
2022-07-07 01:21:50 -06:00
Eric Wasylishen 862d9bd5f2 testqbsp: add q1_clip_func_wall
Ensure submodels that are all "clip" get bounds set correctly
2022-06-30 00:53:02 -06:00
Eric Wasylishen 84263ef1a1 testqbsp: add model bounds test map 2022-06-22 22:11:40 -06:00
Eric Wasylishen 98e27cf620 testqbsp: improve water_detail_illusionary test 2022-06-21 01:16:55 -06:00
Eric Wasylishen 59d6169b3d qbsp: add a test of just a cube 2022-06-19 16:04:54 -06:00
Eric Wasylishen bf36bd56f7 qbsp: fix qbsp_q1_sealing test case 2022-06-14 02:03:50 -06:00
Eric Wasylishen a309e8467b testmaps: add qbsp_q1_sealing.map 2022-06-14 00:44:50 -06:00
Eric Wasylishen 4e7ecbf9ff testqbsp: add qbsp_q2_detail_seals 2022-06-13 22:50:01 -06:00
Eric Wasylishen 1cddbf1ad9 testqbsp: add qbsp_q2_seal_empty_rooms 2022-06-13 22:39:04 -06:00
Eric Wasylishen 2c8de8b877 q2_liquids.map: add lava/water covering each other tests 2022-06-11 14:07:19 -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 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 c8841fb1bf testqbsp: add lavawater test 2022-06-08 01:01:17 -06:00
Eric Wasylishen ad8e6a7a75 testqbsp: bmodel collision issue where world and bmodel are interfering 2022-06-07 17:05:03 -06:00
Eric Wasylishen e3892617ed testqbsp: add testmap for q2 lava intersecting clip (fails currently) 2022-06-03 23:29:23 -06:00
Eric Wasylishen d43f10ae2b qbsp: fix areaportals touching detail 2022-06-01 22:01:48 -06:00
Eric Wasylishen e7f02daddb testmaps: remove obsolete shell script based test 2022-05-24 20:13:19 -06:00
Eric Wasylishen 7e53f84f4f testmaps: delete redundant test case 2022-05-24 19:53:14 -06:00
Eric Wasylishen e4f6201bbe testbqsp: add simple_sealed_rotated 2022-05-22 13:36:19 -06:00
Eric Wasylishen 215c6549b9 testqbsp: add test of nodraw + includeskip 2022-05-15 01:49:27 -06:00
Eric Wasylishen a1b8a38283 merge non-brush bsp specific changes from brushbsp branch 2022-05-11 01:58:53 -06:00
Eric Wasylishen 35d938607c testmaps: move lightstest1.map -> light_general.map 2022-02-19 14:03:43 -07:00
Eric Wasylishen ac3fb7801f automated_tests.sh: disable hash checks until they stabilize 2022-02-15 00:55:42 -07:00
Eric Wasylishen fefc0fc662 automated_tests.sh: fix bash syntax errors, don't run vis in parallel
makes it difficult to tell which map caused a vis crash
2022-02-06 15:00:29 -07:00
Eric Wasylishen e0981b356b testmaps: add qbsp_leaf_contents_bug.map 2022-01-29 22:10:10 -07:00
Eric Wasylishen 81f69b40f7 ci: add --continue-on-failure option to automated_tests.sh 2022-01-29 20:27:42 -07:00
Eric Wasylishen 84020b1335 Restore "skip the flips - saves us a bit of time!"
BSP output changes (should just be face order though)
2022-01-25 21:50:52 -07:00
Eric Wasylishen 0af808021e testmaps: hook up newer test maps 2022-01-25 21:23:44 -07:00
Eric Wasylishen 7e6ae905db testmaps: add qbsp_tjunc_many_sided_face.map 2022-01-25 19:50:21 -07:00
Eric Wasylishen 465aa791f5 testmaps: update qbspfeatures.bsp expected output
changed due to noclipfaces related change in prev commit
2022-01-22 21:11:31 -07:00
Eric Wasylishen ec3f24893d automated_tests.sh: fix bash weirdness 2022-01-15 16:11:40 -07:00
Eric Wasylishen 978b882381 automated_tests.sh: debugging test failure on appveyor 2022-01-15 15:30:11 -07:00
Eric Wasylishen 0dd7a73cc1 qbsp: flip brush clipping order to match original qbsp
Patch from Paril
2022-01-15 14:35:02 -07:00
Eric Wasylishen 38e27a38ec testmaps: add q2 detail/playerclip testmaps 2021-10-24 23:23:05 -06:00
Eric Wasylishen f56d6113b6 testmaps: regenerate hashes to account for 0 vs -0 change 2021-10-24 16:24:20 -06:00
Eric Wasylishen 0a827d56c6 testmaps: update reference .json to have embedded texture data 2021-10-24 14:56:43 -06:00
Eric Wasylishen 15930bb573 testmaps: update e1m1 hashes to account for outside filling change 2021-10-11 23:18:24 -06:00
Eric Wasylishen ebd3d4e5c2 testmaps: add qbsp_sealing_point_entity_on_outside.map 2021-10-11 22:50:32 -06:00
Eric Wasylishen ed1982b782 testmaps: update expected .json output to account for nexttexinfo change 2021-10-09 13:06:16 -06:00
Eric Wasylishen 100d364edf Merge remote-tracking branch 'origin/master' into pr/322 2021-10-08 19:04:48 -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
Eric Wasylishen 33a454c700 Merge remote-tracking branch 'origin/master' into pr/322 2021-10-08 00:58:25 -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 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 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 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 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 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 a79772d988 testmaps: fix stale hash for qbsp_func_detail_illusionary_plus_water.map 2021-10-04 20:25:26 -06:00
Eric Wasylishen a7c3e70766 testmaps: add qbsp_func_detail_illusionary_plus_water.map 2021-10-04 19:27:24 -06:00
Eric Wasylishen 640befb4dc qbsp: write portals as binary to avoid line ending differences 2021-10-03 19:47:00 -06:00
Eric Wasylishen baf1bdf732 testmaps: also check hashes of .prt files. run vis processes in parallel. 2021-10-03 19:26:40 -06:00
Eric Wasylishen b01e9ef7b1 testmaps: add a new simple func_detail testmap 2021-10-03 19:19:11 -06:00
Eric Wasylishen 3bd65d5aa5 testmaps: add lava, water, sky, origin to qbspfeatures.map 2021-10-02 20:15:43 -06:00
Eric Wasylishen d4464a6503 testmaps: update hash 2021-10-01 23:25:39 -06:00
Eric Wasylishen 3e56b635c0 testmaps: update hashes 2021-10-01 23:17:48 -06:00
Eric Wasylishen 5dc3982a54 testmaps: update qbspfeatures.map 2021-10-01 22:58:45 -06:00
Eric Wasylishen af7e3308f6 qbsp: testmaps: add qbspfeatures.map 2021-09-27 00:00:41 -06:00
Eric Wasylishen 77cbc5780f tests: update onlyents hash (this branch is correct, master branch is broken) 2021-09-21 23:42:41 -06:00
Eric Wasylishen d86638d6f3 tests: commit E1M1-edited-ents.map for easier testing/debugging 2021-09-21 22:49:02 -06:00
Eric Wasylishen 2e7e886fa3 testmaps: -onlyents test 2021-09-20 23:35:41 -06:00
Eric Wasylishen a535a0bd1b ci: add -wrbrushes test 2021-09-20 21:40:55 -06:00
Eric Wasylishen f45f512922 testmaps: add phong test map 2021-09-20 19:42:25 -06:00
Eric Wasylishen d453ff6c01 ci: try forcing exit 0 2021-09-19 22:59:10 -06:00
Eric Wasylishen ab23e8cac5 ci :disable light test for now, because it's nondeterministic (at least across windows/mac) 2021-09-19 21:58:38 -06:00
Eric Wasylishen f2cffaa9e8 ci: run light single threaded 2021-09-19 18:57:00 -06:00
Eric Wasylishen d01c30ea9b ci: run vis single threaded, refresh expected hashes 2021-09-19 18:46:40 -06:00
Eric Wasylishen 87c65fffed ci: initial commit of test map hashes 2021-09-19 16:29:42 -06:00
Eric Wasylishen 2446134b23 ci: add hash checking and generating functionality 2021-09-19 16:23:23 -06:00
Eric Wasylishen a8a564300c tests: move unused tests to deprecated folder 2021-09-19 15:26:48 -06:00
Eric Wasylishen e0cce38d55 tests: add vis to path before running regression tests
move leaktest invocation to automated_tests.sh
2021-09-19 15:24:46 -06:00
Eric Wasylishen 61b0c276c3 automated_tests.sh: wip new testing system 2021-09-19 14:01:54 -06:00
Eric Wasylishen 81d58e5e89 test: add -noverbose to qbsp invocations 2021-09-11 13:47:36 -06:00
Eric Wasylishen 8fc3266db5 light: update testmap 2021-05-21 20:47:20 -06:00
Eric Wasylishen a940e506ff Add test_face_splits.map showing unwanted splitting vs tyrutils-0.15
Map should have exactly 30 faces (5 cubes * 6)
2019-02-10 00:05:51 -07:00
Eric Wasylishen 2df839cfc2 light: Add "_bounce" "-1" to disable bouncing for a func_detail/etc. 2019-01-22 00:02:46 -07:00
Eric Wasylishen 0ac4909396 qbsp: change outside.cc to not fill leafs that have faces that are
straddling in and out of the void.

Previously, we were just deleting these faces, leaving HOMs.
Keeping them but filling the leaf in as solid doesn't work either, because
if they are the only faces left in the leaf it messes up the content type
determination later.

Fixes test_tjunc01.map test case from Qmaster.
2019-01-19 21:56:05 -07:00
Eric Wasylishen cae501972e light: _phong_angle_concave support 2018-01-30 01:48:25 -07:00
Eric Wasylishen 5a90667738 test: rename *.MAP to *.map 2018-01-15 21:48:00 -07:00
Eric Wasylishen 44fc2ab05a test: add invalid_texture_axes.map
contributed by ww at:
http://celephais.net/board/view_thread.php?id=61542&start=13&end=13
2018-01-15 20:09:20 -07:00
Eric Wasylishen c58df6e06b light: add detailwall.map test map 2017-12-10 23:51:29 -07:00
Eric Wasylishen 78fb256862 swtest.map testmap for https://github.com/ericwa/tyrutils-ericw/issues/174 2017-09-15 22:58:02 -06:00
MaxED fe1e040cd1 Added "_falloff" light property. Allows to set light falloff in map units. 2017-08-23 15:00:32 -06:00
Eric Wasylishen da458a0569 Add suntest.map 2017-08-23 14:03:49 -06:00
Eric Wasylishen 68111df578 testmaps: remove DM8.map (map scrap) 2017-07-15 13:54:28 -06:00
Eric Wasylishen 983a9afbd2 qbsp: add bash script to leak test all of the id1 maps 2017-07-15 12:38:13 -06:00
Eric Wasylishen 5d204036b7 testmaps: add quake map sources 2017-07-15 11:58:11 -06:00
Eric Wasylishen 6f07303504 light: implement _shadowworldonly, fix _shadowself which was broken 2017-06-27 14:48:27 -06:00
Eric Wasylishen 62db977309 light: add _shadow, _shadowself, _shadowworldonly testmap 2017-06-27 14:05:43 -06:00
Eric Wasylishen 63a858209b qbsp: add offgrid testmaps 2017-06-10 00:48:44 -06:00
Eric Wasylishen 94ba5560c7 qbsp: fix QuakeEd map conversion 2017-03-26 12:40:06 -06:00
Eric Wasylishen 21445c0d6a light: add a pipe to lightstest1 2017-03-19 14:18:30 -06:00
Eric Wasylishen 7895d13cf7 lightstest1: tweak to show more artifacts 2017-02-14 16:20:24 -07:00
Eric Wasylishen 5ce019919f testmaps: stairsteptest: demonstrate light leaking problem 2017-02-14 16:17:14 -07:00
Eric Wasylishen 69504f4439 phongtest: add a thinner pipe 2017-02-14 16:17:08 -07:00
Eric Wasylishen 591f0e773a lightstest1.map: add tests of more corner cases
- minlight on bmodels that are partially sticking out of the world
- "_shadow" "1" bmodels on the middle of world faces
2017-02-14 16:16:57 -07:00
Eric Wasylishen 0db74987fb light: update stairsteptest 2017-02-08 16:01:52 -07:00
Eric Wasylishen a1ad595476 light: new stairsteptest.map (part of e4m4.map GPL source) 2017-02-08 15:56:47 -07:00
Eric Wasylishen 935dd0dd27 lightstest1.map: update for testing lit water 2017-02-02 21:57:22 -07:00
Eric Wasylishen 4ec1d92191 light: dirt_off_radius, dirt_on_radius 2017-01-30 16:11:56 -07:00
Eric Wasylishen 2637373ef0 add hexen2 rotation test map 2017-01-25 15:02:38 -07:00