Eric Wasylishen
0d9275fc53
light: do the phong area/angle weighting by looking at the whole polygon
...
without triangulating it. Fixes output on polygons with welded t-junctions
(colinear vertices) which would previously generate 0-area triangles
and have a weight of 0 in the normal smoothing.
2021-10-22 01:27:28 -06:00
Eric Wasylishen
b68b370147
bspfile: replace 'abstract' with '= 0' (abstract seems to be a C++/CLI keyword?)
2021-10-11 23:22:19 -06:00
Eric Wasylishen
15930bb573
testmaps: update e1m1 hashes to account for outside filling change
2021-10-11 23:18:24 -06:00
Eric Wasylishen
ebd3d4e5c2
testmaps: add qbsp_sealing_point_entity_on_outside.map
2021-10-11 22:50:32 -06:00
Eric Wasylishen
c88274f806
qbsp: outside.cc: rewrite with outside -> in filling
2021-10-11 22:40:26 -06:00
Jonathan
6ec134a1f0
Merge branch 'type-cleanup' of https://github.com/Paril/ericw-tools into type-cleanup
2021-10-11 19:46:04 -04:00
Jonathan
bd6bc0dc56
surfflags remap -> is_valid to match contentflags
...
warn on excessive key/value lengths, per-game
2021-10-11 19:45:55 -04:00
Eric Wasylishen
134c286b5e
qbsp: fix spurious leak in base1.map
2021-10-11 13:48:17 -06:00
Eric Wasylishen
a60581c99a
qvec: fix undefined behaviour in PolyCentroid
2021-10-11 12:59:37 -06:00
Eric Wasylishen
fe99d69d07
qvec: implement Google Test formatter
2021-10-11 12:55:06 -06:00
Eric Wasylishen
feb57abbe2
qvec.hh: build fix
...
qvec3f is defined lower in the file
2021-10-11 12:19:39 -06:00
Eric Wasylishen
41d125c32e
qbsp: add _omitbrushes to tell qbsp to discard all brushes in a func_
2021-10-10 12:25:47 -06:00
Jonathan
e2ba8d7b5a
fNoclip not required for Q2 any more
2021-10-10 14:12:02 -04:00
Jonathan
bd59be4d5d
Merge branch 'type-cleanup' of https://github.com/Paril/ericw-tools into type-cleanup
2021-10-10 14:04:16 -04:00
Jonathan
01b8abf93c
Removed a lot of unused functions
...
Moved vector-related operations from mathlib to qvec, moved a few into qv::
Use clamp/max/min directly instead of #define'ing them
Move a few single-use functions directly above their usages
2021-10-10 14:04:09 -04:00
Eric Wasylishen
ed1982b782
testmaps: update expected .json output to account for nexttexinfo change
2021-10-09 13:06:16 -06:00
Jonathan
a8d5125321
Merge branch 'type-cleanup' of https://github.com/Paril/ericw-tools into type-cleanup
2021-10-09 14:14:54 -04:00
Jonathan
eb4bcf96dc
-includeskip for Q2RTX
...
Fix missing fmt include
Default nexttexinfo to -1 to match other tools
Fmt support for bspversion_t, use that instead of a static function
Cleanup write functions
2021-10-09 14:14:49 -04:00
Eric Wasylishen
f0f7722909
light: fix build
2021-10-09 11:48:18 -06:00
Eric Wasylishen
9dcef7839a
common: remove dead code (mesh_t, octree)
2021-10-09 11:40:35 -06:00
Eric Wasylishen
4accc4d56b
light: remove incorrect assertion face->lightofs != -1
...
This can happen for Q1 with a solid black face
2021-10-09 00:13:23 -06:00
Eric Wasylishen
ed527217c6
vis: fix writing leaf.visofs for Q1 cluster vis
2021-10-08 23:52:46 -06:00
Eric Wasylishen
056e9442fd
bspinfo, bspfile: fixes for handling of \0 terminator on entdata
2021-10-08 23:03:05 -06:00
Eric Wasylishen
f3f07d9e06
bspfile: fix reading/writing of entdata adding extra null terminators
2021-10-08 22:45:55 -06:00
Eric Wasylishen
bf8f00df01
build: don't compile qbsp + light twice
2021-10-08 20:30:18 -06:00
Eric Wasylishen
34b6462641
build: build common as a static library
2021-10-08 20:08:26 -06:00
Eric Wasylishen
560be82885
build: remove more unsupported mingw stuff
2021-10-08 19:59:20 -06:00
Eric Wasylishen
e8b943cf90
build: remove DOUBLEVEC_T (unused now)
2021-10-08 19:47:32 -06:00
Eric Wasylishen
4c17969651
build: remove mingw workaround (unsupported)
2021-10-08 19:46:48 -06:00
Eric Wasylishen
76d0dae890
mathlib: GLM_InterpolateNormal: quick hack to fix build of testlight
2021-10-08 19:31:06 -06:00
Eric Wasylishen
100d364edf
Merge remote-tracking branch 'origin/master' into pr/322
2021-10-08 19:04:48 -06:00
Eric Wasylishen
5cf82ee023
qbsp: restore use of options.worldExtent
...
should fix minor precision differences in .prt files
2021-10-08 19:04:11 -06:00
Eric Wasylishen
f0e3d32ffc
testmaps: ignore space change in json diff
2021-10-08 17:19:22 -06:00
Eric Wasylishen
b855bbd0f2
testmaps: Add qbsp_angled_brush.map
2021-10-08 17:18:17 -06:00
Jonathan
1b1679fa22
normals are now a special tuple-ish type, so that we can calculate tangents and bitangents for Q2RTX if requested (currently it always does it, but we can fix that later)
...
always emit texinfo for q2 brush sides
2021-10-08 14:17:48 -04:00
Eric Wasylishen
33a454c700
Merge remote-tracking branch 'origin/master' into pr/322
2021-10-08 00:58:25 -06:00
Eric Wasylishen
3df3891563
bspfile: fix hexen2 hull sizes
2021-10-08 00:56:11 -06:00
Eric Wasylishen
cfee292e5f
qbsp: use fmt to print portals
2021-10-08 00:44:34 -06:00
Eric Wasylishen
afcf84ba1c
Merge remote-tracking branch 'origin/master' into pr/322
2021-10-07 23:56:03 -06:00
Eric Wasylishen
9610841dd7
qbsp: use fmt to print "origin" keys for rotators
2021-10-07 23:52:30 -06:00
Eric Wasylishen
447b9e0492
Merge remote-tracking branch 'origin/master' into pr/322
2021-10-07 23:40:57 -06:00
Eric Wasylishen
eeededb619
vis: don't crash on vising 1 leaf maps
2021-10-07 23:34:05 -06:00
Eric Wasylishen
3296761693
threads: fix calling convention error (affecting my win32 VS build)
2021-10-07 23:34:05 -06:00
Eric Wasylishen
a894bbd5de
testmaps: add origin brush test
2021-10-07 23:33:59 -06:00
Eric Wasylishen
e3f6dc9be0
Merge remote-tracking branch 'origin/master' into pr/322
2021-10-07 20:09:18 -06:00
Eric Wasylishen
532b35c5bf
qbsp: insert new epairs at the end of an entity
2021-10-07 20:06:20 -06:00
Eric Wasylishen
d40e79ae29
mathlib: revert Q_rint to match master
...
The one on master returns 0 ==Q_rint(-0)
whereas the std::rint returns -0 == Q_rint(-0)
2021-10-07 19:08:34 -06:00
Eric Wasylishen
3d8d803674
testmaps: ignore space change in json diff
2021-10-07 00:38:06 -06:00
Eric Wasylishen
dddfc11dde
Merge remote-tracking branch 'origin/master' into pr/322
2021-10-07 00:32:14 -06:00
Eric Wasylishen
681a916348
qbsp: wad.cc: zero out data after \0 in dmiptex_t.name
...
This is just for consistency with the cleanup branch which is also doing this
2021-10-07 00:31:11 -06:00