POV-Ray : Newsgroups : povray.animations : height_field animation : Re: height_field animation Server Time
3 May 2024 08:31:02 EDT (-0400)
  Re: height_field animation  
From: Stephen
Date: 19 Jun 2008 12:41:40
Message: <u13l54lpbfs2iss4ipopprud618lcfolr5@4ax.com>
On Thu, 19 Jun 2008 11:30:15 EDT, "BentLarsen" <nomail@nomail> wrote:

>
>Or is there an easy way by using the clock variable?

Hi Bent,
You need to have your image maps numbered sequentially, tied to the
frame numbers of your animation. Then use frame_number, something like
(Note it is not tested) 


height_field{png  "heightField_1.png"  smooth
             texture{
                pigment{
                        image_map{
                                  png  concat("teture",
str(frame_number,-1,0),".png")
                                 }
                       rotate x*90 // lay X-Y image map down onto X-Z
height
                       }
                    }
             }

You should read the help 3.2.1.7.3  String Functions
To get the correct values for the string padding. 
Also for fault finding add a #debug statement like (Not Tested)

#debug concat("frame_number = ",frame_number, "/t", "Image =
",str("teture", str(frame_number,-1,0),".png"), "/n")

Read 3.2.2.7.1  Text Message Streams

-- 

Regards
     Stephen


Post a reply to this message

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