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
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
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
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
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
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
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
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
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
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
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
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
e9f240b623
light: .lux file support from Spike
2015-07-09 16:34:12 -06:00
Eric Wasylishen
a219d3e0a0
light: WriteEntitiesToString: add explanation from Spike
2015-07-09 16:34:06 -06:00
Eric Wasylishen
6ca1c6957a
light: fence texture tracing: fix handling of negative texture coords
2015-07-09 16:33:44 -06:00
Eric Wasylishen
e242a9c910
light: Add gamma control with -gamma flag and "_gamma" key
2015-07-09 16:33:07 -06:00
Eric Wasylishen
26a03ace45
light: optimization: avoid iterating over non-light entities in light thread.
2015-06-02 00:51:37 -06:00
Eric Wasylishen
4105bc505f
light: optimization: avoid unnecessary memsets, from spike
2015-06-01 23:14:19 -06:00
Eric Wasylishen
e0d3f872ff
light: rewrite part of WriteLightmaps for more readable code
2015-05-31 12:27:40 -06:00
Eric Wasylishen
c39971bb94
light: rename -dirty flag to -dirt for consistency
2015-05-19 12:11:17 -06:00
Eric Wasylishen
ab78c07320
light: make fence texture tracing opt-in
2015-05-16 23:33:39 -06:00
Eric Wasylishen
1996bce56d
light: support switchable lights with any light* classname, not just "light"
2015-05-15 09:54:19 -06:00
Eric Wasylishen
8bde00a732
light: ensure "_surface" value is case-insensitive
2015-05-14 17:42:26 -06:00
Eric Wasylishen
3a109ac84d
build: split up cmake build system into subprojects.
...
-DDOUBLEVEC_T now correctly used for qbsp only.
2015-05-05 12:34:39 -06:00
Eric Wasylishen
86d3aa990d
light: remove "Jittering" debug message
2015-05-04 14:13:18 -06:00
Eric Wasylishen
0a6d3f4167
light: fix hang when using _deviance, make _samples default to 16 when _deviance is set.
2015-05-01 02:17:29 -06:00
Eric Wasylishen
d2840f4cba
light: fix for always generating a .lit file when surface lights are used
2015-04-30 14:54:23 -06:00
Eric Wasylishen
54e7c2ab8e
light: fence texture tracing
2015-04-27 00:26:42 -06:00
Eric Wasylishen
a33c4b0136
light: surface light support via "_surface" "texturename" light key
2015-04-26 02:24:57 -06:00
Eric Wasylishen
59bb786880
light: remove unused bsp_origin constant
2015-04-25 21:18:28 -06:00