POV-Ray : Newsgroups : povray.newusers : ClockAnimation Help: printing sequential numbers : Re: ClockAnimation Help: printing sequential numbers Server Time
5 Sep 2024 08:20:03 EDT (-0400)
  Re: ClockAnimation Help: printing sequential numbers  
From: Chris Colefax
Date: 10 May 2001 09:29:33
Message: <3afa97bd@news.povray.org>
Jong <jjk### [at] mmewhaackr> wrote:
> I am using Chris Colfax's animation patch. I'd like to know how I could
>get the changing values during the animation, for example, rotated angle
>on sequential image.
>I really appreciate the help from POV'ers with my previous similar posting
>a while ago. Since then, however,  I've got not much of improvement in
>programming knowledge of POV.
>If I change the light source angle from 0 to -180 around Z axis, I'd like
>to get or extract the value of the angle for that specific frame, and pass
>the number for text printing on the image.
>For frame 1, the rotated angle value would be 0,  and some middle numbers,
>and then the final
>number -180.
>Are there any specific variable name Chris might have assigned for the
>ClockMod patch I could use?

As Ingo has already replied, the Automatic Clock Modifier includes macros
that let you declare keyframed values, which you can then output to one of
POV-Ray's text streams, to a file, or to a text object in your scene (for a
head-up display, or a label).  One small thing to note is that you can use a
shortcut notation for the declaring, if you enclose the list of values in
round brackets, i.e.:

#declare ChangingAngle = (
    From (0.0, <0,0,0>)
    Using("",1,1,"")
    To(1, <0,0,-180>);

light_source { <-80,0, -50> color rgb<1,1,1>
    rotate ChangingAngle
    }

// Use string functions to output ChangingAngle

This is quicker and easier than rewriting your list of animated values using
the Declare macros.


Post a reply to this message

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