Eric Wasylishen
93b3a0cc80
lit2: when writing a lit2, always write a lit1
2015-05-20 01:16:30 -06:00
Eric Wasylishen
dcca58cddb
lit2: tweak help msg
2015-05-19 14:44:20 -06:00
Eric Wasylishen
2711da8984
lit2: update docs
2015-05-19 14:38:59 -06:00
Eric Wasylishen
29bbd06d61
tidy formatting
2015-05-19 14:38:15 -06:00
Eric Wasylishen
91649b5342
add LightWorld log message
2015-05-19 14:38:15 -06:00
Eric Wasylishen
c02baf41f6
un-comment memset (lightsurf_t struct is now small)
2015-05-19 14:38:14 -06:00
Eric Wasylishen
9aa43504dc
remove bit of _lightmap_scale code
2015-05-19 14:38:14 -06:00
Eric Wasylishen
14fde26763
formatting & cleanup
2015-05-19 14:38:14 -06:00
Eric Wasylishen
1075bafb7c
remove lux file output for now
2015-05-19 14:38:14 -06:00
Eric Wasylishen
b4f9f23051
remove proojectedmip stuff for now
2015-05-19 14:38:14 -06:00
Eric Wasylishen
a640ff4cb1
remove bspx for now
2015-05-19 14:38:14 -06:00
Eric Wasylishen
a0803ff6a2
Remove some dead code
2015-05-19 14:38:13 -06:00
Eric Wasylishen
0cf02b230d
remove SINGLEMAP define
2015-05-19 14:38:13 -06:00
Eric Wasylishen
6f4a76a0ab
Allocate memory as needed per face
2015-05-19 14:38:13 -06:00
Eric Wasylishen
4e5b2c100b
Revert "color solid lightmaps red"
...
This reverts commit 421882301697d5218e3a106893a5398b7a9efeff.
2015-05-19 14:38:13 -06:00
Eric Wasylishen
6082ea4638
-lmscale command line: take a float value
2015-05-19 14:38:13 -06:00
Eric Wasylishen
13cbb1d792
color solid lightmaps red
2015-05-19 14:38:13 -06:00
Eric Wasylishen
90001fa436
rewrite and simplify memory allocation for the output data
2015-05-19 14:38:12 -06:00
Eric Wasylishen
3ec492b03c
always write lit2 when -lmscale is used
2015-05-19 14:38:12 -06:00
Eric Wasylishen
a61662f49a
disable projected mip stuff for now
2015-05-19 14:38:12 -06:00
Eric Wasylishen
4b2e398760
fix typo
2015-05-19 14:38:12 -06:00
Eric Wasylishen
d6ed9d5b55
Fix -lmscale override switch. Handle absence of .lmscales file
2015-05-19 14:38:12 -06:00
Eric Wasylishen
a9d800782d
Support doing a lit2 and regular lit compile at the same time
2015-05-19 14:38:12 -06:00
Eric Wasylishen
eb5eb2a1bf
write lit2 to .lit2 files
2015-05-19 14:37:20 -06:00
Eric Wasylishen
81dc2f3fa9
per-brush lm scale support
2015-05-19 14:37:20 -06:00
Eric Wasylishen
a0ce5d01a6
re-enable fence textures, fix saving bsp
2015-05-19 14:37:20 -06:00
Eric Wasylishen
f26f87da19
spike's code
2015-05-19 14:37:20 -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
Eric Wasylishen
aa5dfa8b19
light: respect "_dirt" "-1" bmodel key in -dirtdebug mode
2015-04-25 20:46:05 -06:00
Eric Wasylishen
6fe67cd2fb
light: allow setting _dist and _range in worldspawn
2015-04-25 20:46:00 -06:00
Eric Wasylishen
ef471ee44f
Support "_dirt" "-1" on bmodels to disable dirtmapping
2015-04-25 20:45:54 -06:00
Eric Wasylishen
be8c42460c
_sunlight2 (sky light, light dome) support from q3map2
...
_sunlight penumbra (deviance) from q3map2
light penumbra from q3map2
2015-04-25 20:45:44 -06:00
Eric Wasylishen
741d341332
Dirtmapping (ambient occlusion) from q3map2
2015-04-25 20:45:32 -06:00
Eric Wasylishen
2d5ea4fe73
light: accept _sunlight_mangle as an alternative for _sun_mangle
2015-03-27 00:35:28 -06:00
Eric Wasylishen
2cd885729a
light: MatchTargets: disable copying 'style' key/value to the targeting entity. Don't see any reason why that would be done.
2015-03-27 00:33:32 -06:00
Eric Wasylishen
c51326e8b0
trace.c: Undo part of cc36d8e that flipped the signs of ON_EPSILON for one of the checks in the TraceLine.
...
This fixes cracks in sunlight shadows spotted by Lunaran, and greatly improves the AO quality
2015-02-05 11:36:59 -07:00
Eric Wasylishen
11678eaa74
trace.c: fix bug in determining hitpoint->point
2015-02-05 11:35:15 -07:00
Eric Wasylishen
24c6b9524a
_color support: support values in the range 0-1 by automatically scaling them to 0-255
2015-02-05 11:33:21 -07:00
Eric Wasylishen
4df394f9fe
light: Increase precision of lightmap extents calculations
...
This bug is a counterpart to this bug in quakespasm:
https://sourceforge.net/p/quakespasm/patches/15/
If the precision of the calculation in WorldToTexCoord done by ‘light’
is significantly different than the precision of the same calculation
in the engine, you can get corrupted lightmaps. The problem affects
light when it’s built as something other than vanilla 32-bit
x86. (e.g. x86_64 on a mac).
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2014-06-30 12:58:30 +09:30
Kevin Shanahan
d68748d1d8
light: fix minlight clamping for coloured lights
...
Colours need to be scaled correctly by the light intensity.
Thanks to Mechtech for reporting this issue.
Reported-by: Paul R <automan1001@yahoo.com>
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2014-02-15 18:56:44 +10:30