|
|
arrrhggghhh - you can tell when things have gone to far when ppl are re
creating windows screensavers..
Rick
"Nieminen Juha" <war### [at] sarakerttunencstutfi> wrote in message
news:38b93a68@news.povray.org...
> Since mazes are so popular nowadays, this is one made of tubes. An old
> idea in a bit different form:
>
>
----------------------------------------------------------------------------
----
>
>
> The source code is rather simple:
>
> #declare R=.08;
> #declare Tubes=
> union
> { torus { .25,R }
> torus { .25,R translate x }
> torus { .25,R translate z }
> torus { .5,R translate z }
> torus { .125,R translate <1,0,.625> }
> cylinder { <.5,0,0><.5,0,.5>,R }
> cylinder { <.75,0,1><.75,0,.75>,R }
> torus
> { .125,R clipped_by { box { <-.225,-R-.001,0><0,R+.001,.225> } }
> translate <.625,0,.5> }
> torus
> { .125,R clipped_by { box { <0,-R-.001,-.225><.225,R+.001,0> } }
> translate <.625,0,.75> }
> clipped_by { box { <0,-R-.001,0><1,R+.001,1> } } bounded_by
clipped_by }
> }
>
> union
> { #declare R=seed(0);
> #declare indz=-2;
> #while(indz<14)
> #declare indx=-2;
> #while(indx<12)
> object
> { Tubes translate <-.5,0,-.5> rotate y*90*int(rand(R)*4)
> translate <indx,0,indz> }
> #declare indx=indx+1;
> #end
> #declare indz=indz+1;
> #end
> pigment { rgb x+y/2 } finish { specular .5 }
> }
>
> camera { location <-2,1.5,-3> look_at 0 angle 45 }
> light_source { <20,25,-10> 1 }
>
>
> --
> main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
> ):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
|