Eric Wasylishen
|
9500fd8ebb
|
light: apply minlight after adding bounce lights
|
2016-09-19 19:47:53 -06:00 |
Eric Wasylishen
|
722f753d8d
|
light: remove some unused vis-testing stuff
|
2016-09-19 19:21:04 -06:00 |
Eric Wasylishen
|
f7091c27f8
|
light: add some tests for the EntDict_Check* functions
|
2016-09-19 19:16:45 -06:00 |
Eric Wasylishen
|
26dcb4f10f
|
light: refactor warnings code. warn if an entity targets itself
|
2016-09-19 18:28:16 -06:00 |
Eric Wasylishen
|
12f55292f7
|
light: CheckTargetsMatched: for "targetname with no targetter" warning, allow any key to be the targetter
|
2016-09-19 16:08:08 -06:00 |
Eric Wasylishen
|
05251d9e1a
|
light: fix "options summary" log header
|
2016-09-19 14:46:16 -06:00 |
Eric Wasylishen
|
4ec0a62ce8
|
light: CheckEmptyValues: print entity classname and origin
|
2016-09-19 14:42:04 -06:00 |
Eric Wasylishen
|
d4395bc660
|
light: improved CheckTargets
|
2016-09-19 14:34:36 -06:00 |
Eric Wasylishen
|
63d2bcf91c
|
light: move empty values check to its own function
|
2016-09-19 14:28:50 -06:00 |
Eric Wasylishen
|
fdb5394cc5
|
light: remove hack requiring a light to add 1 unit of light to a lightmap, as it can cause artifacts, and it's redundant with -gate
|
2016-09-19 12:34:32 -06:00 |
Eric Wasylishen
|
28bec79830
|
light: add more fuzz (25%) to the bbox size for vis approximation.
Not sure if this is necessary, but fixes a tricky case in lightstest1.map (infinite reach light casting a sharp shadow across a large room)
|
2016-09-19 12:27:02 -06:00 |
Eric Wasylishen
|
1045505670
|
light: avoid bouncing negative lights
|
2016-09-19 12:15:26 -06:00 |
Eric Wasylishen
|
b4e30032a3
|
light: MakeBounceLightsThread: avoid zero-area or small patches, which were getting NaN colors
|
2016-09-19 12:11:41 -06:00 |
Eric Wasylishen
|
8dab875adc
|
light: CheckTargets: also check for unmatched targetnames
|
2016-09-18 17:30:21 -06:00 |
Eric Wasylishen
|
18f0b89ee6
|
light: build fix for MSVC
|
2016-09-18 15:50:31 -06:00 |
Eric Wasylishen
|
0786b513a2
|
light: fix build of 073ede98c7
|
2016-09-18 15:46:42 -06:00 |
Eric Wasylishen
|
494f9bb050
|
common: make Q_assert inline
|
2016-09-18 15:44:04 -06:00 |
Eric Wasylishen
|
857b4402ad
|
light: change assertions to Q_assert (so they are all enabled in release builds)
|
2016-09-18 15:41:56 -06:00 |
Eric Wasylishen
|
b2fb764e36
|
common: new assertion macro used in all builds (debug/release)
|
2016-09-18 15:39:16 -06:00 |
Eric Wasylishen
|
073ede98c7
|
light: when there are too many lightstyles on a face, sort them by descending average brightness and take the top 4
previous behaviour was random, which made needlessly ugly artifacts.
|
2016-09-18 15:12:57 -06:00 |
Eric Wasylishen
|
a8047d5220
|
light: lightstest1.map: add test for "too many lightstyles on a face"
|
2016-09-18 03:14:02 -06:00 |
Eric Wasylishen
|
a2dc35a91f
|
light: fix debug logging
|
2016-09-18 03:03:29 -06:00 |
Eric Wasylishen
|
2b43ecca40
|
light: lightstest1.map: show a failure case for the vis approximation (infinite falloff lights over long distances)
|
2016-09-18 03:02:57 -06:00 |
Eric Wasylishen
|
8bff999601
|
light: move lightmaps array to lightsurf_t
|
2016-09-18 02:22:26 -06:00 |
Eric Wasylishen
|
700e8d089f
|
light: add -verbose option
|
2016-09-17 23:49:41 -06:00 |
Eric Wasylishen
|
81c7b39fa7
|
light: tidy LightStyleForTargetname
|
2016-09-17 17:49:01 -06:00 |
Eric Wasylishen
|
f5d347a18d
|
light: always assign "style" if targetname is set on a light
|
2016-09-17 17:48:11 -06:00 |
Eric Wasylishen
|
1a74834221
|
light: never receive dirtmapping on lit liquids
|
2016-09-16 11:37:04 -06:00 |
Eric Wasylishen
|
c7d210dc3a
|
light: special case support for skip-textured bmodels in the embree backend.
It only supports bmodels where all the faces are skipped
|
2016-09-10 18:32:22 -06:00 |
Eric Wasylishen
|
33093151c6
|
common: ClipWinding: fix constness
|
2016-09-10 15:32:50 -06:00 |
Eric Wasylishen
|
ad0942ad24
|
light: testshadows.map: add some skip textures
|
2016-09-10 13:49:38 -06:00 |
Eric Wasylishen
|
d7ba0330a6
|
light: restore "unmatched target" warning
|
2016-09-10 10:10:06 -06:00 |
Eric Wasylishen
|
bcddaf10dd
|
docs: update
|
2016-09-09 13:30:36 -06:00 |
Eric Wasylishen
|
687b1b20f6
|
light: bsp backend: fix and simplify Face_Contents to only look at texture names. it was broken when -splitspecial was used.
|
2016-09-09 13:04:53 -06:00 |
Eric Wasylishen
|
2bab853ca4
|
light: don't add styled lights to bounce calculation
|
2016-09-08 23:53:15 -06:00 |
Eric Wasylishen
|
eaec325ab4
|
light: bounce: area-weight the patches when averaging them to get the light to emit for a face
|
2016-09-08 21:39:37 -06:00 |
Eric Wasylishen
|
ce812f5570
|
light: apply AO when calculating how much light a surface reflects (wrong? but matches 0.15.5)
|
2016-09-08 21:07:29 -06:00 |
Eric Wasylishen
|
08e1c1ce69
|
light: apply dirt to regular lights
|
2016-09-08 17:24:28 -06:00 |
Eric Wasylishen
|
18797f81c0
|
light: fix for -dirt not implying -minlight_dirt, -sunlight_dirt, -sunlight2_dirt
|
2016-09-08 15:21:18 -06:00 |
Eric Wasylishen
|
f4287e07e9
|
update changelog
|
2016-09-07 23:43:51 -06:00 |
Eric Wasylishen
|
ee3452dbdc
|
build: use v120_xp toolset (VS 2013 targetting Windows XP)
|
2016-09-07 23:16:42 -06:00 |
Eric Wasylishen
|
272995765b
|
light: warn about empty key/values
|
2016-09-07 20:32:59 -06:00 |
Eric Wasylishen
|
f6c4309f6d
|
light: catch std::stof parse exceptions and log a warning
|
2016-09-07 20:04:53 -06:00 |
Eric Wasylishen
|
66184a3849
|
light: CalcualateVertexNormals: skip degenerate faces
|
2016-09-07 15:12:19 -06:00 |
Eric Wasylishen
|
44d6828049
|
light: add bounce test map
|
2016-09-07 12:50:17 -06:00 |
Eric Wasylishen
|
711e237ad0
|
light: new calcpointstest.map
|
2016-09-07 12:05:56 -06:00 |
Eric Wasylishen
|
df8f8b264b
|
light: update embree to 2.11.0
|
2016-09-02 15:03:32 -06:00 |
Eric Wasylishen
|
9111d8df9f
|
light: log embree version
|
2016-09-02 14:59:43 -06:00 |
Eric Wasylishen
|
1be9448f6a
|
light: add testmap for current surface light issues (hotspots, brightness in more subdivided areas)
|
2016-08-26 23:29:50 -06:00 |
Eric Wasylishen
|
c9a0f50985
|
appveyor.yml: add extra line break.. appveyor is combining the two msbuild lines for some reason
|
2016-08-15 23:34:49 -06:00 |