Eric Wasylishen
ebe157cb43
cleanup: get_hull_sizes(): use std::span instead of std::initializer_list
2025-02-04 19:55:39 -07:00
Eric Wasylishen
429921868a
common: surfflags_t: convert is_nodraw to function that checks for Q2_SURF_NODRAW
2025-02-01 15:53:37 -07:00
Eric Wasylishen
6f1b4252d2
common: split surfflags_t::native into native_q1 and native_q2
2025-02-01 14:47:50 -07:00
Justin
2bbcaed34b
have notriggermodels output mins/maxs for hull 0 ( #446 )
2025-01-31 19:01:54 -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
9f4cfb0c3d
cleanup: code formatting pass
2024-11-18 21:25:27 -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
3d7916e966
qbsp: fix -notex
2024-11-03 23:37:31 -07:00
Eric Wasylishen
ed62ec1040
cleanup: remove unused game argument from contentflags_t::to_string()
2024-09-08 19:36:00 -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
2b700f0514
allow non-fatal compiler errors
...
fix crash in whitespace trim
increase stack size
2024-08-26 06:12:05 -04:00
Jonathan
0f844ad3e2
don't output debug stuff if we don't need it
2024-05-29 07:12:56 -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
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
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
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
aa970c0d18
qbsp: only pick up .wad textures when compiling for non-Q2 games
...
fixes #404
2024-02-04 19:41:45 -07:00
Eric Wasylishen
d512abd27d
qbsp: merge across liquids by default in q1
...
- change option name to -nomergeacrossliquids
- add docs
- allow using it in q2 as well (requested by jitspoe)
2024-01-25 23:04:31 -07:00
Eric Wasylishen
0aeb0acd94
qbsp: adjust tjunc logic
2024-01-24 00:22:27 -07:00
Eric Wasylishen
6351cc50e6
rename: vec_t -> double
2023-12-23 21:09:16 -07:00
Eric Wasylishen
f0c8d92993
qbsp: add -missing_textures_as_zero_size flag to allow writing 0x0 textures when a texture is missing
...
this allows us to write the texture name, but it's non-standard.
light: warn when a surface light template doesn't match any faces in the bsp
2023-12-21 00:05:40 -07:00
Eric Wasylishen
3eb5cb7c64
qbsp: omit func_detail_illusionary from bspx brushlist
...
also func_illusionary_visblocker
fixes #371
qbsp: fix bspx brushes
2023-11-26 01:17:03 -07:00
Eric Wasylishen
b58b976693
tests: add qbsp content type tests
2023-11-26 00:23:41 -07:00
Eric Wasylishen
ad9fd7fc59
common: structured bspxbrushes reading/writing
2023-11-25 17:28:26 -07:00
Eric Wasylishen
8888506821
qbsp: fix -notex option
2023-11-09 23:57:07 -07:00
Jonathan
3dde7a60d9
display full absolute paths of input and output
2023-07-22 23:04:31 -04: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
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
Random
2637a5fb65
-notex should now work ( #365 )
2023-07-08 15:55:34 -06: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
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
Jonathan
be8ae00fa6
fix so that the brush list has no dupes and is sequential again
2023-06-21 07:48:57 -04:00
Jonathan
2b22e35669
make sure world brush entities are in BSPX wrbrushes
2023-06-20 19:36:05 -04:00
Eric Wasylishen
731bafd9fe
qbsp: fix edge reuse causing software renderer artifacts with liquids
...
fixes q1_liquid_software.map in tyrquake
thanks to Mankrip for reporting this
2023-05-28 16:28:33 -06:00
Eric Wasylishen
d9e16a943a
qbsp: add -noextendedsurfflags flag to suppress .texinfo writing (for testing/debugging)
2023-05-07 23:56:30 -06:00
Eric Wasylishen
5d142e4ab2
qbsp: remove -contenthack (dead code)
2023-05-01 22:38:00 -06:00
Eric Wasylishen
537bc3686d
qbsp: experimental -scale flag for applying uniform scale to map
2023-04-25 18:41:21 -06:00
Eric Wasylishen
50d97321d7
qbsp: add -bmodelcontents flag
2023-04-22 19:15:55 -06:00
Eric Wasylishen
ed756bd602
common: add support for writing .rst documentation from settings
2023-04-16 14:55:43 -06:00
Eric Wasylishen
e069d7b9b8
style: update settings api to follow current coding style
2023-04-16 11:55:38 -06:00