POV-Ray : Newsgroups : povray.text.scene-files : A readable version of my interesting pigment Server Time
25 Dec 2024 00:01:59 EST (-0500)
  A readable version of my interesting pigment (Message 1 to 4 of 4)  
From: Ron Parker
Subject: A readable version of my interesting pigment
Date: 15 Oct 1999 18:02:45
Message: <slrn80f8qe.v8.parkerr@ron.gwmicro.com>
Response to my "An Interesting Pigment" post was so good, I decided to 
do it completely differently and more readably.  Here's the result.
As a bonus, change the definition of A from 0 to 120 to get the effect
Rune put on the floor of his latest illusion pic in .binaries.images.

#declare CubeTiles=pigment {
  #local A=0;  // use 120 for the hexagonal star effect
  #local Z=sqrt(3)/2*z+x;
  #local C=array[3]{
    pigment{color Gray30} 
    pigment{color Gray70} 
    pigment{color White}
  }
  #local B=pigment{
    radial 
    pigment_map{
      #local i=0; 
      #while(i<3)
        [i/3 C[i]][(i+1)/3 C[i]]
        #local i=i+1;
      #end
    }
  }
  hexagon               
  pigment {B 
    translate Z 
    warp {repeat 3*x} 
    warp {repeat 1.5*sqrt(3)*z offset 1.5*x} 
    translate -Z
  }
  pigment {B 
    translate Z 
    warp {repeat 3*x} 
    warp {repeat 1.5*sqrt(3)*z offset 1.5*x} 
    translate -Z 
    rotate -A*y 
    translate <1.5,0,-sqrt(3)/2>
  }
  pigment {B 
    translate Z 
    warp {repeat 3*x} 
    warp {repeat 1.5*sqrt(3)*z offset 1.5*x} 
    translate -Z 
    rotate A*y 
    translate <1.5,0,sqrt(3)/2>
  }
}


Post a reply to this message

From: Ken
Subject: Re: A readable version of my interesting pigment
Date: 15 Oct 1999 19:33:00
Message: <3807B960.4DD71902@pacbell.net>
Ron Parker wrote:
> 
> Response to my "An Interesting Pigment" post was so good, I decided to
> do it completely differently and more readably.  Here's the result.
> As a bonus, change the definition of A from 0 to 120 to get the effect
> Rune put on the floor of his latest illusion pic in .binaries.images.

No macro control ? It's pretty but not very useful without a macro or two.

;^ }

-- 
Ken Tyler -  1100+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

From: Alberto
Subject: Re: A readable version of my interesting pigment
Date: 19 Oct 1999 14:32:51
Message: <380CB9C1.9D69C814@ma.usb.ve>
Very nice pigment. Other  interesting settings are A = 60,240,300.

Alberto


Post a reply to this message

From: Ron Parker
Subject: Re: A readable version of my interesting pigment
Date: 19 Oct 1999 14:41:33
Message: <slrn80per3.v8.parkerr@ron.gwmicro.com>
On Tue, 19 Oct 1999 14:34:58 -0400, Alberto wrote:
>Very nice pigment. Other  interesting settings are A = 60,240,300.

180 is rather interesting, too.  240 is kinda boring; it looks just like
hexagon.


Post a reply to this message

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