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
Eric Wasylishen
4e74e530c0
light: dynamically allocate memory for lighting each face
2016-02-20 14:43:38 -07:00
Eric Wasylishen
22dd1726de
light: move lightsurf_t etc. to header
2016-02-20 14:41:58 -07:00
Eric Wasylishen
942c87a98b
light: fix phong shading for sunlight
2016-02-16 19:16:42 -07:00
Eric Wasylishen
ae04899ce5
light: make CalcPointNormal more robust; don't use micro-triangles (<1 unit area) for interpolating normals
2016-02-16 19:09:43 -07:00
Eric Wasylishen
465cb2a555
light: avoid NaN's due to rounding error when calculating angles for weighting normals
2016-02-15 20:28:05 -07:00
Eric Wasylishen
1fd1637de1
light: add -phongdebug option
2016-02-15 20:27:03 -07:00
Eric Wasylishen
fdc1f25276
light: add phong shading debug function
2016-02-15 17:59:05 -07:00
Eric Wasylishen
a515a13107
Lightmap_ForStyle: change back to taking a const lightsurf_t*
2016-02-15 16:20:29 -07:00
Eric Wasylishen
537937f0eb
Lightmap_Soften: remove stack allocation
2016-02-15 16:20:29 -07:00
Eric Wasylishen
e896f3126b
entities.c: make SetWorldKeyValue / WorldKeyValue safer
2016-02-15 16:20:29 -07:00
Eric Wasylishen
b0777c2075
suppress compile warnings
2016-02-15 16:20:29 -07:00
Eric Wasylishen
b2687481d6
WriteLightmaps: revert to how I was getting the sample points
2016-02-15 16:20:29 -07:00
Eric Wasylishen
7128a8e956
code formatting, normalize most whitespace to 4 spaces
2016-02-15 16:20:29 -07:00
Eric Wasylishen
1f05b7976a
fix wrong FindTexinfo call
...
fix Lightmap_ForStyle call
change M_PI to Q_PI
switch to Q_strncasecmp
2016-02-15 16:18:51 -07:00
Eric Wasylishen
1630b8756e
tyrutils-ericw-spike rebased on to 998c9d3acb
2016-02-15 16:16:37 -07:00
Eric Wasylishen
9496991e60
LightFace_Min: allow delay 4 lights to use lightstyles
2016-02-14 20:45:56 -07:00
Eric Wasylishen
651e7ca827
CalcPoints: if NearWall() fails, first try fudging by 0.25 units in each direction
2016-02-11 23:30:21 -07:00
Eric Wasylishen
a439f891a1
CalcPoints: Skip the trace if a PointContents says the point is already unobstructed.
...
Handles beveled walkways in telefragged.bsp which touch a wall along one edge, but don't split the wall.
Previously, the walkways were blocking most of the traces for the wall, messing up all of the wall sample points.
2016-02-11 22:38:23 -07:00
Eric Wasylishen
7a5c7bbf6b
light: cleanup _sunlight3 code, support _sunlight3 without _sunlight2 properly
2015-12-10 14:58:49 -07:00