POV-Ray : Newsgroups : povray.binaries.images : some superellipsoids (88k) : Re: some superellipsoids (88k) Server Time
19 Aug 2024 20:15:01 EDT (-0400)
  Re: some superellipsoids (88k)  
From: Christoph Hormann
Date: 17 Oct 2000 12:16:49
Message: <39EC7B72.83C0A4C1@schunter.etc.tu-bs.de>
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.