Eric Wasylishen
bc2d734e9a
light: move Lightmap_Soften into WriteLightmaps
2017-02-08 02:23:21 -07:00
Eric Wasylishen
309714b939
light: update embree to v2.13.0
2017-02-08 01:02:59 -07:00
Eric Wasylishen
f95e8445ef
common: fix build error on windows (M_PI->Q_PI)
2017-02-07 21:36:24 -07:00
Eric Wasylishen
089819d672
light: tweak .ppm dump code
2017-02-07 20:52:17 -07:00
Eric Wasylishen
4da0a70ab6
light: refactor box filtering code a bit
2017-02-07 20:51:57 -07:00
Eric Wasylishen
ea39ce6576
light: move negative value clamping to LightFace_ScaleAndClamp
2017-02-07 20:33:43 -07:00
Eric Wasylishen
613d75ea70
light: debug code for dumping lightmaps to .ppm images
2017-02-07 18:35:29 -07:00
Eric Wasylishen
4582637c78
light: restore Lightmap_ForStyle_ReadOnly
2017-02-07 17:59:16 -07:00
Eric Wasylishen
3acc48269e
light: add lanczos filter
2017-02-07 14:27:51 -07:00
Eric Wasylishen
4813bf6aa2
common: remove unused function
2017-02-07 11:44:02 -07:00
Eric Wasylishen
1211fd86d1
light: move bounce to its own file
2017-02-07 00:51:05 -07:00
Eric Wasylishen
c7756496cd
light: move phong shading code to its own file
2017-02-07 00:06:29 -07:00
Eric Wasylishen
9246454bfc
light: refactor some more stuff to GLM
2017-02-06 23:00:48 -07:00
Eric Wasylishen
f018b7324d
light: refactor phong shading to use GLM
2017-02-06 22:50:56 -07:00
Eric Wasylishen
2dc01b8469
light: windows build fix
2017-02-06 22:04:55 -07:00
Eric Wasylishen
7fdb77188c
light: work-in-progress stuff
2017-02-06 21:57:49 -07:00
Eric Wasylishen
935dd0dd27
lightstest1.map: update for testing lit water
2017-02-02 21:57:22 -07:00
Eric Wasylishen
3ad6aab406
light: refactor WriteLightmaps
2017-02-01 14:38:42 -07:00
Eric Wasylishen
9330d2c087
light: rename Face_MakeInwardFacingEdgePlanes() to Face_AllocInwardFacingEdgePlanes()
...
do memory allocation inside the function.
2017-02-01 14:38:42 -07:00
Eric Wasylishen
be3c84ec98
light: add a EdgePlanes_PointInside() function to bsputils.{hh,cc}
2017-02-01 14:38:42 -07:00
Eric Wasylishen
c035907ff8
light: move Face_MakeInwardFacingEdgePlanes() to bsputils.{hh,cc}
2017-02-01 14:38:42 -07:00
Eric Wasylishen
29b420c7dd
light: move Light_PointInSolid to bsputils.{hh,cc}
2017-02-01 14:38:42 -07:00
Eric Wasylishen
95bda95908
add glm to cmakelists
2017-02-01 14:18:45 -07:00
Eric Wasylishen
ddcd44a085
import glm 0.9.8.4
2017-02-01 14:11:52 -07:00
Eric Wasylishen
4ec1d92191
light: dirt_off_radius, dirt_on_radius
2017-01-30 16:11:56 -07:00
Eric Wasylishen
2637373ef0
add hexen2 rotation test map
2017-01-25 15:02:38 -07:00
Eric Wasylishen
2673d9d8c3
qbsp: fix broken clipping hulls on rotating objects
2017-01-25 14:59:40 -07:00
Eric Wasylishen
1114eb8356
travis: don't install cmake
2017-01-25 01:18:55 -07:00
Eric Wasylishen
afccc1e645
update osx_image in .travis.yml
2017-01-25 00:26:11 -07:00
Eric Wasylishen
cc71ad024f
qbsp: origin brush support
...
light: allow model offset on any brush entity with "origin" key set, not just ones with a "rotate_*" classname
2017-01-24 21:39:03 -07:00
Eric Wasylishen
b46cba40a4
light: entity warnings: print bbox for bmodel entities
...
fixes https://github.com/ericwa/tyrutils-ericw/issues/120
2016-11-24 17:10:15 -07:00
Eric Wasylishen
a9b4e8233a
docs: update changelog
2016-11-20 16:27:09 -07:00
Eric Wasylishen
4c0194a05f
Revert "Revert "light: CalcPoints: also check submodel traces against the world""
...
This reverts commit c9b9ae568c .
2016-11-20 00:51:20 -07:00
Eric Wasylishen
75193bbe05
light: fix fscanf format warning
...
warning: format ‘%llu’ expects argument of type ‘long long unsigned int*’, but argument 3 has type ‘uint64_t* {aka long unsigned int*}’ [-Wformat=]
int cnt = fscanf(texinfofile, "%llu\n", &extended_texinfo_flags[i]);
2016-11-14 11:48:36 -07:00
Eric Wasylishen
d0d7a424d3
light: change isnan() to std::isnan()
...
should fix https://github.com/ericwa/tyrutils-ericw/issues/118 (Ubuntu 16.04 build)
2016-11-14 11:38:32 -07:00
Eric Wasylishen
93773fcab7
light: updates to lightstest1.map to check for issues with bmodels
2016-11-08 16:39:18 -07:00
Eric Wasylishen
c9b9ae568c
Revert "light: CalcPoints: also check submodel traces against the world"
...
This reverts commit 1cca79710c .
2016-11-06 23:43:07 -07:00
Eric Wasylishen
6a99a70773
light: liquid faces on shadow casting bmodels should cast shadows
2016-11-04 23:42:58 -06:00
Eric Wasylishen
81b8c1fc86
light: lightstest1.map: add some doors to test black fringes on bmodels
2016-11-04 02:31:36 -06:00
Eric Wasylishen
1cca79710c
light: CalcPoints: also check submodel traces against the world
...
fixes https://github.com/ericwa/tyrutils-ericw/issues/115
2016-11-04 02:14:05 -06:00
Eric Wasylishen
dfcbfe5be1
light: fix invalid assertion (with glass, final ray color can be darker than initial)
2016-11-04 01:34:36 -06:00
Eric Wasylishen
11304cf059
light: hack around invalid normals in bounce lighting patches.. needs further investigation
2016-11-04 01:26:48 -06:00
Eric Wasylishen
8284eba493
light: hack to fix bounce + glass shadows (not implemented, but don't crash)
2016-11-04 01:08:03 -06:00
Eric Wasylishen
186485ec47
light: revert ee89d41b6d since it's now handled within the trace code
2016-11-03 18:27:40 -06:00
Eric Wasylishen
4f530fadb9
light: tweak the glass tinting again
2016-11-03 18:11:58 -06:00
Eric Wasylishen
e6df5098fd
light: tweak glasstest.map
2016-11-03 18:02:31 -06:00
Eric Wasylishen
a4afa749b7
light: tweak glass interaction with light
2016-11-03 17:24:27 -06:00
Eric Wasylishen
f9dcbc2270
light: glasstest.map: lower alpha from 1 to 0.99
2016-11-03 16:20:25 -06:00
Eric Wasylishen
3b65ad592a
light: glass: only pick up the glass color when the ray exits the glass
2016-11-03 15:21:29 -06:00
Eric Wasylishen
fdab564617
light: Add glasstest.map
2016-11-03 12:55:52 -06:00