Commit Graph

4214 Commits

Author SHA1 Message Date
Eric Wasylishen 33ffec3424 build: add compile time benchmark 2023-07-02 17:03:44 -06:00
Eric Wasylishen 5616fd97f4 common: use compile-time format string checking 2023-06-26 01:19:54 -06:00
Eric Wasylishen 1c85bb882a light: minimize includes 2023-06-26 01:19:54 -06:00
Jonathan 11d73b71d8 Merge branch 'brushbsp' of https://github.com/ericwa/ericw-tools into brushbsp 2023-06-26 00:50:15 -04:00
Jonathan 93da0c9905 add the ability to specify a chop order; this is to help with "nested" func_groups and layers, since TB makes them an implicit object at random spots in the BSP. Now you can be sure your objects will chop in the right order. 2023-06-26 00:50:08 -04:00
Eric Wasylishen fbea58d679 code formatting pass 2023-06-25 18:29:48 -06:00
Eric Wasylishen 36e157254c build perf: de-templateize texvec<T>, we only need texvecf 2023-06-25 18:25:45 -06:00
Eric Wasylishen 26dedb603f common: move numeric_cast to dedicated common/numeric_cast.hh 2023-06-25 17:50:17 -06:00
Eric Wasylishen 10581327b3 build: remove some unneeded includes from bspfile.hh 2023-06-25 16:35:26 -06:00
Eric Wasylishen 5243fd8751 build: fix deprecation warnings 2023-06-25 16:02:03 -06:00
Eric Wasylishen 3cfe9aeb67 build: fix build with PCH disabled 2023-06-25 14:52:01 -06:00
Jonathan be8ae00fa6 fix so that the brush list has no dupes and is sequential again 2023-06-21 07:48:57 -04:00
Jonathan db4a205537 Merge branch 'brushbsp' of https://github.com/ericwa/ericw-tools into brushbsp 2023-06-20 19:36:15 -04:00
Jonathan 2b22e35669 make sure world brush entities are in BSPX wrbrushes 2023-06-20 19:36:05 -04:00
Eric Wasylishen 51def3282c tests: disable currently failing tests 2023-06-19 22:12:43 -06:00
Eric Wasylishen 50c1e38a27 vis: parallel CalcAmbientSounds 2023-06-19 21:59:06 -06:00
Eric Wasylishen 010fbe5a3b tests: restore "sky gets an optimized lightmap" test
now that it's fixed
2023-06-19 21:59:06 -06:00
Jonathan 15f0f97fb3 remove __debugbreak 2023-06-19 15:38:44 -04:00
Jonathan caa7418375 async threading for map progress, etc. no cancelling yet 2023-06-19 15:38:16 -04:00
Jonathan 539c722666 Merge branch 'brushbsp' of https://github.com/ericwa/ericw-tools into brushbsp 2023-06-19 09:54:31 -04:00
Jonathan 08db6e9bf9 remove fastbounce, add emissivequality
emissivequality affects both emissives
2023-06-19 09:54:25 -04:00
Eric Wasylishen 0a8aa6e95b
Merge pull request #362 from RandomErrorMessage/brushbsp
added SKIP_TBB_INSTALL and SKIP_EMBREE_INSTALL to cmake
2023-06-19 07:09:35 -06:00
Eric Wasylishen d514874d78 also skip install of embree license if SKIP_EMBREE_INSTALL is ued
clarify comment
2023-06-19 07:04:30 -06:00
Jonathan aeece2a730 Merge branch 'brushbsp' of https://github.com/ericwa/ericw-tools into brushbsp
# Conflicts:
#	light/ltface.cc
2023-06-19 04:12:11 -04:00
Jonathan 1fbe12767e decouple lightmapping state from emissive state
allow sky to skip lightmapping if lightgrid is enabled in Q2 mode again
2023-06-19 04:11:20 -04:00
RandomErrorMessage 648981c9da added SKIP_TBB_INSTALL and SKIP_EMBREE_INSTALL to cmake 2023-06-18 23:57:04 -07:00
Eric Wasylishen 9a4f27a0de light: fix sky emitting light, disable test 2023-06-19 00:39:30 -06:00
Eric Wasylishen 64146f306e fix gcc build? 2023-06-18 23:44:28 -06:00
Eric Wasylishen eae883b55c fix test failures 2023-06-18 23:24:36 -06:00
Jonathan 94357818f9 experiment with keeping sample data all together in memory, which might help caching. not certain. 2023-06-18 14:06:58 -04:00
Jonathan fcf39b2ef8 reduce memory usage by only storing VPLs when we need to, and only once
fix visapprox auto not actually being auto
2023-06-18 13:29:53 -04:00
Jonathan da2e6936d1 allow toggling BSPX loading 2023-06-16 03:40:04 -04:00
Eric Wasylishen 1c6a76e1f8 light: autominlight extensions
- now apply per-luxel, not just to faces that are fully occluded
- add "_autominlight_target" key for specifying a target
  to take the light sample from
- add "_autominlight" key: 0 = force off, default = apply to occluded luxels, 1 = apply to all luxels

wip / subject to change!
2023-06-16 00:14:27 -06:00
Jonathan 06d48e6822 fix areaportal issue 2023-06-14 02:50:23 -04:00
Jonathan d36e2f5114 --scale option for BSPUtil to do a post-process scale 2023-06-12 15:23:47 -04:00
Jonathan ac50f17e9b Merge branch 'brushbsp' of https://github.com/ericwa/ericw-tools into brushbsp 2023-06-12 01:59:20 -04:00
Jonathan b19c83e87f fix height mixup in sample texture 2023-06-12 01:59:14 -04:00
Eric Wasylishen 8f6edf946c lightpreview: fix typo 2023-06-11 23:21:26 -06:00
Eric Wasylishen e9ba89e45f lightpreview: handle settings::quit_after_help_exception 2023-06-11 23:20:16 -06:00
Eric Wasylishen 0dfb4e52ab entdata.cc: avoid exception-throwing std::stod/stoi
mostly because it's annoying when debugging with "break on first
exception thrown"
2023-06-11 23:20:13 -06:00
Eric Wasylishen 35fa5bd129 lightpreview: add "Nearest filter" checkbox 2023-06-11 23:20:07 -06:00
Eric Wasylishen 8034215b3a tests: add "minlight doesn't bounce" test 2023-06-10 16:36:17 -06:00
Jonathan 0c8c10f553 post-process phase, so minlight doesn't affect emissives 2023-06-10 14:20:53 -04:00
Jonathan 1a27cc025d infer the name of wal json from the name of the file being loaded 2023-06-09 17:58:58 -04:00
Jonathan 4500b164b6 proper skybox rotations 2023-06-08 23:11:37 -04:00
Jonathan cd27dae7e1 Merge branch 'brushbsp' of https://github.com/ericwa/ericw-tools into brushbsp 2023-06-08 22:23:16 -04:00
Eric Wasylishen b626d9447f lightpreview: wip fixing skybox rendering 2023-06-08 20:22:29 -06:00
Jonathan 0663707fe3 Merge branch 'brushbsp' of https://github.com/ericwa/ericw-tools into brushbsp 2023-06-08 22:18:37 -04:00
Jonathan 9d3b0f9878 alpha test 2023-06-08 22:18:32 -04:00
Eric Wasylishen 89e714a077 lightpreview: don't render frames when not interacting 2023-06-06 23:30:50 -06:00