POV-Ray : Newsgroups : povray.binaries.scene-files : universal fractal macro (images at p.b.i) Server Time
2 Sep 2024 16:19:19 EDT (-0400)
  universal fractal macro (images at p.b.i) (Message 1 to 1 of 1)  
From: Wlodzimierz ABX Skiba
Subject: universal fractal macro (images at p.b.i)
Date: 24 May 2001 12:41:36
Message: <3b0d39c0@news.povray.org>
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)

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.