POV-Ray : Newsgroups : povray.newusers : #declare/Object coloring question : #declare/Object coloring question Server Time
4 Nov 2024 13:00:06 EST (-0500)
  #declare/Object coloring question  
From: Brent G
Date: 17 Sep 2003 14:54:17
Message: <3f68add9$1@news.povray.org>
Here's what I have:
//start
#declare MyTorus = union {
         #while (I<N)
                 torus {2,0.1 rotate <90,0,0> rotate<0, I*360/N,0>}
                 #declare I=I+1;
         #end
         light_source{<0,1,1> rgb <1,0.75,0>}
         texture {
                 pigment {
                         color rgb <0.8,0.8,1.0>
                 }
                 finish{
                         diffuse 0.3
                         ambient 0.0
                         specular 0.6
                         reflection {
                                 0.8
                                 metallic
                         }
                         conserve_energy
                 }
         }
}

object{ MyTorus scale<.5,.5,.5> translate<0,1.25,0> }
//end


Is there anyway to chage the MyTorus (yes almost directly from the 
examples :)) to allow me to specify what color I want the lightsource in 
the object declaration?


Post a reply to this message

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