[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [16259] branches/soc-2008-unclezeiv/source /blender/render/intern/source/lightcuts.c: Indirect lighting: added clamping mechanism for virtual point lights, to reduce artifacts such as random bright spots.

Davide Vercelli davide.vercelli at gmail.com
Tue Aug 26 16:58:34 CEST 2008


Revision: 16259
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=16259
Author:   unclezeiv
Date:     2008-08-26 16:58:33 +0200 (Tue, 26 Aug 2008)

Log Message:
-----------
Indirect lighting: added clamping mechanism for virtual point lights, to reduce artifacts such as random bright spots.

As the code is still relatively untested (and I'm not 100% even sure to have correctly understood the paper on this), I'm also adding a temporary toggle to disable it, in order to easily perform tests and comparisons.

Modified Paths:
--------------
    branches/soc-2008-unclezeiv/source/blender/render/intern/source/lightcuts.c

Modified: branches/soc-2008-unclezeiv/source/blender/render/intern/source/lightcuts.c
===================================================================
--- branches/soc-2008-unclezeiv/source/blender/render/intern/source/lightcuts.c	2008-08-26 12:38:05 UTC (rev 16258)
+++ branches/soc-2008-unclezeiv/source/blender/render/intern/source/lightcuts.c	2008-08-26 14:58:33 UTC (rev 16259)
@@ -1618,6 +1618,9 @@
 		R= *re;
 		R.r.mode&= ~R_LIGHTCUTS;
 	}
+	/* other hack to make shadeSkyView work... */
+	else if (lcd->options & LC_OPT_ENV_LIGHT && re->r.lightcuts_env_map > 0)
+		R= *re;
 	
 	if (lcd->options & LC_OPT_INDIR_MESH) {
 		/* allocate array to hold coordinates for all possible virtual point lights */





More information about the Bf-blender-cvs mailing list