POV-Ray : Newsgroups : povray.binaries.animations : New Technique? : Re: New Technique? Server Time
20 Jul 2024 11:22:19 EDT (-0400)
  Re: New Technique?  
From: Michael Sobers
Date: 26 Nov 2000 20:53:55
Message: <3a21beb3@news.povray.org>
"Ken Cecka" <cec### [at] homecom> wrote in message
news:3a1d5ef9@news.povray.org...
> I remember a discussion of this back not long after pov 3.0 came out.  I
> think the idea was to extract frames from your animation to embed and
> number them in sequence, then use pov script to build the filename of the
> image to use for your image_map based on the value of clock.
>
> What was your approach?
>
> Ken
>
Here's the code:

#declare screen = concat("filename",str(frame,-3,0),".png")

where "frame" is a counter tied to the clock variable so that it increments
once for each frame rendered.  This gives "screen" the value
"fliename###.png" where the ### is incremented each frame.  The -3,0 forces
"screen" to have three numbers (and no decimal places).  You can use any
sequence of frames with any filetype POV recognizes. Now if you can only
finde some sequentially-numbered files :) you'll be all set.

Then:

pigment { image_map { png screen }
     translate <width/2, -height/2, 0>
}

so the image "screen" is mapped to the TV screen (width and height are
variables in my TV macro).

That's it!

- Mike


Post a reply to this message

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