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
Kevin Shanahan
bdd2ac6127
bsputil: fix wad export from bsp with missing textures
...
We need to skip over the textures with missing data lumps in the BSP,
i.e. having data offset -1.
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2014-02-21 09:21:35 +10:30
Kevin Shanahan
063880eeda
TyrUtils v0.15
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2014-02-16 20:44:07 +10:30
Kevin Shanahan
2726819a54
doc: catch up some changelog entries
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2014-02-16 20:43:49 +10: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
Kevin Shanahan
df9c82eb91
qbsp: improve a few error messages using new line number info
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2014-02-13 15:57:01 +10:30
Kevin Shanahan
06583de238
qbsp: save line number information when generating faces
...
To improve debug messages, save the line number of the faces as we
generate them and in the case of hull generation, save a pointer back
to the source brush.
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2014-02-13 15:55:23 +10:30
Kevin Shanahan
e40c68a8b8
qbsp: use explicit cast to short in ExportLeaf_BSP2 node bounds
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2014-02-13 15:00:05 +10:30
Kevin Shanahan
fa48825cb5
qbsp: make transparent water the default for visibility calculations
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-12-24 19:08:46 +10:30
Kevin Shanahan
f9d1f50cf3
qbsp: increase MAXEDGES from 32 to 64
...
Should still be enough stack space... I think.
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-12-24 19:04:57 +10:30
Kevin Shanahan
88db6a79b1
qbsp: remember to ignore func_group entities for -onlyents compiles
...
Otherwise, we break the brush model names (numbering).
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-12-02 15:06:40 +10:30
Kevin Shanahan
e8d1f59d11
qbsp: fix parsing of texture names containing curly braces
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-10-04 09:21:04 +09:30
Kevin Shanahan
f6a3700301
TyrUtils v0.14
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-10-03 11:10:45 +09:30
Kevin Shanahan
456565d17f
qbsp: add the -2psb command line option to output RMQ style BSP2
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-10-03 11:09:25 +09:30
Kevin Shanahan
ff7c3a54a2
doc: document .map format compatibility
...
Include changelog entry for the new Quake 2 map compatibility.
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-10-02 08:50:31 +09:30
Kevin Shanahan
f972f19f39
qbsp: ignore leading path in texture names for Quake 2 compatibility
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-10-01 12:42:25 +09:30
Kevin Shanahan
1196dd8a82
qbsp: ignore extra surface flags found in Quake 2 map files
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-10-01 12:34:59 +09:30