Commit Graph

4248 Commits

Author SHA1 Message Date
Eric Wasylishen 3ec5ef462a lightpreview: fix invalid map access if .bsp has no lighting 2024-10-02 22:49:56 -06:00
Eric Wasylishen c5bc920b4a qbsp: fix bmodel bounds if clip brushes are used
Previously only a special case was handled (all clip).

Fixes #438
2024-10-01 23:13:51 -06:00
Eric Wasylishen b2f23f7642 build fix attempt 2024-09-18 23:33:13 -06:00
Eric Wasylishen 68a5b55af9 polylib: make winding printable for debugging/testing 2024-09-18 23:15:24 -06:00
Eric Wasylishen f5d105b34d qvec: allow gtest to print 2024-09-18 23:12:26 -06:00
Eric Wasylishen ed62ec1040 cleanup: remove unused game argument from contentflags_t::to_string() 2024-09-08 19:36:00 -06:00
Eric Wasylishen d532580aaf macos-12 -> macos-13 2024-09-07 13:12:56 -06:00
Eric Wasylishen 6a72c96fd4 fix mac compilation 2024-09-07 11:54:35 -06:00
Eric Wasylishen 6ff979e450 qbsp: redesign _chop and _chop_order
- add docs and tests
2024-09-07 11:36:04 -06:00
Jonathan 6c9b681b0f Merge branch 'brushbsp' of https://github.com/ericwa/ericw-tools into brushbsp 2024-08-26 06:12:09 -04:00
Jonathan 2b700f0514 allow non-fatal compiler errors
fix crash in whitespace trim
increase stack size
2024-08-26 06:12:05 -04:00
Eric Wasylishen 7389adfa38 tests: update test expectation for last commit 2024-08-05 17:12:05 -06:00
Eric Wasylishen 3f1659dd84 qbsp: only reuse edges once for software renderer compat
Issue reported by Izhido
2024-08-05 15:45:55 -06:00
Eric Wasylishen 0b2395dacd bsputil: fix --extract-entities and --extract-textures command line parsing
Fixes #435
2024-08-04 12:09:12 -06:00
Eric Wasylishen 2354209fea tests: rename test,cc > test_settings.cc 2024-08-04 11:46:27 -06:00
Eric Wasylishen 5b06cde21c tests: add a few more settings tests (parse remainder) 2024-08-04 11:43:33 -06:00
Eric Wasylishen a6ee0c6c4d bsputil: move settings to header 2024-08-04 10:45:12 -06:00
Eric Wasylishen adeb3e81aa light: fix _surflight_group 2024-07-25 22:45:18 -06:00
Eric Wasylishen e5f01ce0e3 light: add _switchableshadow_target
Switchable shadows setup which works in id1

Fixes #432
2024-07-20 23:11:26 -06:00
Eric Wasylishen 8ac82b7c79
Add Ubuntu 24.04 CI, Fix Embree 4 (#434)
* Add Ubuntu 24.04 to CI matrix.

* Fix embree4 bitrot.

* For Linux, only upload artifact from Ubuntu 22.04 for now

Should fix this error reported on ubuntu-22.04's CI

Error: Failed to CreateArtifact: Received non-retryable error: Failed request: (409) Conflict: an artifact with this name already exists on the workflow run

* Use system TBB and Embree 4 on ubuntu-24.04

* skip packaging of embree/TBB if using system provided packages

* For Linux, only upload artifact from Ubuntu 22.04 for now (fix)

* common: fix ASan error on non-null-terminated (16 char long) texture names

---------

Co-authored-by: Daniel Svensson <dsvensson@gmail.com>
2024-07-20 19:51:19 -06:00
Eric Wasylishen 5142116294 docs: update -maxedges docs 2024-07-06 13:53:55 -06:00
Eric Wasylishen 263dd5faa1 tests: check that we're not outputting >64 sided faces in Q1 mode 2024-07-05 21:54:33 -06:00
Eric Wasylishen 04604b18cd
tests: replace doctest with googletest (#431)
* tests: replace doctest with googletest

- googletest command-line output lists a nice summary of failed tests at the end, doctest's doesn't
- string test case names in doctest make IDE file structure view useless
- googletest has VS support
- doctest development stalled

other changes:
- get rid of doctest::skip(), all tests run now.
(was only applied to 3 tests: "winding", "mountain", "base1")

* check for test failure

* Revert "check for test failure"

This reverts commit a71d020c5a.

* fix test names to comply with gtest rules
2024-06-23 21:31:02 -06:00
Eric Wasylishen a093037ed3 common: fix roundtrip of Q2_CONTENTS_NO_WATERJUMP 2024-06-23 12:35:00 -06:00
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