[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [17190] branches/sim_physics/source/ blender/render/intern/source: and more debugging
Matt Ebb
matt at mke3.net
Thu Oct 23 03:52:04 CEST 2008
Revision: 17190
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=17190
Author: broken
Date: 2008-10-23 03:52:04 +0200 (Thu, 23 Oct 2008)
Log Message:
-----------
and more debugging
Modified Paths:
--------------
branches/sim_physics/source/blender/render/intern/source/convertblender.c
branches/sim_physics/source/blender/render/intern/source/volumetric.c
Modified: branches/sim_physics/source/blender/render/intern/source/convertblender.c
===================================================================
--- branches/sim_physics/source/blender/render/intern/source/convertblender.c 2008-10-23 01:40:49 UTC (rev 17189)
+++ branches/sim_physics/source/blender/render/intern/source/convertblender.c 2008-10-23 01:52:04 UTC (rev 17190)
@@ -3094,6 +3094,7 @@
do_autosmooth= 1;
if ((ma->material_type == MA_VOLUME) && (ma->vol_shadeflag & MA_VOL_PRECACHESHADING)) {
+ printf("before add_vol_precache \n");
add_vol_precache(re, obr, ma);
}
}
@@ -4927,8 +4928,10 @@
make_sss_tree(re);
if(!re->test_break())
- if(re->r.mode & R_RAYTRACE)
+ if(re->r.mode & R_RAYTRACE) {
+ printf("before volume_precache \n");
volume_precache(re);
+ }
}
if(re->test_break())
Modified: branches/sim_physics/source/blender/render/intern/source/volumetric.c
===================================================================
--- branches/sim_physics/source/blender/render/intern/source/volumetric.c 2008-10-23 01:40:49 UTC (rev 17189)
+++ branches/sim_physics/source/blender/render/intern/source/volumetric.c 2008-10-23 01:52:04 UTC (rev 17190)
@@ -888,11 +888,14 @@
R = *re;
+ if (G.rt==5) printf("before create raytree \n");
/* create a raytree with just the faces of the instanced ObjectRen,
* used for checking if the cached point is inside or outside. */
tree = create_raytree_obi(obi, bbmin, bbmax);
if (!tree) return;
+ if (G.rt==5) printf("after create raytree \n");
+
/* Need a shadeinput to calculate scattering */
memset(&shi, 0, sizeof(ShadeInput));
shi.depth= 1;
@@ -918,6 +921,8 @@
return;
VecMulf(voxel, 1.0f/res);
+ if (G.rt==5) printf("before alloc \n");
+
obi->volume_precache = MEM_callocN(sizeof(float)*res_3*3, "volume light cache");
/* Iterate over the 3d voxel grid, and fill the voxels with scattering information
@@ -986,6 +991,8 @@
ObjectInstanceRen *obi;
VolPrecache *vp;
+ if (G.rt==5) printf("precache obs: %d \n", BLI_countlist(&re->vol_precache_obs));
+
for(vp= re->vol_precache_obs.first; vp; vp= vp->next) {
for(obi= re->instancetable.first; obi; obi= obi->next) {
if (obi->obr == vp->obr)
More information about the Bf-blender-cvs
mailing list