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
5c268c78d1
doc: fix typo in _surface_offset doc
2015-05-10 13:47:41 -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
fb0eb9f851
changelog: update
2015-04-29 16:09:45 -06:00
Eric Wasylishen
67cec03ac8
qbsp: fix broken -onlyents option by moving model allocation from map.c to ExportDrawNodes
2015-04-29 16:07:14 -06:00
Eric Wasylishen
985271f689
bsputil: display number of models
2015-04-29 16:07:14 -06:00
Eric Wasylishen
ed66ed112e
qbsp: fix texture offset on rotate_object, so they match in the editor. Added "-oldrottex" flag to revert to old behaviour. From txqbsp-xt.
2015-04-29 16:07:07 -06:00
Eric Wasylishen
05bddc62e9
man: light.1: add myself to author section
2015-04-27 16:56:27 -06:00
Eric Wasylishen
543678859a
changelog: update
2015-04-27 16:41:15 -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
d77a7d768c
qbsp: switch to hardcoded MAX_MAP_PLANES. counting unique planes was slow
2015-04-25 23:09:35 -06:00
Eric Wasylishen
28e460be9a
qbsp: MakeFaceEdges: accelerate with a hash table to avoid slow O(n^2) search for edges
2015-04-25 22:49:40 -06:00
Eric Wasylishen
59bb786880
light: remove unused bsp_origin constant
2015-04-25 21:18:28 -06:00
Eric Wasylishen
1812734037
qbsp: ChooseMidPlaneFromList: fix off-by-one error in axial plane test. On the first SolidBSP pass, gives fewer split nodes on bbin1.map (128k vs 199k)
2015-04-25 21:01:49 -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
02196e2efa
Makefile/CMakeLists.txt: factor out stack size setting to here.
2015-04-25 17:29:23 -06:00
Eric Wasylishen
9c521a70d6
cmake build system: various fixes. use 8MB stack on windows
2015-04-25 17:07:23 -06:00
Eric Wasylishen
bab955103e
CMakeLists: add preliminary CMake build system
2015-03-27 23:46:30 -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
f57070b1e0
Add .gitignore
2015-03-27 00:33:14 -06:00
Eric Wasylishen
024b188744
Revert "light manual: Fix typo (_mincolor -> _minlight_color)"
...
This reverts commit 275800ca23 .
2015-02-24 22:35:39 -07:00
Eric Wasylishen
1d05f97769
Makefile: support building in a path containing spaces
2015-02-22 20:35:57 -07:00
Eric Wasylishen
15a4e160f2
threads.c: re-enable code to set the stack size on posix. Default stack size on OS X 10.10 isn't large enough
2015-02-05 11:39:15 -07: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
275800ca23
light manual: Fix typo (_mincolor -> _minlight_color)
2015-02-05 11:34:31 -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
5111c5485c
qbsp: account for miptex struct in wad3 lump disksize
...
Here's another little tyrutils patch: in qbsp, I believe the
calculation of the "disksize" field of the miptex lumps when using
WAD3 textures is missing the size of the dmiptex_t struct (40 bytes),
causing the resulting bsp file to be slightly truncated.
I noticed this because one of Tronyn's levels (jam2_tronyn.bsp) was
crashing Quakespasm for me; it turned out the engine was trying to
read 40 bytes past the end of the file when loading the last texture
in the bsp. I got him to send over his map source, wads, and compiler;
he was using tyrutils 0.15 and wad3 format textures, and I confirmed
that this patch fixes the engine crash.
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2014-10-30 12:54:36 +10:30
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
90aa616866
qbsp: fix coordinates in degenerate edge error in tjunc.c
...
The error message was actually displaying the edge vector, which is
always going to be ~(0,0,0). Pass in the edge end points and then we
can display both the length of the edge and the location of one end
point.
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2014-05-06 20:30:15 +09:30
Kevin Shanahan
191bc63267
build: bump the fallback version number in Makefile
...
Should add this to the release checklist, haven't done it in a while!
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2014-02-21 12:00:32 +10:30