POV-Ray : Newsgroups : povray.newusers : Animated image_map? : Re: Animated image_map? Server Time
29 Jul 2024 02:35:03 EDT (-0400)
  Re: Animated image_map?  
From: Trevor G Quayle
Date: 16 Jan 2007 09:35:00
Message: <web.45ace1894c827fcbc150d4c10@news.povray.org>
"Espen" <nomail@nomail> wrote:
> I need to do something like this:
>
>    AnimatedImage = "imagename" + frame_number + ".png"
>
>    texture {
>       pigment { image_map { png Animatedimage } }
>    }
>
> So what I'm trying to do is add an animated texture to my scene.  Can this
> be done with macros or whatever?
>
> TIA
> , Espen

#declare MapName=concat("imagename",str(frame_number,0,0),".png")

Should work.  Make sure frame_number is formatted properly.  Also, the
extension is not explicitly needed, but can be kept if you like it...

-tgq


Post a reply to this message

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