POV-Ray : Newsgroups : povray.newusers : Color : Color Server Time
29 Jul 2024 22:31:20 EDT (-0400)
  Color  
From: johnnym
Date: 19 Feb 2005 13:15:01
Message: <web.421780f6a79767eddcf82eb80@news.povray.org>
Can someone tell me why this object doesn't get white,but only black, though
i assigned an rgb <1,1,1> command?
Many thanks!

Willem

#macro etorus(w, h, r) sphere_sweep {

     // The factor by which we need to scale
     // a b_spline to get the right size
     #declare s=1.6;

     b_spline
     7,
     <-w*s,  0,    0>, r
     <   0,  0,  h*s>, r
     < w*s,  0,    0>, r
     <   0,  0, -h*s>, r
     <-w*s,  0,    0>, r
     <   0,  0,  h*s>, r
     < w*s,  0,    0>, r

     // tolerance could be a param if you wanted
     tolerance 0.9

}
#end


object {
 etorus(19, 1*10, .1)

 rgb <1,1,1>
 rotate <0,0,5>

}


Post a reply to this message

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