Page MenuHome

hairstrandwidth.patch

File Metadata

Author
jean-michel soler (jms)
Created
Nov 13 2013, 1:15 PM

hairstrandwidth.patch

? source/creator/winbuildinfo.h
? tools/__init__.pyc
Index: source/blender/render/intern/source/convertblender.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/render/intern/source/convertblender.c,v
retrieving revision 1.53
diff -u -r1.53 convertblender.c
--- source/blender/render/intern/source/convertblender.c 14 Jul 2006 13:44:23 -0000 1.53
+++ source/blender/render/intern/source/convertblender.c 17 Aug 2006 23:08:11 -0000
@@ -1173,7 +1173,10 @@
VlakRen *vlr;
float nor[3], cross[3], w, dx, dy, width;
int flag;
-
+ float profondeur, clipsta, clipend ;
+ Camera * camera;
+ float coef,p;
+
VecSubf(nor, vec, vec1);
Normalise(nor); // nor needed as tangent
Crossf(cross, vec, nor);
@@ -1194,10 +1197,18 @@
else fac= ctime;
width= ((1.0f-fac)*ma->strand_sta + (fac)*ma->strand_end)/w;
+
+ camera=re->scene->camera->data;
+ profondeur = camera->clipend ;
+ coef=(profondeur+vec[2])/profondeur;
+ width*=coef*coef*coef ;
+
VecMulf(cross, width);
}
else width= 1.0f;
-
+
+
+
if(ma->mode & MA_TANGENT_STR)
flag= R_SMOOTH|R_NOPUNOFLIP|R_TANGENT;
else

Event Timeline