Commit Graph

4224 Commits

Author SHA1 Message Date
Jonathan 56b56131d7 Merge branch 'brushbsp' of https://github.com/ericwa/ericw-tools into brushbsp 2024-06-07 21:22:43 -04:00
Jonathan f816b433d1 fix visible clip brushes
add support for the two missing content flags from re-release
2024-06-07 21:22:38 -04:00
Eric Wasylishen 02be89079f light: fix test failures from refactoring 2024-06-04 22:41:55 -06:00
Jonathan 8c93a4b1ff fix non-Windows 2024-06-02 19:59:53 -04:00
Jonathan a6a92510dd Merge branch 'brushbsp' of https://github.com/ericwa/ericw-tools into brushbsp 2024-06-02 19:49:38 -04:00
Jonathan b5089ce349 slight speedup by helping embree with alignment
merge some light algorithms together
allow changing attenuation on surface lights with _surflight_atten
replace some emplace_back's with push_back to improve compilation times
2024-06-02 19:49:32 -04:00
Eric Wasylishen e44d73a05b tests: failing test for noclipfaces choosing to use a nodraw face
which ends up defeating the point of _noclipfaces 1
2024-06-01 12:03:53 -06:00
Eric Wasylishen d090a8f476 Changelog for 2.0.0-alpha8 2024-05-31 21:53:47 -06:00
Eric Wasylishen cba902facd add test case for portal_can_see_through fix 2024-05-30 22:44:19 -06:00
Jonathan 70a08013a7 fix portals in Q2 2024-05-29 09:40:36 -04:00
Jonathan 0f844ad3e2 don't output debug stuff if we don't need it 2024-05-29 07:12:56 -04:00
Eric Wasylishen 30868eacb7
light: LIGHTING_E5BGR9 + HDR .lit support (#427)
* light: Add support for LIGHTING_E5BGR9.

This is not really finished. Currently mutually exclusive with
regular RGBLIGHTING, and not tested with external .lit file.

* light: replace HDR_PackResult with a version following the OpenGL spec

- add HDR_UnpackE5BRG9 for unpacking
- caller is now responsible for scaling 128 -> 1
- expose in header for tests

* light: move HDR_PackE5BRG9/HDR_UnpackE5BRG9 to common/litfile.hh

* build: std::powf not available in gcc

* common: move LoadLitFile to litfile.hh

* common: LoadLitFile: return hdr variant as well

* lightpreview: add an Exposure slider

* lightpreview: support hdr .lit's, wip

* tests: refactoring to set up testing for hdr lit's

* tests: add test for -hdr and -bspxhdr

* tests: fix LM_Sample to deal with styles correctly

* lightpreview: fix glsl error

* lightpreview: show dialog box for glsl compile errors

---------

Co-authored-by: Daniel Svensson <dsvensson@gmail.com>
2024-05-26 21:55:10 -06:00
Eric Wasylishen ccb502d3a1 docs: remove pinned packages
- they keep generating security alerts
- also update our direct deps (sphinx, furo)
2024-05-24 22:17:08 -06:00
dependabot[bot] da910f3e66
build(deps): bump jinja2 from 3.1.3 to 3.1.4 in /docs (#423)
Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.3 to 3.1.4.
- [Release notes](https://github.com/pallets/jinja/releases)
- [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/jinja/compare/3.1.3...3.1.4)

---
updated-dependencies:
- dependency-name: jinja2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-20 12:16:21 -06:00
Eric Wasylishen a09ad4672f build: remove some constexpr's gcc 11 didn't like 2024-05-20 11:48:44 -06:00
Jonathan 7dcac92491 add estimated time counter 2024-05-20 13:00:43 -04:00
Jonathan 6c9962eb8c some more memory adjustments
settings cleanup, maputil/bsputil changes

(cherry picked from commit 59ac57306f13ff53f935f51bb5df1e59e76753ef)

# Conflicts:
#	bsputil/bsputil.cc
2024-05-20 11:28:03 -04:00
Eric Wasylishen e61630d4d9 qbsp: q2: adding structrual solid to a leaf now only clears detail bit, not other bits
fixes #420
2024-04-24 23:46:40 -06:00
dependabot[bot] 59ee3fd0c9
build(deps): bump idna from 3.6 to 3.7 in /docs (#419)
Bumps [idna](https://github.com/kjd/idna) from 3.6 to 3.7.
- [Release notes](https://github.com/kjd/idna/releases)
- [Changelog](https://github.com/kjd/idna/blob/master/HISTORY.rst)
- [Commits](https://github.com/kjd/idna/compare/v3.6...v3.7)

---
updated-dependencies:
- dependency-name: idna
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-12 08:54:18 -06:00
Eric Wasylishen 02cf58fc87 tests: add test map for #417 2024-04-09 22:49:01 -06:00
Eric Wasylishen ee13179926 qbsp: LoadExternalMap: fix typo causing invalid read 2024-04-07 22:54:10 -06:00
Eric Wasylishen 4cd62ff157 qbsp: remove dead code from last commit 2024-04-07 22:25:57 -06:00
Eric Wasylishen c714ce597a qbsp: use mapfile.cc for .map file parsing
BP loading is broken by this commit, will need
to re-introduce loading the texture sizes in mapfile.
2024-04-07 22:20:33 -06:00
Eric Wasylishen 9985d6c8fd fix odr violations
not sure why these only started to be reported on this branch
2024-04-01 12:20:35 -06:00
Eric Wasylishen 28190f5065 light: warn rather than fatal error on invalid "delay" settings 2024-04-01 12:02:39 -06:00
Eric Wasylishen 21b3b696f3 light: enable RTC_SCENE_FLAG_ROBUST to fix q1_light_sun_artifact 2024-03-30 23:06:07 -06:00
Eric Wasylishen 75e062bbb4 tests: add test for RTC_SCENE_FLAG_ROBUST
tests for same issue as:
https://github.com/ericwa/ericw-tools/issues/269#issuecomment-2027921279
2024-03-30 22:57:38 -06:00
Eric Wasylishen 992b6f0064 light: fix "mangle" on _sun 1 entities
Fixes #266
2024-03-30 11:41:12 -06:00
Eric Wasylishen 1b289d3b26 lightpreview: show leaf contents in status bar 2024-03-24 21:18:37 -06:00
Eric Wasylishen 64826f414d docs: update changelog 2024-03-17 14:42:25 -06:00
Eric Wasylishen 3d68b12473 light: never write .lit/.lux in Q2 mode
fixes `-dirtdebug` broken in lightpreview
2024-03-16 15:07:18 -06:00
Eric Wasylishen 40e4c71407 lightpreview: show bspx lump sizes 2024-03-16 11:55:22 -06:00
Jonathan 71aa8aaeea
Paril/mem write (#412)
* simplify light_surfaces storage

* memory on writes

* Revert "batch together traces on the whole surface - saves a small amount of time"

This reverts commit 72611b7e97.

# Conflicts:
#	light/ltface.cc

* fix a use-after-move

* don't try to write lightmap if it has no styles

* fix issue with alignment
2024-03-13 20:01:05 -06:00
Eric Wasylishen b89bac4e8c common: split start of bspfile.hh into bspfile_common.hh
old layout was confusing CLion because bspfile.hh included
itself
2024-03-11 20:14:59 -06:00
Eric Wasylishen 275695a37c qbsp: remove -transsky flag which was broken
unknown what it was useful for
2024-03-09 22:07:55 -07:00
Eric Wasylishen aa3b8479b4 qbsp: shrink node_t from 280 to 208 bytes
- contentflags_t from 80 to 8 bytes
2024-03-09 19:37:23 -07:00
Jonathan 3d419853d3 store leaves on surf instead of surface light 2024-03-09 00:14:03 -05:00
Jonathan cb89691b54 Merge branch 'brushbsp' of https://github.com/ericwa/ericw-tools into brushbsp 2024-03-08 23:09:22 -05:00
Jonathan 6c1feb5af8 cut per-surface memory usage down by making streams re-usable per thread 2024-03-08 23:09:16 -05:00
Eric Wasylishen 3fba6a6564 tests: add test for current behaviour of unknown q2 content/surface flags 2024-03-08 21:03:53 -07:00
Jonathan 8c88704bdf revert anim change because it apparently causes infinite loops in kex 2024-03-08 14:37:53 -05:00
Jonathan ae2b46f115 oops i had commented this for testing 2024-03-08 14:13:32 -05:00
Jonathan 6157945d4d optimize Q2 brush info by using world-aligned defaults if they exist
optimize Q2 animations by using world-aligned defaults, since Q2 only needs the secondary texinfo for the texture
2024-03-05 11:11:20 -05:00
Eric Wasylishen ee075b5781 qbsp: shrink node_t from 328 to 280 bytes 2024-02-27 23:34:47 -07:00
Eric Wasylishen f3da00395d style: replace (void) with () 2024-02-26 21:07:22 -07:00
Eric Wasylishen f9b374c6f7 tests: allow color values to be off by 1/255 2024-02-26 00:09:44 -07:00
Eric Wasylishen 12b8066246 light: change remaining double -> float
tiny perf improvement on base1-test.map with light params:

-emissivequality high

before: 7.4s
after: 6.9s

no visible changes in base1.
2024-02-25 23:42:45 -07:00
Eric Wasylishen 1f02b50441 lightpreview: add "Camera Bookmarks" submenu 2024-02-25 23:35:50 -07:00
Eric Wasylishen 1e53d45a6c qbsp: fix comment 2024-02-25 15:54:58 -07:00
Eric Wasylishen 438da8093c lightpreview: stats panel: make read-only. use thousands separator. 2024-02-25 13:20:18 -07:00