|
![](/i/fill.gif) |
Here are two files - fractal engine and sample fractals as macro and declares in
include file and sample file for this engine. Engine should work with POV-Ray
3.1 but to prepare samples I have used some features of MegaPOV.
arrays P1...P9 are sample popular fractals
If you want use this engine use macros KWR_2D or KWR_3D depending on how many
dimensions you want use. This macros have two parameters - array with parameters
for fractal and level of recursion. Be carefull with level od recursion.
You have to declare two macros - Leaf() and Branch() which places your object
into space <0,0,0><1,1,1> and use transform{Transform} to place this leafs and
branches to place calculated by engine. Within this macro you can use declares:
Transform (to place object), Step (to know level of branch - for leafs = 0),
NSteps (level of recursion).
You can write own engines with it to add some random transforms.
If you prepare any interesting fractals with it please send it to me or put it
in povray news.
Any comments ?
--
#macro Sig(A,B,X)_(A,B)_(B,X)_(X,A)#end#macro _(A,B)cylinder{<A.x,A.y,3>,<B.u,
B.v,3>.1,9}#end global_settings{max_trace_level 9}light_source{0 1}camera{up y
*4right-3*x}blob{_(<3,1>,<1,-5>)_(<2,-2>,<4,-2>)Sig(x,<-1,1.5>,<1,3>)_(z-1,z-4
)pigment{rgb 1}}box{-3 3pigment{rgb 0}finish{reflection 1}hollow} // POV-Ray31
Post a reply to this message
Attachments:
Download 'fractal.inc.txt' (5 KB)
Download 'sample.pov.txt' (5 KB)
|
![](/i/fill.gif) |