Commit Graph

2450 Commits

Author SHA1 Message Date
Jonathan b824acb376 Reverse ordering of faces to match old code
Fix missing max(1) on leaf/cluster counts
2022-01-17 16:09:10 -05:00
Jonathan 63b8608799 Remove unused functions & tests
Fix test harness
2022-01-17 14:35:18 -05:00
Jonathan 53b4f640e2 use vector<brush_t> directly now 2022-01-17 11:06:13 -05:00
Jonathan 1a0b8c724a use vector of unique_ptrs for brushes; temporary, going to simplify it further 2022-01-17 10:42:24 -05:00
Jonathan 30c7ef94ac make brush::faces a vector 2022-01-17 09:49:10 -05:00
Jonathan 60070e27b2 Merge branch 'type-cleanup' of https://github.com/Paril/ericw-tools into type-cleanup 2022-01-17 09:16:27 -05:00
Eric Wasylishen 5e325867b6 vis: remove unused LeafFlow 2022-01-16 21:19:39 -07:00
Eric Wasylishen 549c1dbfcc vis: use ClusterFlow in all cases 2022-01-16 20:42:25 -07:00
Eric Wasylishen b681690807 qbsp: fix some memory leaks 2022-01-16 12:47:19 -07:00
Eric Wasylishen 67380cb330 ci: don't abort on LeakSanitizer errors 2022-01-16 12:45:53 -07:00
Eric Wasylishen 99c1070b5d gitignore: ignore .pts 2022-01-16 12:45:25 -07:00
Jonathan 10fa97e6b8 Use string_view where appropriate for parser, add some additional constructors for ease of use 2022-01-16 04:17:06 -05:00
Eric Wasylishen 4d1901534f common: fix gamedef_hl_t::get_default_palette() 2022-01-15 23:32:46 -07:00
Eric Wasylishen e6e232d43e qbsp: fix delete/delete[] mismatch 2022-01-15 23:26:59 -07:00
Eric Wasylishen 2ebcdc9fde qbsp: fix memory leak identified by LeakSanitizer 2022-01-15 23:01:55 -07:00
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