View Full Version : ZScript: Sierpinski Triangle
Sierpinski Triangle
http://www2.zbrushcentral.com/zbc_uploads/user_image-1035140244ryl.gif
The Sierpinski Triangle is an interesting fractal, as you can see above, it is made of many triangles within triangles.
The script allows you to create your own inside ZBrush.
Download the ZScript: Sierpinksi Triangle (http://www2.zbrushcentral.com/zbc_uploads/user_file-1035140269puq.txt)
Have fun! :)
You go, boy! You are a math whiz? I was pretty adept in college, but now I am limited (by my job) to adding and subtracting, with an occasional formula used in spreadsheets or programming. I'm going to use this for some backgrounds and such. Thanks for the script.
Math was actually not much of a worry. :) The most complicated thing in here is just (x1+x2)/2,(y1+y2)/2 for finding the middle of the points. ;) It's much less complicated than the Mandelbrot script I did, and I still don't undersatand the math for that! :D
Thanks for giving this a try! :)
Fouad B.
10-20-02, 03:07 PM
hey great tool for making some textures !!
thx a lot :tu:
Frenchy Pilou
10-21-02, 12:05 AM
We are waiting for the snow flake :) http://snowcover.gsfc.nasa.gov/about.html
Pilou
A snowflake might be on the way Frenchy! If this is modified to form the Serpinski Hexagon then the inside edge is that famous snowflake fractal! Fractals are fascinating, aren't they? :)
Frenchy Pilou
10-21-02, 07:22 AM
Sure, and remix up to date by the little frenchy "Benoit" (Mandelbrot) ;)
I am a fan too (fractals) :) It's was my first programm on a Zx80 or an Amstrad computer i don't remember :)
If you want a "pseudo code" for Set of Mandelbrot don't hesitate :)
Nostalgy :)
A very good film of Tarkovski too :) "Nostalgia"
Pilou
Ps Technical question
Programming a such prog in "ZBrush script" must have a same speed than an "interpretor language" as Basic ?
I don't want reprogramming script in Zbrush because I want sleep the night :)
Flycatcher
10-21-02, 06:02 PM
Nice one, Muvlo. :tu: :tu:
And I agree with your point about the maths. So long as you can read the formulae and implement them, understanding the underlying principles is not a major barrier to programming fractals. I did a lot of these in C a few years ago.
A book I found particularly helpful was "Symmetry in Chaos" by Michael Field and Martin Golubitsky (Oxford University Press, 1992).
It includes an appendix giving Basic programs for all the major algorithms included in the text. I put these all together in a C program with a few derivative variations and some alternative colour-mapping algorithms of my own devising. Worked quite well - in fact better than a shareware version of the same programs I found on the web a year or so ago. Some of them would grind awfully slowly in ZScript though - hence my choice of C rather than a dialect of Basic, which would have been an easier translation.
You're not kidding about speed, Flycatcher. What my Mandelbrot script took several hours to do VB did in a couple minutes! :)
Frenchy Pilou
10-22-02, 01:43 AM
For the lovers of fractal, there a lot of specialized programms : the pricipal are here :) http://www.fractalus.com/ifl/create.htm
and fractalus.com is a great site for the insomniac :)
Have happy fractal surfing :cool:
Pilou
Powered by vBulletin® Version 4.1.11 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.