POV-Ray : Newsgroups : povray.binaries.animations : Sierpinsky changing ... Server Time
27 Jun 2024 17:30:01 EDT (-0400)
  Sierpinsky changing ... (Message 1 to 10 of 11)  
Goto Latest 10 Messages Next 1 Messages >>>
From: Karl Anders
Subject: Sierpinsky changing ...
Date: 21 Feb 2007 03:15:08
Message: <web.45dbfe304826d74569322de90@news.povray.org>
Hi people,

after some playing around with simple puppets (see all those "pigs" here and
in p.b.i. ) I revisited the realm of fractals. Here the Sierpinsky triangle
is rotating through disconnected stages into something vaguely resembling a
snowflake - though NOT Koch's snowflake, obviously. I don't know what the
final fractal is called - searching the net for "Sierpinsky" gives too many
hits :-)

I apologize for the quality - fractals don't compress so well ...

comments welcome (or else I woudn't post it here)

Karl


Post a reply to this message


Attachments:
Download 'sierpins.mpg' (593 KB)

From: Thibaut Jonckheere
Subject: Re: Sierpinsky changing ...
Date: 21 Feb 2007 03:56:57
Message: <45dc0959$1@news.povray.org>

> Hi people,
> 
> after some playing around with simple puppets (see all those "pigs" here and
> in p.b.i. ) I revisited the realm of fractals. Here the Sierpinsky triangle
> is rotating through disconnected stages into something vaguely resembling a
> snowflake - though NOT Koch's snowflake, obviously. I don't know what the
> final fractal is called - searching the net for "Sierpinsky" gives too many
> hits :-)
> 
> I apologize for the quality - fractals don't compress so well ...
> 
> comments welcome (or else I woudn't post it here)
> 
> Karl

Nice ! But really too short or too quick: one has barely the time to see 
what happens. Can you make a slower version ?


tuabiht


Post a reply to this message

From: Karl Anders
Subject: Re: Sierpinsky changing ...
Date: 21 Feb 2007 07:05:00
Message: <web.45dc34122d375289dca0ceae0@news.povray.org>
Thibaut Jonckheere <tua### [at] MAPSONyahoofr> wrote:
>
> Nice ! But really too short or too quick: one has barely the time to see
> what happens. Can you make a slower version ?
>
>
> tuabiht

Hello Thibaut,
Thank you. My main interest in this thing is the final shape. Since this
thing parses awfully slowly on my old Mac (about two minutes per frame) and
I would like go back to different things in my sparse spare time, I propose
you do that for yourself. Since the source is quite short, I hope it will
be ok  if I append it here:

//----- cut here for sierpinsky.pov

//#include "VectorStuff.inc"
#include "transforms.inc"

#macro UnitV_XY( Phi ) // from my VectorStuff.inc; UnitVector in xy-plane
   < cos( radians( Phi ) ), sin( radians( Phi ) ), 0  >
#end //#macro UnitV_XY( phi )

#declare TransForms = array[3] ;

#declare cc = 0;
#while( cc < 3 )
 #declare TransForms[cc] =
 transform{
  scale 0.5
  rotate 60*clock*z
// angles outside 0..60 give same pictures, partially mirrored
  translate UnitV_XY( cc*120-30 )
 }
 #declare cc = cc+1;
#end // #while( cc < 3 )

#declare ptnum = 20000; // more would be better, but traces SLOWLY
#declare skip = 10;
#declare ptnum = ptnum+skip;
#declare Points = array[ptnum];

#declare MyStream = seed( 0 );

#declare cc = 0;
#declare Points[cc] = < 0,0,0 >;
#declare Points[cc] = < 2*rand(MyStream)-1, 2*rand(MyStream)-1, 0 >;

#while( cc < skip-1 )
   #declare cc = cc+1;
   #declare Points[cc] =
      vtransform( Points[cc-1], TransForms[3*rand(MyStream)] );
#end //#while( cc < skip-1 )

#while( cc < ptnum-1 )
   #declare cc = cc+1;
   #declare Points[cc] =
      vtransform( Points[cc-1], TransForms[3*rand(MyStream)] );
   sphere{ Points[cc]+4*z 0.005 pigment{ color 0 } }
#end //#while( cc < ptnum-1 )

camera {
 up y right x*image_width/image_height
}

background{ color 1 }

//----- end of sierpinsky.pov

some comments:
- "ptnum" gives the number of spheres finally traced; 20000 is MINIMUM !
- render with square picture and lowest quality settings; the spheres are
used as pixels, no reflections or shading required
- make an animation; clock going from 0...1 as usual, with as many pictures
as you want (or care to watch tracing)

This is just a quick hack, you probably don't need to put all the points
into an array, but I'm not going to work on it for the time being because
of other projects I'm dreaming of ...

Thank you for your comments

Karl


Post a reply to this message

From: Thibaut Jonckheere
Subject: Re: Sierpinsky changing ...
Date: 21 Feb 2007 15:00:27
Message: <45dca4db@news.povray.org>
> Thank you. My main interest in this thing is the final shape. Since this
> thing parses awfully slowly on my old Mac (about two minutes per frame) and
> I would like go back to different things in my sparse spare time, I propose
> you do that for yourself. Since the source is quite short, I hope it will

ok, I' ll dot it. With a recent machine, parse/render is not really a 
problem (for me, with ptnum=100000, parse time is 32 sec. and render 
time is 5 sec. at 800x800)

I will post the animation as soon as possible


Thibaut


Post a reply to this message

From: Karl Anders
Subject: Re: Sierpinsky changing ...
Date: 22 Feb 2007 11:50:00
Message: <web.45ddc97f2d375289e4daf5f50@news.povray.org>
Thibaut Jonckheere <tua### [at] MAPSONyahoofr> wrote:
> ok, I' ll dot it. With a recent machine, parse/render is not really a
> problem (for me, with ptnum=100000, parse time is 32 sec. and render
> time is 5 sec. at 800x800)
>
> I will post the animation as soon as possible
>
>
> Thibaut

Sounds like a plan :-)
I have about 30 secs parse time with ptnum=5000 (five thousand), so you may
understand why I don't want to detail that any further. There is always the
possibility of rendering over night, of course ...

