POV-Ray : Newsgroups : povray.binaries.images : Two torii: parametric texture problem? : Two torii: parametric texture problem? Server Time
14 Aug 2024 20:18:40 EDT (-0400)
  Two torii: parametric texture problem?  
From: Greg M  Johnson
Date: 10 Sep 2002 14:07:36
Message: <3d7e34e8$1@news.povray.org>
light_source{<0,100,-50> color rgb 10}
background{blue 1}
#declare r0=2;
#declare r1=1;


#declare AMBIENT_VARIABLE=0;
#while(AMBIENT_VARIABLE<1.1)

parametric {
   function { cos(u)*(r0+r1*cos(v)) }
   function { sin(u)*(r0+r1*cos(v)) }
   function { r1*sin(v) }
   <0,0>, <2*pi,pi>
   contained_by { sphere{0, 4.1} }
   max_gradient .14
   accuracy 0.001  //  0.0001
   precompute 10 x,y,z
   texture{pigment {rgb 1}
   finish{ambient AMBIENT_VARIABLE}
   }
   translate 12*z+x*(-4+8*AMBIENT_VARIABLE)
}


#declare AMBIENT_VARIABLE=AMBIENT_VARIABLE+1;
#end


Post a reply to this message


Attachments:
Download 'torri.JPG' (5 KB)

Preview of image 'torri.JPG'
torri.JPG


 

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