POV-Ray : Newsgroups : povray.general : vrotate implementation? : Re: vrotate implementation? Server Time
14 Aug 2024 01:21:59 EDT (-0400)
  Re: vrotate implementation?  
From: Thomas Willhalm
Date: 28 Apr 1998 03:24:23
Message: <qqm67jul87s.fsf@uni-konstanz.de>
Jason Foster aka Guido <anc### [at] wavetechnet> writes:
> 
> Does anyone know of a simple or could give me a simple example of
> rotating lets say a sphere around a point using vrotate? 

Here it is:
light_source { <10,10,10> color 1 }
camera { location <0,5,5> look_at <1,1,1> }
plane { y, 0 pigment { checker rgb <0,1,0>, rgb <1,1,1> }}
#declare deg =0
#while (deg<360)
  sphere { <1,1,1>+vrotate(<1,0,0>,deg*y), 0.3 pigment { rgb <1,0,0> } }
  #declare deg = deg +40
#end

I hope this helps.
ThW

-- 
Tho### [at] uni-konstanzde
http://www.informatik.uni-konstanz.de/~willhalm/
Tschieses lavs ju


Post a reply to this message

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