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
Eric Wasylishen
a596187841
hexen2 support: fix "qbsp -onlyents" which broke with the hexen2 patch
2015-10-17 01:38:24 -06:00
Eric Wasylishen
a3b985e721
hexen2 support, patch from Spike
2015-10-16 21:18:53 -06:00
Eric Wasylishen
a75de817b1
qbsp: add -epsilon option to set ON_EPSILON, from txqbsp-xt
2015-09-27 00:53:55 -06:00
Eric Wasylishen
d4d63efd87
light/trace.c: Adjust the trace algorithm to match that in q3map.
...
Fixes some weird artifacts I noticed when experimenting with lava surface lights in jam6_ericwtronyn.map
2015-09-25 00:13:25 -06:00
Eric Wasylishen
49cb977604
changelog, docs: update
2015-09-17 00:01:52 -06:00
Eric Wasylishen
7e7d851fdb
qbsp: DividePlane: add missing recalculation of surface bbox for the parallel case.
...
Thanks to rebb for the idea, txqbsp has the workaround in SelectPartition that recomputes the surface bbox; I think this fixes the underlying bug though.
Note: this makes telefragged.map (from the RRP devkit) leak in hull 2.
However, the point file starts at a func_detail staircase that, if turned into func_wall, fixes the leak.
2015-09-16 22:49:33 -06:00
Eric Wasylishen
3322ffb8f3
qbsp: add -maxnodesize option from txqbsp-xt. Defaults to on, nodes with a bbox with any dimension exceeding 1024.
2015-09-16 21:31:44 -06:00
Eric Wasylishen
532704f54e
light: fix duplicate surface lights being generated
2015-09-14 22:16:53 -06:00
Eric Wasylishen
1cf7af0c17
light: remove unused FaceArea function
2015-09-12 19:07:58 -06:00
Eric Wasylishen
44bd1c4943
light: show execution time with tenths of a second
2015-09-12 18:54:26 -06:00
Eric Wasylishen
8e29319309
light: avoid doing the trace twice when there is no obstruction
2015-09-12 18:53:56 -06:00
Eric Wasylishen
46cbcfd12b
light: add -dirtangle flag to control dirtmapping cone angle
2015-08-28 20:22:54 -06:00
Eric Wasylishen
3c918db489
light: add -onlyents switch
2015-08-20 12:14:13 -06:00
Eric Wasylishen
396bdfbc4f
build: work around confusing behaviour of mingw-w64, which provides a broken snprintf (and others) unless you request otherwise
2015-08-19 23:56:09 -06:00
Eric Wasylishen
b345dccfe7
light: disable deviance if samples <= 1 or deviance <= 0.
2015-08-14 14:28:53 -06:00
Eric Wasylishen
79d1871e56
light: document -surflight_subdivide key
2015-08-10 10:04:25 -06:00
Eric Wasylishen
077aae694e
docs: update changelog
2015-08-09 17:57:34 -06:00
Eric Wasylishen
20901a5a7d
qbsp: update usage text
2015-08-09 13:45:30 -06:00
Eric Wasylishen
3877a213a0
qbsp: use -oldaxis by default
2015-08-09 13:36:13 -06:00
Eric Wasylishen
72a5885437
light: fix crash in "Bad texture axes on face:" error. Print more detailed face info.
2015-08-09 12:27:55 -06:00
Eric Wasylishen
18dce775dd
light: fix lighting of rotatating entities (hiprotate). the model offset was not being used correctly.
...
todo: the trace code needs to take the model offset into account too, so shadow casting and self-shadowing are broken for hiprotate.
2015-08-08 21:37:58 -06:00
Eric Wasylishen
b68ba8c983
light: average the color to get the value to write to the .bsp lightmap.
...
This avoids issues with some engines that require the lit and internal lightmap to have the same intensity. (MarkV, some QW engines).
Previously, if you used low-value colors (e.g. "0.2 0 0"), the .bsp lightmap and .lit file could have vastly different brightness.
2015-08-05 13:47:04 -06:00
Eric Wasylishen
bc0e1778dc
light: allow negative surface offsets for niche use
2015-08-05 12:10:17 -06:00
Eric Wasylishen
3005504fe5
vis, light: set low process priority on windows
2015-08-05 12:10:17 -06:00
Eric Wasylishen
5302a3b539
light: add -surflight_subdivide command line flag to control subdivision size
2015-08-05 12:10:14 -06:00
Eric Wasylishen
6004e1b94c
light: log total number of lights including generated ones
2015-08-05 12:08:55 -06:00
Eric Wasylishen
a7b1ae851b
qbsp: make degenerate edge error in tjunc.c into a warning. from txqbsp-xt.
2015-08-01 20:07:51 -06:00
Eric Wasylishen
9fd7305479
qbsp: make "mixed face contents" error non-fatal if one of the leafnode or face is CONTENTS_EMPTY. from txqbsp-xt.
...
Fixes an issue necros was having.
2015-07-30 18:33:52 -06:00
Eric Wasylishen
f24b1a1101
light: update usage text
2015-07-13 15:07:46 -06:00
Eric Wasylishen
a56dad56c2
light: add logprint for "_anglescale"/"_anglesense" worldspawn key (to control angle sensitivity of sunlight)
2015-07-13 14:33:21 -06:00
Eric Wasylishen
4b02787244
Update readme
2015-07-13 14:33:17 -06:00
Eric Wasylishen
004247fe02
changelog: update
2015-07-09 16:44:03 -06:00
Eric Wasylishen
c5ee7c60b0
light: update man with -lux switch
2015-07-09 16:34:12 -06:00