POV-Ray : Newsgroups : povray.animations : x, y, z -rotating objects : Re: x, y, z -rotating objects Server Time
27 Sep 2024 18:16:59 EDT (-0400)
  Re: x, y, z -rotating objects  
From: Warp
Date: 12 Aug 2004 12:51:59
Message: <411ba02f@news.povray.org>
sHURAKAI <nomail@nomail> wrote:
> Hi, i'm new in this buisness and have a question about the animations.
> I need to get my object rotating, but in a special way : from


> z-axis.
> Is it possible in an easy way ? Somehow i don't understand how this
> clock-thing works.

  I don't really understand what's so complicated about it.

  This is one way of doing it:

#switch(clock)
  #range(0, 1/3) rotate x*360*clock*3 #break
  #range(1/3, 2/3) rotate y*360*(clock-1/3)*3 #break
  #range(2/3, 1) rotate z*360*(clock-2/3)*3 #break
#end

-- 
plane{-x+y,-1pigment{bozo color_map{[0rgb x][1rgb x+y]}turbulence 1}}
sphere{0,2pigment{rgbt 1}interior{media{emission 1density{spherical
density_map{[0rgb 0][.5rgb<1,.5>][1rgb 1]}turbulence.9}}}scale
<1,1,3>hollow}text{ttf"timrom""Warp".1,0translate<-1,-.1,2>}//  - Warp -


Post a reply to this message

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