Commit Graph

740 Commits

Author SHA1 Message Date
Eric Wasylishen b0777c2075 suppress compile warnings 2016-02-15 16:20:29 -07:00
Eric Wasylishen b2687481d6 WriteLightmaps: revert to how I was getting the sample points 2016-02-15 16:20:29 -07:00
Eric Wasylishen 7128a8e956 code formatting, normalize most whitespace to 4 spaces 2016-02-15 16:20:29 -07:00
Eric Wasylishen 1da64c0db4 Fix bspx lump padding logic 2016-02-15 16:20:29 -07:00
Eric Wasylishen 1f05b7976a fix wrong FindTexinfo call
fix Lightmap_ForStyle call
change M_PI to Q_PI
switch to Q_strncasecmp
2016-02-15 16:18:51 -07:00
Eric Wasylishen 1630b8756e tyrutils-ericw-spike rebased on to 998c9d3acb 2016-02-15 16:16:37 -07:00
Eric Wasylishen 9496991e60 LightFace_Min: allow delay 4 lights to use lightstyles 2016-02-14 20:45:56 -07:00
Eric Wasylishen 651e7ca827 CalcPoints: if NearWall() fails, first try fudging by 0.25 units in each direction 2016-02-11 23:30:21 -07:00
Eric Wasylishen a439f891a1 CalcPoints: Skip the trace if a PointContents says the point is already unobstructed.
Handles beveled walkways in telefragged.bsp which touch a wall along one edge, but don't split the wall.
Previously, the walkways were blocking most of the traces for the wall, messing up all of the wall sample points.
2016-02-11 22:38:23 -07:00
Eric Wasylishen 998c9d3acb qbsp: add hint to use -bsp2 to fix "Too many vertices" error. 2015-12-16 12:27:57 -07:00
Eric Wasylishen 8ef446de6d update changelog 2015-12-10 16:11:26 -07:00
Eric Wasylishen ab268ab9ba qbsp: CheckFace: print position of non-convex face 2015-12-10 15:58:40 -07:00
Eric Wasylishen 5996064686 Update changelog, readme, manuals 2015-12-10 15:41:17 -07:00
Eric Wasylishen 7a5c7bbf6b light: cleanup _sunlight3 code, support _sunlight3 without _sunlight2 properly 2015-12-10 14:58:49 -07:00
Eric Wasylishen 59beb66544 build: cmake: define LINUX on systems consiered "UNIX" by cmake (LINUX define should be renamed to UNIX or something) 2015-12-10 14:54:55 -07:00
Eric Wasylishen 99d5a4d4f9 build: setup CPack to package binaries in a zip file 2015-12-09 16:23:36 -08:00
Eric Wasylishen b823032ee8 build: set TYRUTILS_VERSION when building with cmake 2015-12-09 16:00:47 -08:00
Eric Wasylishen dd440699fc qbsp: remove 128 character limit on key+value line 2015-12-08 23:25:53 -07:00
Eric Wasylishen 0a165f9dcd build: static link the CRT for cmake+msvc build 2015-12-07 15:52:45 -08:00
Eric Wasylishen 063786bf02 build: fix spurious errors in VS2015 IDE 2015-12-07 14:37:46 -08:00
Eric Wasylishen 3f745a7225 build: cmake: add mingw64 hack 2015-12-07 15:20:10 -07:00
Eric Wasylishen 420125cc67 replace tabs with spaces.
for FILE in $(find . -name "*.h" -or -name "*.c"); do cat $FILE | expand > temp; cat temp > $FILE; done
2015-12-07 15:08:48 -07:00
Eric Wasylishen 0ec1c96a06 build: fix warning 2015-12-07 14:40:44 -07:00
Eric Wasylishen c149ed2bf6 build: VS2015 support 2015-12-07 14:23:13 -07:00
Eric Wasylishen fe65004f17 light: test out _sunlight3 2015-12-05 21:40:15 -07:00
Eric Wasylishen e6fcf3d6da light: add -surflight_dump option to export generated surface lights to a map file 2015-12-05 20:27:51 -07:00
Eric Wasylishen 81cefad71a light: handle surface lights on rotators 2015-12-05 20:07:20 -07:00
Eric Wasylishen 5face9dd51 qbsp: round texture vector values that are within ZERO_EPSILON of integers,
to attempt to attempt to work around corrupted lightmap sizes in DarkPlaces
(it uses 32 bit precision in CalcSurfaceExtents)
2015-12-04 15:49:23 -08:00
Eric Wasylishen 50b556993a light: experimental -parse_escape_sequences option to toggle \b escape sequence (toggles bold text) 2015-11-26 18:30:10 -07:00
Eric Wasylishen fee62faa24 qbsp: Print coordinates in "CheckFace: too few points" error 2015-11-20 17:15:59 -07:00
Eric Wasylishen f154a00e3a light: fix "_mincolor" bmodel key which was only accepting 0-255
now accepts 0-1 or 0-255.
2015-11-20 14:27:25 -08:00
Eric Wasylishen b3472d89e7 light: fix antilights which were broken with the light culling change 2015-11-07 11:58:07 -07:00
Eric Wasylishen 12132795cb build: fix invocation of 'lipo' in Makefile 2015-10-26 20:18:55 +00:00
Eric Wasylishen f17d835532 changelog: update again 2015-10-26 14:06:13 -06:00
Eric Wasylishen a5a2de6c6f qbsp: add coordinates to "New portal was clipped away" warning, from txqbsp-xt 2015-10-26 13:42:42 -06:00
Eric Wasylishen cf4adf1d59 changelog: update 2015-10-26 12:44:21 -06:00
Eric Wasylishen 8e18933f5d light: silence "no model has face" warning 2015-10-25 23:41:19 -06:00
Eric Wasylishen d0fb0bd410 light: remove entity->fadedist, it was error-prone, and instead just check light level. it's only very slightly slower. 2015-10-25 23:18:17 -06:00
Eric Wasylishen 7f1beca6b4 light: add "_surface_spotlight" key for making surface lights into spotlights based on the surface normal 2015-10-25 22:35:29 -06:00
Eric Wasylishen 1e9a0ac2b3 light: add "-sunsamples" flag to control number of samples for _sunlight_penumbra and _sunlight2 2015-10-23 19:54:41 -06:00
Eric Wasylishen 69fab3fc96 light: clean up SetupSkyDome 2015-10-23 18:31:39 -06:00
Eric Wasylishen fddb87287a qbsp: DividePlane: always use bugfix from 7e7d851 regardless of maxNodeSize setting 2015-10-23 17:22:05 -06:00
Eric Wasylishen c0d61d4147 light: cull light bounding sphere against surface bounding sphere before checking each surface point. gives a modest speedup. 2015-10-23 15:10:35 -06:00
Eric Wasylishen 244243b121 light: fix "-gate" (was calculating too-large bounding spheres for delay 2 lights.) 2015-10-23 01:36:16 -06:00
Eric Wasylishen 3f03b6dfd5 vis: fix "average leafs visible" message after last change 2015-10-20 15:25:44 -06:00
Eric Wasylishen 545ba66ebc vis: Reuse each cluster's visdata for all leafs in the cluster 2015-10-20 02:26:35 -06:00
Eric Wasylishen 792a7eae6e vis: raise MAX_MAP_VISIBILITY to 128MB 2015-10-19 23:48:19 -06:00
Eric Wasylishen 0bc85020d2 qbsp: ChooseMidPlaneFromList: mark detail separators on the final SolidBSP pass. 2015-10-19 20:19:25 -06:00
Eric Wasylishen 44e1eccca6 qbsp: change detail handling, from qbsp-xt.
MidSplit now does two passes (structural/detail), like ChoosePlaneFromList.
Now, the first pass will pick among planes that have at least one structural face, and zero or more detail faces.
The second pass will pick among planes that have no structural faces, and zero or more detail faces.

This fixes the hull 1 leak in telefragged.map introduced when I added txqbsp's maxNodeSize feature,
and also reduces the cluster and portal count in jam6_ericwtronyn.map a bit.
2015-10-18 14:28:36 -06:00
Eric Wasylishen ddfa2c7ad5 merge: don't merge detail and non-detail 2015-10-18 00:21:09 -06:00