Jonathan
e2d64e0e5d
FS simplification
...
Fix transparency calculation (33% is 33% opacity, not 33% transparency)
2021-12-20 14:51:14 -05: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
Eric Wasylishen
38e27a38ec
testmaps: add q2 detail/playerclip testmaps
2021-10-24 23:23:05 -06:00
Jonathan
a5f8ecd471
VectorSubtract
2021-10-24 23:26:20 -04:00
Jonathan
3533e04fac
Merge branch 'type-cleanup' of https://github.com/Paril/ericw-tools into type-cleanup
2021-10-24 23:18:20 -04:00
Jonathan
f4c1d3d863
use TexSpaceToWorld since it seems to generate the same results anyways
2021-10-24 23:18:03 -04:00
Eric Wasylishen
f56d6113b6
testmaps: regenerate hashes to account for 0 vs -0 change
2021-10-24 16:24:20 -06:00
Eric Wasylishen
71c5501ef0
qvec: revert plane3::operator- change.
...
not worth trying to maintain all of the inconsistent special cases of the old code.
2021-10-24 16:20:52 -06:00
Eric Wasylishen
e80718981d
update gitignore to ignore .texinfo.json
2021-10-24 16:18:02 -06:00
Jonathan
90276d76dd
Merge branch 'type-cleanup' of https://github.com/Paril/ericw-tools into type-cleanup
2021-10-24 17:45:35 -04:00
Jonathan
e1771daf58
More-correct tangent calculation maybe
2021-10-24 17:45:28 -04:00
Jonathan
38a4f66bef
Move this to header since we may need it soon
2021-10-24 17:11:35 -04:00
Eric Wasylishen
0a827d56c6
testmaps: update reference .json to have embedded texture data
2021-10-24 14:56:43 -06:00
Eric Wasylishen
72b39bc576
qplane3::operator-: implement "inverting" the normal as 0 - normal
...
to avoid introducing -0, for consistency with the old code, which tended to flip normals this way.
2021-10-24 14:47:02 -06:00
Jonathan
11c3511605
new normal calculation cherry-picked from branch
...
Fix entdata not having its '\0'
don't write unnecessary extended texinfo
2021-10-24 15:21:26 -04:00
Jonathan
3456f62a90
Smaller equalExact (probably should just get rid of this tbh)
...
Fix for ClosestPointOnLine
2021-10-24 14:20:24 -04:00
Jonathan
bfc854efcb
base64 bmp images for texture debug
...
Fix qv::length
2021-10-24 13:55:27 -04:00
Jonathan
d0e557b9cb
Fix BSPX on q2bsp
...
Fix normalize generating NaNs to match old behavior of generating zero on zero length
Remove extended texinfo file before potentially not writing new one
2021-10-24 06:56:31 -04:00
Jonathan
5f40d5a7ae
Fix segfault
2021-10-24 05:09:47 -04:00
Jonathan
3c2ca93b0c
normalizeInPlace no longer nodiscard since you might want to only normalize the ref
...
remove VectorNormalize
2021-10-23 13:34:12 -04:00
Jonathan
fae69309a0
VectorLength
2021-10-23 13:24:25 -04:00
Jonathan
7c661a3759
distance-squared
2021-10-23 13:22:32 -04:00
Jonathan
865fbb0745
VectorMA
2021-10-23 13:20:43 -04:00