[Bf-committers] Fractal Subdivide Modification
Kenneth Strom
the_one_relic at yahoo.com
Tue Oct 12 08:26:14 CEST 2004
The blender fractal subdiv always went in one
direction due to always getting negative results.
This switch makes it go in both positive and negative
directions. This creates a much nicer effect instead
of everything skewed to one direction.
I have posted a good example of the differences...
http://blender.sixmonkeys.geek.nz/view_photo.php?set_albumName=Relic&id=modtest
The left is the original the right is the modified.
Ken.
[Relic]
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com
-------------- next part --------------
Index: editmesh_tools.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/src/editmesh_tools.c,v
retrieving revision 1.9
diff -u -b -r1.9 editmesh_tools.c
--- editmesh_tools.c 9 Oct 2004 20:49:55 -0000 1.9
+++ editmesh_tools.c 12 Oct 2004 06:14:46 -0000
@@ -1430,9 +1430,9 @@
}
else if(rad< 0.0) { /* fractal subdivide */
fac= rad* VecLenf(eed->v1->co, eed->v2->co);
- vec1[0]= fac*BLI_drand();
- vec1[1]= fac*BLI_drand();
- vec1[2]= fac*BLI_drand();
+ vec1[0]= fac*(0.5-BLI_drand());
+ vec1[1]= fac*(0.5-BLI_drand());
+ vec1[2]= fac*(0.5-BLI_drand());
VecAddf(vec, vec, vec1);
}
More information about the Bf-committers
mailing list