Commit Graph

3548 Commits

Author SHA1 Message Date
Jonathan 328fa6ade6 Merge branch 'brushbsp' of https://github.com/ericwa/ericw-tools into brushbsp 2022-11-17 13:55:37 -05:00
Jonathan 670347e64e fix infinite loop if map has uppercase animated textures 2022-11-17 13:55:31 -05:00
Eric Wasylishen 4c218f5e91 common: factor out LMSCALE_DEFAULT = 16.0; 2022-11-15 23:52:34 -07:00
Eric Wasylishen eb3dfe7952 ltface: use bilinear interpolation in WriteSingleLightmap_FromDecoupled 2022-11-15 00:50:11 -07:00
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 959fe32e18 portals.cc: add -verbose logging for missing portal sides 2022-11-14 21:49:01 -07:00
Eric Wasylishen c6b19fe6da light: implement -novanilla with -world_units_per_luxel
currently it's required because the non-novanilla path
isn't yet implemented
2022-11-14 00:30:37 -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 37b901a915 fmtlib 7.1.3 -> 9.1.0 2022-11-13 18:55:35 -07:00
Eric Wasylishen 99e5f15d42 Revert "ci: use older embree/tbb which support Win8.1"
This reverts commit 50c4709d31.
2022-11-13 16:52:14 -07:00
Eric Wasylishen 50c4709d31 ci: use older embree/tbb which support Win8.1 2022-11-13 15:54:30 -07:00
Eric Wasylishen eb4f25907a Revert "ci: try using -DCMAKE_SYSTEM_VERSION="8.1" to restore win8.1 support"
This reverts commit 4cbe63843f.
2022-11-13 15:07:27 -07:00
Eric Wasylishen a7645c3396 Revert "ci: try alternate way of requesting 8.1 sdk"
This reverts commit d5c2575360.
2022-11-13 15:06:40 -07:00
Eric Wasylishen d5c2575360 ci: try alternate way of requesting 8.1 sdk 2022-11-13 14:18:22 -07:00
Eric Wasylishen 4cbe63843f ci: try using -DCMAKE_SYSTEM_VERSION="8.1" to restore win8.1 support 2022-11-13 13:56:31 -07:00
Eric Wasylishen d28f97e655 cmdlib: use <bit> include unconditionally 2022-11-12 20:10:58 -07:00
Eric Wasylishen 8a9f32ca62 set CMAKE_CXX_STANDARD 20 2022-11-12 19:48:26 -07:00
Eric Wasylishen 276aa147dc fix implicit qvec conversions reported as errors
in Apple clang version 12.0.0 with std=c++2a mode
2022-11-12 19:39:31 -07:00
Eric Wasylishen d7acd046c3 light/qbsp: add _surflight_rescale key 2022-11-12 17:07:02 -07:00
Eric Wasylishen a5125583fa light: clear global data so light can run multiple times per process 2022-11-11 16:52:07 -07:00
Eric Wasylishen b81b52da5a qbsp: fix nonsolid bmodels in hul1/2 2022-11-11 15:04:53 -07:00
Eric Wasylishen 61f2bd84cf appveyor: use v143 toolchain 2022-11-11 13:29:48 -07:00
Eric Wasylishen 3dc98bdef4 appveyor: use vs2022 image 2022-11-11 13:11:50 -07:00
Eric Wasylishen 93d059058f testqbsp: fix mirrorinside + bmodels in Q1 mode 2022-11-11 12:33:47 -07:00
Eric Wasylishen 74269a0269 light: new Mottle implementation based on world-space "value noise" 2022-11-08 22:18:54 -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 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
Jonathan b0ac2754ff Merge branch 'brushbsp' of https://github.com/ericwa/ericw-tools into brushbsp 2022-11-06 18:06:52 -05:00
Jonathan 66d7ae98e5 half memory usage for lightmaps & ray colors 2022-11-06 02:21:11 -05:00
Eric Wasylishen 46ae50cb1f build: don't use LTO with RelWithDebInfo, slows down linking too much during dev 2022-11-05 15:16:30 -06:00
Eric Wasylishen 1c6e481c9a vs code: put 3rdparty dir in search exclude list
also adjust gitignore to allow committing this
2022-11-05 15:14:20 -06: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 ff54f86708 light: fix invisible shadow casters crash 2022-11-03 22:26:41 -06:00
Eric Wasylishen ca0efbf3d3 light: wip -world_units_per_luxel and DECOUPLED_LM BSPX lump 2022-11-03 02:39:15 -06:00
Jonathan 8b524cf324 Merge branch 'brushbsp' of https://github.com/ericwa/ericw-tools into brushbsp 2022-11-02 17:59:12 -04:00
Jonathan b89b71455b fix condition running in Q2 mode that isn't supported yet 2022-11-02 17:59:07 -04: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 9edadf93cd light: CalcPoints: use faceextents_t::LMCoordToWorld 2022-11-02 01:16:36 -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 0924423c20 light: header -> source move 2022-10-31 21:21:28 -06:00
Eric Wasylishen 39aacc89ef light: docs updates 2022-10-31 00:26:57 -06:00
Eric Wasylishen ff5d48e5e1 light: CalcPoints: use faceextents_t::texCoordToWorld
this changes the "one unit in front of surface" from tex space to world space, which
makes more sense
2022-10-30 20:57:44 -06:00
Eric Wasylishen 383266762d light: lightsurf_t: remove texorg member 2022-10-30 19:40:26 -06:00