POV-Ray : Newsgroups : povray.animations : x, y, z -rotating objects : Re: x, y, z -rotating objects Server Time
27 Sep 2024 18:26:20 EDT (-0400)
  Re: x, y, z -rotating objects  
From: MatrixFrog
Date: 6 Jul 2005 05:35:00
Message: <web.42cba4e7f3a8734fc62e6bcb0@news.povray.org>
The #range thing above is probably fine, but here's what I would do:

#if (clock<0.33)
#declare Rotation = x*360*3
#end

#if (0.33<clock<0.66)
#declare Rotation = y*360*3
#end

#if (clock>0.66)
#declare Rotation = z*360*3
#end

I didn't test that or check through it really carefully, so there might be a
mistake or two, but you get the idea. You might want to test at just 3 or 4
frames for each rotation, so like 9 or 12 total frames.


Post a reply to this message

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