I'm looking forward to a refined version of this.

Greetings
Karl


Post a reply to this message

From: Thibaut Jonckheere
Subject: Re: Sierpinsky changing ...
Date: 25 Feb 2007 05:58:25
Message: <45e16bd1@news.povray.org>

> Thibaut Jonckheere <tua### [at] MAPSONyahoofr> wrote:
>> ok, I' ll dot it. With a recent machine, parse/render is not really a
>> problem (for me, with ptnum=100000, parse time is 32 sec. and render
>> time is 5 sec. at 800x800)
>>
>> I will post the animation as soon as possible
>>
>

The anim should now be visible at :
http://big.chez-alice.fr/tuabiht/sierpinski01.gif

(animated gif, size ~ 1.8 Mo)

To see more clearly the inital and final states, I have put small pauses 
at these points.


tuabiht


Post a reply to this message

From: Karl Anders
Subject: Re: Sierpinsky changing ...
Date: 25 Feb 2007 10:30:00
Message: <web.45e1aa602d375289e755c5e50@news.povray.org>
Thibaut Jonckheere <tua### [at] MAPSONyahoofr> wrote:
>
> The anim should now be visible at :
> http://big.chez-alice.fr/tuabiht/sierpinski01.gif
>
> (animated gif, size ~ 1.8 Mo)
>
> To see more clearly the inital and final states, I have put small pauses
> at these points.
>
>
> tuabiht

Looks great - and BIG :-)
Thank you for your efforts and your cpu time.
I am still searching for the name of the snowflake-like thingie which is
(not quite) in the middle of your animation and at the end of mine. I can't
imagine that something so regular has not been found before. Until now I
have not found another picture of it on the net, but the search continues
....

Greetings
Karl


Post a reply to this message

From: Thibaut Jonckheere
Subject: Re: Sierpinsky changing ...
Date: 25 Feb 2007 15:24:34
Message: <45e1f082$1@news.povray.org>
> Looks great - and BIG :-)
> Thank you for your efforts and your cpu time.

You are welcome. This was very little work in fact (the most difficult 
bit was to put it on the internet :-).

My next plan, which will require more work, is to read and understand 
your code !

Thibaut


Post a reply to this message

From: Karl Anders
Subject: Re: Sierpinsky changing ...
Date: 26 Feb 2007 01:30:01
Message: <web.45e27e2b2d3752891c7e56870@news.povray.org>
Thibaut Jonckheere <tua### [at] MAPSONyahoofr> wrote:
>
> My next plan, which will require more work, is to read and understand
> your code !
>

Hi Thibaut,

I COULD go into lengthy explanations here, but RealLife(TM) is interfering
in form of my little daughter (aged 6), who has caught quite a cold!
But here are some keywords for mathematical background:
"iterated function systems" and "chaos game"; you might have a look at
http://mathworld.wolfram.com/ for some (very short) explanations.

Greetings

Karl


Post a reply to this message

From: Stephen
Subject: Re: Sierpinsky changing ...
Date: 26 Feb 2007 03:20:00
Message: <web.45e297392d375289f1cb1e660@news.povray.org>
Thibaut Jonckheere <tua### [at] MAPSONyahoofr> wrote:

> My next plan, which will require more work, is to read and understand
> your code !
>
> Thibaut

Some people who are interested in Sierpinsky fractals also use Fractint. :-)

http://spanky.triumf.ca/www/fractint/fractint.html


Stephen


Post a reply to this message

Goto Latest 10 Messages Next 1 Messages >>>

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