Eric Wasylishen
|
ed6dfbaf76
|
light: disable obj exporter
|
2016-04-11 01:14:54 -06:00 |
Eric Wasylishen
|
f2d33137ef
|
light: PrintFaceInfo: also print the interpolated normals
|
2016-04-11 00:59:01 -06:00 |
Eric Wasylishen
|
c86731ab58
|
light: make TriangleArea non static
|
2016-04-11 00:47:21 -06:00 |
Eric Wasylishen
|
8228bf979f
|
light: obj exporter
|
2016-04-11 00:46:42 -06:00 |
Eric Wasylishen
|
37d0d14ccd
|
light: fix phong shading debug code
|
2016-04-10 23:07:13 -06:00 |
Eric Wasylishen
|
cf8e3fc935
|
light: augment DirtTrace with the hit plane
|
2016-04-10 22:30:42 -06:00 |
Eric Wasylishen
|
ddbf55ac13
|
light: skip casting lights if -phongdebug or -dirtdebug are in use, gives a big speedup for those flags
|
2016-04-10 19:52:01 -06:00 |
Eric Wasylishen
|
e395a755ab
|
light: CalcPoint: correct point before interpolating normal
|
2016-04-10 19:42:24 -06:00 |
Eric Wasylishen
|
4207054709
|
light: avoid crash if no textures in bsp
|
2016-04-10 19:34:57 -06:00 |
Eric Wasylishen
|
986334a86b
|
light: unify "_anglescale" worldspawn key and "-anglescale" command line option, previously they were different.
Fix "-anglescale" command line option which was broken.
Make sunlight2 use the global anglescale setting.
|
2016-04-10 18:25:15 -06:00 |
Eric Wasylishen
|
9e2d54a9af
|
light: handle bsp's with no textures
|
2016-04-10 15:39:49 -07:00 |
Eric Wasylishen
|
f2a57d5b71
|
build: remove remaining embree stuff
|
2016-04-10 15:49:01 -06:00 |
Eric Wasylishen
|
b6c9873289
|
light: return hit normal for DirtTrace
|
2016-04-10 15:27:21 -06:00 |
Eric Wasylishen
|
0a6708edb0
|
light: remove embree support
|
2016-04-10 14:43:37 -06:00 |
Eric Wasylishen
|
4e34c48476
|
build: package embree license
|
2016-04-09 23:14:43 -06:00 |
Eric Wasylishen
|
5b2529ebd4
|
light: fix lighting on rotators, at least to the extent it was working before
|
2016-04-08 00:42:15 -06:00 |
Eric Wasylishen
|
7215b669f2
|
light: new CalcPoints implementation
|
2016-04-07 23:26:46 -06:00 |
Eric Wasylishen
|
c135ab6b2b
|
light: error if bsp->nummodels == 0
|
2016-04-07 23:26:23 -06:00 |
Eric Wasylishen
|
e6f58ece0c
|
Revert "light: phong shading: also weight by face area. this avoids cubes with rounded edges turning completely into blobs"
This reverts commit bbc95a1364.
|
2016-04-07 22:20:24 -06:00 |
Eric Wasylishen
|
ecfa3c3e12
|
light: enable -parse_escape_sequences by default
|
2016-04-07 21:47:26 -06:00 |
Eric Wasylishen
|
82ff1dbd06
|
light: don't save lightmaps for "trigger" texture
|
2016-04-07 21:39:23 -06:00 |
Eric Wasylishen
|
96a8dc8c3d
|
light: disable "Failed to calculate normal for vertex" warning because it was not really an error and causing spam
qbsp T-Juncs generate lots of colinear vertices I think?
|
2016-04-07 21:16:54 -06:00 |
Eric Wasylishen
|
ab9be6bbf2
|
light: refactoring
|
2016-04-07 13:16:21 -06:00 |
Eric Wasylishen
|
0733499da5
|
light: fix for black corners on dirttest.map (test map from lunaran)
|
2016-04-06 22:38:09 -06:00 |
Eric Wasylishen
|
6fcf04a298
|
light: revert to older CalcPoints (push off hit normal) to fix artifacts in testlightonface.map
|
2016-04-06 19:15:19 -06:00 |
Eric Wasylishen
|
c9aad9d2ce
|
light: Refactor CalcPoints, store whether a point is occluded
|
2016-04-06 18:29:24 -06:00 |
Eric Wasylishen
|
a6a89db530
|
light: refactor tracelist to be a list of modelinfo_t instead of dmodel_t
|
2016-04-05 23:25:36 -06:00 |
Eric Wasylishen
|
bbc95a1364
|
light: phong shading: also weight by face area. this avoids cubes with rounded edges turning completely into blobs
|
2016-04-05 15:00:12 -06:00 |
Eric Wasylishen
|
a407b971bc
|
light: rework LightFace_Entity to fully fix testlightonface.map
|
2016-04-05 12:52:44 -06:00 |
Eric Wasylishen
|
aed29da060
|
light: tweak embree settings to fix "fireflies"
|
2016-04-05 12:27:51 -06:00 |
Eric Wasylishen
|
163b599900
|
light: tweak angle test for testlightonface.map.
|
2016-04-05 00:58:05 -06:00 |
Eric Wasylishen
|
47e7a981f6
|
light: get rid of unneeded unordered_set
|
2016-04-05 00:13:29 -06:00 |
Eric Wasylishen
|
f315366f43
|
light: hack to fix lights exactly on faces
|
2016-04-04 23:58:12 -06:00 |
Eric Wasylishen
|
33ee7e35f7
|
light: delete .lit file before starting
|
2016-04-03 18:25:30 -06:00 |
Eric Wasylishen
|
d53e67bf8a
|
light: copy embree DLL's
|
2016-03-30 15:26:36 -07:00 |
Eric Wasylishen
|
e11e9d5c1f
|
light: embree support
|
2016-03-30 14:58:21 -06:00 |
Eric Wasylishen
|
34858ed243
|
light: fix sunlight + phong shading
|
2016-03-05 23:56:28 -07:00 |
Eric Wasylishen
|
d2f1eb2b2b
|
light: support _phong and _phong_angle on bmodels for compatibility with other qbsp's.
|
2016-03-05 22:51:17 -07:00 |
Eric Wasylishen
|
1a48e5a24a
|
light: fix issue with CalcPoints trace hitting a corner, spuriously setting tr.hitback, and returning the wrong hitpoint
|
2016-03-05 00:57:47 -07:00 |
Eric Wasylishen
|
41972a376a
|
qbsp, light: Strip texinfo flags other than TEX_SPECIAL.
Write extended ones to a "mapname.texinfo" file.
Support "_dirt" and "_minlight" flags on func_detail/group.
|
2016-03-05 00:26:54 -07:00 |
Eric Wasylishen
|
0b4c044473
|
light: fix dirtmapping traces
|
2016-03-04 20:40:14 -07:00 |
Eric Wasylishen
|
72d7ce4231
|
light: handle degenerate triangles when smoothing normals
|
2016-03-03 12:38:03 -07:00 |
Eric Wasylishen
|
d66857b5a0
|
light: try fixing cmake msvc build
|
2016-03-03 11:14:14 -07:00 |
Eric Wasylishen
|
fec88c3186
|
light: fix build on MSVC
|
2016-03-02 19:21:30 -08:00 |
Eric Wasylishen
|
492d94c1fe
|
light: new phong shading keys, "_phong_angle" and "_phong".
"_phong" "1" is a shortcut for "_phong_angle" "89".
"_phong_angle" sets the max angle in degrees between faces that will get smoothed.
|
2016-03-02 20:00:05 -07:00 |
Eric Wasylishen
|
f641e93ca2
|
light: convert light.c to light.cc
|
2016-03-02 17:07:02 -07:00 |
Eric Wasylishen
|
3056971ae6
|
light: fix issue with lights within 1 unit of a face not casting light on that face
fixes https://github.com/ericwa/tyrutils-ericw/issues/10
|
2016-02-25 23:02:43 -07:00 |
Eric Wasylishen
|
48830f2b1a
|
light: revert CalcPoints changes as it was causing light leaking in jam2_mfx
(points on the top edge of a face were crossing a wall, but ended up in the open so they were accepted as OK)
|
2016-02-25 15:34:07 -07:00 |
Eric Wasylishen
|
ceec7b16c7
|
light: optimize TraceFaces
|
2016-02-22 22:11:12 -07:00 |
Eric Wasylishen
|
4ed6db3020
|
light: add new TraceFaces API which gives accurate info on the first hit face of a trace.
Need to use this for: dirtmapping, fence textures, GI
|
2016-02-21 22:31:06 -07:00 |