Eric Wasylishen
70795ae746
bsputils: fix test error from ConnectLeafVisibilityDirectional
2023-01-09 08:51:27 -07:00
Eric Wasylishen
64d6cbad4f
light: remove hack which disable vis culling inside liquids
...
instead, implement the equivalent by bridging the PVS across opaque liquid faces
2023-01-09 01:40:01 -07:00
Eric Wasylishen
9c46e7f4da
bsputils: prototype DecompressAllVis
2023-01-08 23:51:00 -07:00
Eric Wasylishen
512ad03153
refactor: Mod_Q1BSP_DecompressVis -> DecompressVis
2023-01-08 20:43:53 -07:00
Eric Wasylishen
dc0ea62a0e
vis: migrate CalcPHS from DecompressRow to Mod_Q1BSP_DecompressVis
2023-01-08 20:43:53 -07:00
Eric Wasylishen
52fcb7a234
refactor: move Mod_Q1BSP_DecompressVis to bsputils.cc
2023-01-08 20:43:53 -07:00
Eric Wasylishen
a2399ab48c
tests: add dirt / object_channel_mask interaction test
...
was already working correctly
2023-01-08 19:59:19 -07:00
Eric Wasylishen
ff09b4c31e
qbsp: fix comment about vanilla tools
2023-01-06 12:14:08 -07:00
Eric Wasylishen
64c0d8c0c4
qbsp: fix AUX to be non-mirrorinside by default
2023-01-06 12:00:32 -07:00
Eric Wasylishen
54ada5be6d
bspinfo: don't crash if light data is missing
2022-12-21 20:58:08 -07:00
Eric Wasylishen
fe5ce3765a
test: add a few more area-related assertions
2022-12-21 20:56:18 -07:00
Eric Wasylishen
ba155a3bf5
build: avoid msvc-only constructor
2022-12-20 23:51:56 -07:00
Eric Wasylishen
f652af9c7d
bsputils: add .lit loader
2022-12-20 22:46:20 -07:00
Eric Wasylishen
35fe26b7a6
qbsp: fix FindTargetEntity (was breaking hiprotate)
2022-12-19 00:55:20 -07:00
Eric Wasylishen
6451a3f2aa
qbsp: fix _mirrorinside 1 on func_detail_fence (q2)
2022-12-15 00:18:22 -07:00
Jonathan
15b9a78fd1
fix gate being incorrect
...
add surflight grouping
fix minlight on color'd _surface lights
2022-12-05 20:35:44 -05:00
Eric Wasylishen
f66e4790a4
qbsp/light: add no_phong texinfo flag (currently not used/exposed)
2022-12-01 01:16:17 -07:00
Eric Wasylishen
1065adecc6
qbsp/light: implement _phong_group key, equivalent to Q2 "value" field
2022-12-01 00:25:05 -07:00
Eric Wasylishen
96bdf141bb
light: block phong if certain surfflag bits differ between the two faces
...
this prevents liquids from phonging with solids
2022-11-30 22:15:58 -07:00
Eric Wasylishen
ab78b43c52
decompile: BuildInitialBrush_Q2: prefer earlier brush sides
...
fixes issue with bevels sometimes being used to texture faces,
which have randomly wrong texture projections
2022-11-26 19:34:25 -07:00
Jonathan
96e88cfab1
allow a .map to be updated with a .ent file as input using replace-entities
2022-11-25 04:51:00 -05:00
Eric Wasylishen
f7370db0be
decompile: avoid generating three points from micro-faces
2022-11-25 01:05:41 -07:00
Eric Wasylishen
8b82460201
decompile: output source brush number
2022-11-25 00:32:31 -07:00
Eric Wasylishen
743e177694
decompile: BuildInitialBrush_Q2: fix handling of redundant planes
2022-11-25 00:32:18 -07:00
Eric Wasylishen
04adb17b1b
qbsp: fix -nodetail in q2 mode
2022-11-21 00:10:26 -07:00
Eric Wasylishen
5d3fab75b6
light: allow .wal_json metadata to contain "light": [ r, g, b ] to override emissive color
...
Use this to fix the "emissive lights" test case so it can run on CI without any texture data
2022-11-20 23:01:05 -07:00
Eric Wasylishen
91a0c8e86a
test_ltface.cc: add assertions to catch command line options leaking
...
across tests
2022-11-19 18:41:46 -07:00
Eric Wasylishen
c9111b2a6c
Merge pull request #337 from TTimo/colorcodes
...
Enable support for ANSI color codes on Windows 10 and newer, without …
2022-11-19 09:10:24 -08:00
Eric Wasylishen
9ab4ea8176
Move SetConsoleMode() call to logging::preinitialize(); helper
...
Don't do ENABLE_VIRTUAL_TERMINAL_INPUT as it breaks arrow key history
navigation in Windows Terminal after running one of the ericw-tools exe's.
2022-11-19 10:05:14 -07:00
Eric Wasylishen
4c218f5e91
common: factor out LMSCALE_DEFAULT = 16.0;
2022-11-15 23:52:34 -07:00
Eric Wasylishen
629f86625e
log.cc: use fmt::group_digits to avoid locale manipulation
...
this is to get thousands separators, e.g. 10000 prints as 10,000
the `auto old = std::locale::global(std::locale("en_US.UTF-8"));` line was throwing
on Win8.1
2022-11-13 18:58:08 -07:00
Eric Wasylishen
d7acd046c3
light/qbsp: add _surflight_rescale key
2022-11-12 17:07:02 -07:00
Eric Wasylishen
e6cec0eb5e
qbsp: fix _mirrorinside 0 in q2 mode
2022-11-06 23:53:06 -07:00
Eric Wasylishen
928bbf3dee
default -lowpriority to true
...
makes no difference to tool runtime (31.9s -> 31.4s for a light run), avoids unnecessarily making
Windows unusable
2022-11-06 17:06:35 -07:00
Eric Wasylishen
ca45f06bdf
bspinfo: fix format string
2022-11-04 00:53:34 -06:00
Eric Wasylishen
221ea65efb
light: fix -world_units_per_luxel on sloped faces
2022-11-03 23:45:47 -06:00
Eric Wasylishen
ca0efbf3d3
light: wip -world_units_per_luxel and DECOUPLED_LM BSPX lump
2022-11-03 02:39:15 -06:00
Eric Wasylishen
eb2d697cef
faceextents_t: refactor to store world <-> lm matrices rather than tex space <-> lm
2022-11-02 09:39:20 -06:00
Eric Wasylishen
1f01b65873
faceextents_t: rename texextents/texmins
2022-11-02 09:27:41 -06:00
Eric Wasylishen
02202b81bb
faceextents_t: move texmins out of structure
2022-11-02 09:21:42 -06:00
Eric Wasylishen
f3cc0907c8
faceextents_t: refactor to remove lightmapshift member
2022-11-02 00:56:23 -06:00
Eric Wasylishen
c39ee38454
qvec: add 3x3 matrix inverse, row major factory method
2022-11-02 00:32:06 -06:00
Eric Wasylishen
388cd39821
common: parser: fix compile time of parser_source_location
2022-10-31 23:06:20 -06:00
Eric Wasylishen
2bd2515792
all: cleanup unused includes (Clion - detect not directly used)
2022-10-31 21:37:34 -06:00
Eric Wasylishen
728fafde8c
light: remove dead code
2022-10-30 18:00:48 -06:00
Eric Wasylishen
586204a6bc
bspinfo: fix half-texel error in .obj lightmap preview
2022-10-29 22:47:35 -06:00
Eric Wasylishen
a70ef5ea7b
bspinfo: log the .obj/.png creation (lightmap preview)
2022-10-29 22:37:26 -06:00
Eric Wasylishen
53a0be5e50
build: compile time optimizations
2022-10-26 23:30:02 -06:00
Eric Wasylishen
34f32f851c
common, qbsp: more functions moved from header -> source
2022-10-26 23:29:54 -06:00
Eric Wasylishen
501ced4bfe
qbsp: restore func_detail_wall support
2022-10-21 18:33:38 -06:00