Justin
bfffde23e6
have notriggermodels output mins/maxs for hull 0
2025-01-30 19:38:16 -08:00
Eric Wasylishen
fc003c64cd
cleanup: use more default comparison
2025-01-28 21:56:49 -07:00
Eric Wasylishen
21a665110c
imglib: error if trying to use a palette but none is loaded
2025-01-28 21:43:03 -07:00
Eric Wasylishen
c06dbb0693
tests: add a texture case sensitivity test
2025-01-28 21:42:13 -07:00
Eric Wasylishen
5a94c671a2
tests: fix broken test after img::clear() change
2025-01-24 20:34:51 -07:00
Eric Wasylishen
41ac385840
docs: note that dmodel::origin is apparently unused
2025-01-23 23:49:09 -07:00
Eric Wasylishen
b66e771056
readme updates
2025-01-23 23:47:48 -07:00
Eric Wasylishen
887ba83151
tests: clear fs, imglib between tests
2025-01-23 23:47:32 -07:00
Eric Wasylishen
de1e130e4f
tests: better documentation and test for areaportals
2025-01-20 00:16:56 -07:00
Eric Wasylishen
b1ee327092
refactor: replace EXPECT_VECTORS_UNOREDERED_EQUAL with gtest matchers
2025-01-19 23:18:28 -07:00
Eric Wasylishen
a6c7a18cb8
ci: update to macos-14
...
this should give us xcode 16, with better c++20 support (e.g. 3-way comparison on std::optional)
2025-01-01 19:15:50 -07:00
Eric Wasylishen
4c1d4af2ed
cleanup: use spaceship operator where possible
2025-01-01 16:57:21 -07:00
Eric Wasylishen
bbe39c7c82
bspfile: make conversion operators/constructors explicit
2024-12-27 17:07:39 -07:00
Eric Wasylishen
ca26b0e669
style: use twosided<T> instead of std::array<T,2>
2024-12-25 20:03:51 -07:00
Eric Wasylishen
bbd5bc7ff8
qbsp: replace old .prt writing code with WritePortalfile
2024-12-15 22:34:40 -07:00
Eric Wasylishen
2b99fa3a62
common/prtfile: add WritePortalfile (unused currently)
2024-12-14 23:33:13 -07:00
L-P
d0788ac01f
Add _hulls property to allow a bmodel to set for which hulls it should have clipnodes ( #442 )
...
* Add _hulls bmodel property
Whitelist hulls for which to generate clipnodes.
* Fix _hulls when hull 0 is omitted
Add test
---------
Co-authored-by: Eric Wasylishen <ewasylishen@gmail.com>
2024-12-09 00:06:26 -07:00
Eric Wasylishen
0f1a7186d6
qbsp: never merge across liquids, deprecate -nomergeacrossliquids
...
we've had complaints from both Q1 and Q2 users with water caustics
leaking out from underwater. This was an attempt to save a few faces,
seems it's not worth the trouble.
2024-12-07 19:47:16 -07:00
Eric Wasylishen
dabae0143f
tests: EXPECT_EQ -> ASSERT_EQ
2024-12-07 14:19:27 -07:00
Eric Wasylishen
a17764a88f
lightpreview: add "view -> move camera to" menu item
2024-11-30 21:34:03 -07:00
Eric Wasylishen
d7eca5f317
cmdlib: fix broken Q_strcasecmp and Q_strncasecmp
...
string_view isn't null terminated, can't use C string functions
2024-11-29 00:15:54 -07:00
Eric Wasylishen
638076ffb2
bspinfo: fix not clearing between styles
...
from @Paril
2024-11-24 21:15:32 -07:00
Eric Wasylishen
dfa164ffce
qbsp: more func_illusionary_visblocker fixes..
...
fix illusionary_visblocker covered by func_detail_illusionary
2024-11-23 23:02:26 -07:00
Eric Wasylishen
a0953767a2
qbsp: more func_illusionary_visblocker fixes
...
See #441
- fix visblocker merging with detail_illusionary, by introducing a new content type
- fix _mirrorinside 0 not working on visblocker
2024-11-23 22:21:51 -07:00
Eric Wasylishen
4e11e3ebe1
qbsp: remove treating __TB_empty as skip
2024-11-23 10:39:30 -07:00
Eric Wasylishen
9d6ce6d83c
qbsp: fix func_illusionary_visblocker behaviour
...
- support liquid brushes (they are converted to mist - so empty contents for Q1)
- force _mirrorinside 1
Fixes #441
2024-11-20 20:19:34 -07:00
Eric Wasylishen
9f4cfb0c3d
cleanup: code formatting pass
2024-11-18 21:25:27 -07:00
Eric Wasylishen
8038b730e1
qbsp: fix func_illusionary_visblocker
...
Fixes #440
2024-11-18 21:19:41 -07:00
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