Eric Wasylishen
c9071acbcd
bspinfo: fix build
2022-01-15 22:49:27 -07:00
Eric Wasylishen
4e94c7bab3
bspfile: fix UB reinterpret_cast causing ASan to complain on macOS
2022-01-15 22:40:03 -07:00
Eric Wasylishen
07e7179c74
fix build
2022-01-15 18:51:33 -07:00
Eric Wasylishen
f02bbca0c7
parser: fix reading past end of buffer
2022-01-15 18:31:35 -07:00
Eric Wasylishen
8d31f12c8b
ci: try to fix ubuntu CI failing to find groff package
2022-01-15 18:19:52 -07:00
Eric Wasylishen
d5c7ee6ca6
ci: run with ASan
2022-01-15 18:05:32 -07:00
Eric Wasylishen
ec3f24893d
automated_tests.sh: fix bash weirdness
2022-01-15 16:11:40 -07:00
Eric Wasylishen
978b882381
automated_tests.sh: debugging test failure on appveyor
2022-01-15 15:30:11 -07:00
Eric Wasylishen
0dd7a73cc1
qbsp: flip brush clipping order to match original qbsp
...
Patch from Paril
2022-01-15 14:35:02 -07:00
Jonathan
3d9277b711
Merge branch 'type-cleanup' of https://github.com/Paril/ericw-tools into type-cleanup
2021-12-20 14:51:20 -05:00
Jonathan
e2d64e0e5d
FS simplification
...
Fix transparency calculation (33% is 33% opacity, not 33% transparency)
2021-12-20 14:51:14 -05:00
Eric Wasylishen
5c7a490fea
qv::PolyArea: return 0 for degenerate polygons
2021-12-15 23:12:48 -07:00
Eric Wasylishen
d0ea010acb
bspfile.cc: fix handling of bsp format conversion
...
needs to return false so WriteBSPFile can upgrade to an extended limits format
2021-12-15 22:48:44 -07:00
Eric Wasylishen
d6a17d022c
qbsp: CreateBrushFaces: fix accessing empty winding in `w->clip(...)` expression
2021-12-15 22:43:21 -07:00
Eric Wasylishen
2c7c879034
build: restore setting 8MB stack on Windows
...
fixes stack overflow in qbsp on a large test map
2021-12-15 22:33:55 -07:00
Eric Wasylishen
98d2e8daed
bspinfo: fix .bmp palette writing
2021-12-13 20:08:19 -07:00
Eric Wasylishen
eceb031daa
fs.cc: add missing <unordered_map> include
2021-12-13 19:52:48 -07:00
Eric Wasylishen
0d1c342bca
fs.cc: don't attempt to use reference lifetime extension on std::shared_ptr
...
clang/gcc are erroring on this line
2021-12-13 19:51:01 -07:00
Eric Wasylishen
e7d37df636
fs.cc: add missing <list> include
2021-12-13 19:37:23 -07:00
Eric Wasylishen
a33d2d342d
fs.cc: std::exception doesn't have a string constructor
2021-12-13 19:34:34 -07:00
Eric Wasylishen
28b857cc2e
Merge branch 'master' into pr/322
2021-12-11 13:47:12 -07:00
Eric Wasylishen
6e96ae7cc2
light/CMakeLists.txt: make it non-fatal if the embree license isn't found
2021-12-11 13:25:09 -07:00
Jonathan
0c827208ec
Allow `-subdivide 0` to turn off subdivision
...
imglib now lives in common
fs 'load' split into two functions, where and load. the former allows you to query for and return archive & path for a given file, whereas the latter handles that for you.
use log verbose in light rather than own verbose flag
2021-11-21 15:08:02 -05:00
Jonathan
8cadf06d81
New FS!
...
First FS test: use it for decompile for Q2 to prevent unnecessary suffixes
2021-11-05 19:25:37 -04:00
Jonathan
5e4454e832
Don't do texture detection on Q2 since brushsides hold textures
2021-11-02 23:13:14 -04:00
Eric Wasylishen
8174fabdc6
decompile.cpp: Q2: clip the polyhedrons and output winding vertices
2021-11-02 20:02:20 -06:00
Jonathan
88a4cf0b37
Fix texture offset for origin brushes
2021-10-31 22:27:36 -04:00
Jonathan
1da176c2b7
Merge branch 'type-cleanup' of https://github.com/Paril/ericw-tools into type-cleanup
...
# Conflicts:
# bsputil/decompile.cpp
# include/common/polylib.hh
2021-10-31 19:31:19 -04:00
Jonathan
1a1b4bdfb1
Re-ordered code to be easier to follow and write out all at once rather than doing it per-step
2021-10-31 19:28:52 -04:00
Eric Wasylishen
d766ceb77d
decompile.cpp: don't do SplitDifferentTexturedPartsOfBrush on Q2
2021-10-31 17:16:16 -06:00
Eric Wasylishen
d5497a675d
polylib.hh: remove verts >= 3 assertion in from_face
2021-10-31 17:12:03 -06:00
Eric Wasylishen
8838cf093b
decompile: support --decompile-geomonly for Q2
2021-10-31 16:33:40 -06:00
Jonathan
ea58a6b289
Merge branch 'type-cleanup' of https://github.com/Paril/ericw-tools into type-cleanup
2021-10-29 19:49:35 -04:00
Eric Wasylishen
69943865e7
decompile: fix not finding faces (Q2). Unsure of exact location of the previous bug.
2021-10-29 17:49:06 -06:00
Jonathan
ceee1a8ecf
support for origin brushes
2021-10-29 19:42:29 -04:00
Jonathan
a6945e4e1b
Merge branch 'type-cleanup' of https://github.com/Paril/ericw-tools into type-cleanup
2021-10-29 18:50:28 -04:00
Jonathan
4759c649f4
Q2 decompile
2021-10-29 18:50:18 -04:00
Eric Wasylishen
a937e3cdba
qbsp: areaportal support
2021-10-27 22:51:43 -06:00
Jonathan
0e361f9323
Support for Q2BSP decompilation
...
- there's still a couple failure cases - specifically base1 in the outdoor area has a side that wasn't able to match to a face
- the clip brush at the start of base1 gets cut into a bunch of pieces because of the whole "check for texinfo, compare and split into multiple pieces" thing, but I'm pretty sure it's just one single brush - we need to ignore the splitting thing on clip brushes since they don't care about texture
- triggers don't pull in a temp texture
- origin brushes?
2021-10-27 17:56:56 -04:00
Jonathan
c37ec80667
Implement game-agnostic Brush_GetContents
2021-10-26 09:13:48 -04:00
Eric Wasylishen
6856789eef
bspfile.cc: move "can't see through solid" to the top of portal_can_see_through
...
fixes LoadPortals: out of bounds leaf in portal 68 issue
2021-10-25 20:24:21 -06:00
Jonathan
2bdfdc90cc
Fix disjoint
2021-10-25 19:39:18 -04:00
Jonathan
3f27b11bf9
Fix qv::min/qv::max
2021-10-25 19:37:18 -04:00
Jonathan
1ccbe9e12c
wrbrushes lump using streaming now
...
temp(?) fix for structural covered by detail
2021-10-25 19:24:07 -04:00
Jonathan
550cacef3f
Clean warnings
2021-10-25 13:46:04 -04:00
Jonathan
e401136b4d
Merge branch 'type-cleanup' of https://github.com/Paril/ericw-tools into type-cleanup
2021-10-25 10:38:32 -04:00
Jonathan
e0ed70cc87
no more Vector!
2021-10-25 10:38:15 -04:00
Jonathan
e1695ebfd3
VectorAdd & simplify TexDef_BSPToBrushPrimitives (needs testing)
2021-10-25 08:39:29 -04:00
Eric Wasylishen
d2837eb58c
bspfile: contents_are_[empty/solid/sky/liquid]: return false if an extended content type
2021-10-25 01:11:09 -06:00
Eric Wasylishen
02d3284045
bspfile: get rid of default implementations of contents_are_empty/solid/sky
2021-10-25 00:05:11 -06:00