Commit Graph

3979 Commits

Author SHA1 Message Date
Eric Wasylishen c243be2b14 lightpreview: open dialog: start in directory of current file 2023-07-10 21:59:33 -06:00
Eric Wasylishen 99be5a84bc qbsp: experimental -filldetail feature (defaults to on)
also change default -filltype from auto to inside
2023-07-09 23:00:15 -06:00
Eric Wasylishen f3edc52a00 qbsp: cleanup outside.cc terminology to reflect what is actually happening 2023-07-09 16:08:00 -06:00
Eric Wasylishen 465e59fc16 apply auto formatting 2023-07-09 15:04:16 -06:00
Jonathan 5dea42e012 Merge branch 'brushbsp' of https://github.com/ericwa/ericw-tools into brushbsp 2023-07-09 15:44:28 -04:00
Jonathan aa70d6dc00 draw lines and portals
disable leakdist by default
2023-07-09 15:44:23 -04:00
Eric Wasylishen f28522a077 vis: replace ffsl with std::countr_zero 2023-07-08 20:04:05 -06:00
Random 2637a5fb65
-notex should now work (#365) 2023-07-08 15:55:34 -06:00
Eric Wasylishen 9760f5b8da qbsp: fix detection of areaportal leaks (FindAreaPortalExits_R was aborting the search for "exits" early) 2023-07-06 22:37:28 -06:00
Eric Wasylishen aa74b76815 common: add qmat::transpose() 2023-07-06 17:13:14 -06:00
Jonathan f03fc2183c remove some dead code 2023-07-06 12:51:50 -04:00
Jonathan 9898eab474 Merge branch 'brushbsp' of https://github.com/ericwa/ericw-tools into brushbsp 2023-07-06 08:25:11 -04:00
Jonathan 064e7980fd allow --scale to take three parameters. negatives *kind of* work but won't work with lightgrid, etc. 2023-07-06 08:25:02 -04:00
Eric Wasylishen 72d89f582d lightpreview: don't crash on unknown flags 2023-07-05 17:59:44 -06:00
Eric Wasylishen 7691706bda build: only use <fmt/core.h>, other headers have a heavy compilation time impact 2023-07-02 17:08:14 -06:00
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