POV-Ray : Newsgroups : povray.general : math bonehead part 2 : Re: math bonehead part 2 Server Time
5 Aug 2024 10:19:27 EDT (-0400)
  Re: math bonehead part 2  
From: Greg M  Johnson
Date: 11 Oct 2002 15:26:55
Message: <3da725ff$1@news.povray.org>
#declare RADIUS= 2; //or whatever
#declare ROTATION_SPEED= 3; //or whatever
#declare ROLL_VECTOR=<1,0,0>;

sphere {<0,0,0>,RADIUS
 texture{ pigment{bozo}}
 rotate vnormalize(vcross(y,ROLL_VECTOR))*ROTATION_SPEED*clock*360/2/pi
 translate RADIUS*y +RADIUS*ROTATION_SPEED*clock*vnormalize(ROLL_VECTOR)
 }

light_source {
    <2, 10, -23>
    color rgb 1
  }

camera {
   location <1, 0.5, -8>
   look_at <-0,0,0>
   angle 60//60
}


Post a reply to this message

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