POV-Ray : Newsgroups : povray.binaries.images : Mystery Pigment II : Re: Mystery Pigment II Server Time
18 Aug 2024 22:28:44 EDT (-0400)
  Re: Mystery Pigment II  
From: Anton Sherwood
Date: 15 Apr 2001 03:12:16
Message: <3AD949E7.D563C55C@pobox.com>
> "Bob H." wrote:
> > I refuse to believe this is a 2D object or image_map
> > until you give proof.

If it were 3D, the various corners would not line up so consistently.


Ken wrote:
> #declare MysteryPigmentII=
> pigment{#local C=array[6]{
> 
>      pigment{P1}
>      pigment{P1}
>      pigment{P2}
>      pigment{P2}
>      pigment{P3}
>      pigment{P3}}
> 
> #local T=sqrt(3);#local B=pigment{radial pigment_map{ #local i=0;
> #while(i<6)[i/6 C[i]][(i+1)/6 C[i]]#local i=i+1;#end}}radial
> pigment_map{#local i=0;#while(i<6)#local a=(i+.5)*60*y;#local G=1.5*T;[i/6
> gradient x pigment_map{[1/3 B scale 1/G rotate -a][1/3 B translate vrotate(
> T*x, a)rotate -a scale 1/G]}scale G rotate a][(i+1)/6 gradient x pigment_map{
> [1/3 B scale 1/G rotate -a][1/3 B translate vrotate(T*x,a)rotate -a scale
> 1/G]}scale G rotate a]#local i=i+1;#end}translate x warp{repeat 5*x}warp{
> repeat T*z}scale .5}

Oy.  How can you work with that?!


-- 
Anton Sherwood  --  br0### [at] p0b0xcom  --  http://ogre.nu/


Post a reply to this message

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