Eric Wasylishen
27c40b6255
tests: add q2_mist_aux_implicitly_detail.map test
2024-11-18 19:54:07 -07:00
Eric Wasylishen
178e04e0d5
bspfile: explain why AUX and MIST are forced to be detail
2024-11-17 23:01:56 -07:00
Eric Wasylishen
cdedc6220c
cleanup: remove some more const references to small objects
2024-11-17 22:08:44 -07:00
Eric Wasylishen
9f3927f1a7
cleanup: avoid unnecessary const int &
2024-11-17 21:58:40 -07:00
Eric Wasylishen
1337919805
cleanup: don't pass std::string_view by reference
...
by value is the same on MSVC, may be marginally better elsewhere
see:
https://quuxplusone.github.io/blog/2021/11/09/pass-string-view-by-value/
https://quuxplusone.github.io/blog/2021/11/19/string-view-by-value-ps/
2024-11-17 21:52:10 -07:00
Eric Wasylishen
9c016b0e3a
cleanup: don't pass float_type by reference
2024-11-17 21:40:41 -07:00
Eric Wasylishen
1c6c48426a
cleanup: don't pass float by reference (it's only 4 bytes)
2024-11-17 21:39:26 -07:00
Eric Wasylishen
4cffdc1cd2
cleanup: don't pass bool by reference
2024-11-17 21:37:17 -07:00
Eric Wasylishen
71933f2be1
cleanup: don't pass double by reference (it's only 8 bytes)
2024-11-17 21:34:54 -07:00
Eric Wasylishen
c755f47c03
cleanup: don't pass size_t by reference (it's only 8 bytes)
2024-11-17 21:26:27 -07:00
Eric Wasylishen
b8fdbe3d41
cleanup: don't pass contentflags_t by reference (it's only 8 bytes)
2024-11-17 21:23:09 -07:00
Eric Wasylishen
472077b8e1
common: add has_structural_solid() helper
2024-11-17 15:05:40 -07:00
Eric Wasylishen
49fe4dc33d
common: add gtest printing support to aabb type
2024-11-17 15:05:40 -07:00
Eric Wasylishen
3120d5b6ed
qbsp: fix test failure from last commit
2024-11-03 23:59:27 -07:00
Eric Wasylishen
3d7916e966
qbsp: fix -notex
2024-11-03 23:37:31 -07:00
Eric Wasylishen
14d8b5f6fc
common: fix bitflag_names
2024-10-31 19:05:23 -06:00
Eric Wasylishen
47faf6c0be
lightpreview: show area in status bar
2024-10-03 00:05:48 -06:00
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