POV-Ray : Newsgroups : moray.win : Actuate.lua plugin, proof of concept (animation) : Re: Actuate.lua plugin Server Time
1 Jun 2024 15:10:59 EDT (-0400)
  Re: Actuate.lua plugin  
From: StephenS
Date: 26 Dec 2003 11:13:17
Message: <3fec5e1d@news.povray.org>
...
> In Moray:
> Code an object or material with the clock value.
...
An example of a material:
From 6.1.3.4.2 Clock Identifiers in the POV-Ray help file
clock_on

#if(clock_on=0)
    //stuff for still image
    #declare myclock=1;
#else
    //some animation
    #declare myclock=clock;
#end
texture
{
   pigment
   {
      color rgb <0.0, 0.0, 1.0*(sin (pi * myclock))>
   }
}

Comments welcome

Stephen


Post a reply to this message

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