POV-Ray : Newsgroups : povray.newusers : Animation : Re: Animation Server Time
4 Nov 2024 23:18:11 EST (-0500)
  Re: Animation  
From: Steve
Date: 5 Aug 2001 08:47:58
Message: <slrn9mqfs9.nt0.steve@zero-pps.localdomain>
On Sun, 5 Aug 2001 02:32:10 -0500, Bob H. wrote:
>"Renato Oliveira" <war### [at] bolcombr> wrote in message
>news:3b6cc6af@news.povray.org...
>>
>> Bob H. <omn### [at] msncom>
>> > That sort of tumbles the box primitive in all 3 axes, or you could
>choose
>> > one as in clock*360*y.  The 360 is degrees and for a full rotation.
>>
>> And if I want to make the cube starts rotating only in the frame 3, for
>> example what should I do?

>Clock=FrameThree/TotalFrameCount

Say I want something to start moving half way through the animation, 
I tend to do something like:

object{
       Strobe
       #if(clock>0.5)        
          rotate y*clock*135
          rotate x*clock*270
        #end
        }

And here's how I animated the Strobe that's on my gallery page,
I havn't uploaded the animation as I havn't got round to converting it
to mpeg yet. 

object{
       Strobe
       #if(clock<=0.333)        
          rotate y*clock*135
          rotate x*clock*270
        #end
          
        #if(clock>0.333 & clock<=0.666)        
           rotate y*clock*135
           rotate x*90
           rotate y*(clock-0.333)*270
        #end
           
        #if(clock>0.666)        
           rotate y*clock*135
           rotate x*90
           rotate y*90
           rotate z*(clock-0.666)*270
        #end

        translate<0,5,10>       
        photons{
                target 0.75
                refraction off
                reflection on
               }            
      }         
 
I wrote this a few years ago so the photon code is probably out of
date.  Hope some of that is useful. 

--
Cheers
Steve              email mailto:ste### [at] zeroppsuklinuxnet

%HAV-A-NICEDAY Error not enough coffee  0 pps. 

web http://www.zeropps.uklinux.net/

or  http://start.at/zero-pps

  1:30pm  up 22 days, 15:33,  2 users,  load average: 1.03, 1.02, 1.00


Post a reply to this message

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