POV-Ray : Newsgroups : povray.binaries.images : some superellipsoids (88k) : Re: some superellipsoids (88k) Server Time
13 Aug 2026 03:02:46 EDT (-0400)
  Re: some superellipsoids (88k)  
From: SomeGuy
Date: 18 Oct 2000 01:26:52
Message: <39EBF4B7.430EA719@earthlink.net>
How do the warps work...
I'm not familiar with displace warp...?

Christoph Hormann wrote:

> ian mcdonald wrote:
> >
> > Nice image, very different but attractive.
>
> Thanks, but different form what ? :-)
>
> > I like the positioning and apparent random nature of the SEs.
> >
> > I would love to see the source for this.
> >
>
> The positioning/randomizing is really not that difficult:
>
> #macro Var_SQ()
> superellipsoid {
>   <rand(RX)*0.99 + 0.01, rand(RY)*0.99 + 0.01>
>   material {
>     M_warped
>     translate <rand(RX), rand(RY), rand(RZ)>*10
>   }
> }
> #end
>
> union {
>   #declare CnY=0;
>   #while (CnY<60)
>     #declare CnX=0;
>     #while (CnX<60)
>       object { Var_SQ() translate <CnX, -CnY-2, -1> }
>       #declare CnX=CnX+2;
>     #end
>     #declare CnY=CnY+2;
>   #end
> }
>
> --
> Christoph Hormann <chr### [at] gmxde>
> Homepage: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

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