POV-Ray : Newsgroups : povray.beta-test : animation with 2-pass radiosity scenes : Re: animation with 2-pass radiosity scenes Server Time
16 May 2024 04:32:22 EDT (-0400)
  Re: animation with 2-pass radiosity scenes  
From: Samuel Benge
Date: 1 Nov 2012 12:45:01
Message: <web.5092a662675370dff1c09bb60@news.povray.org>
"Mark" <nomail@nomail> wrote:
> Hi all.
>
> I know how to make a run of frames for animation, using the clock variable, etc.
>
> The 3.7 beta has taken away the feature of being able to specify the filename
> for saving the radiosity data, and actually saving it, from within the .pov file
> itself. We must now do this in the .INI file. Ditto for loading radiosity data
> in the second pass of each frame. For single scenes, this is not a problem, but
> for multiple frames in an animation, how to you specify a filename that has the
> frame number?  E.g frame00.rad, frame01.rad, frame02.rad, etc.
>
> Many thanks in advance,
>
> Mark.

You'll probably need to re#write the .ini file at each frame. The following code
will automatically produce the correct file name (starting at 02 for your
situation), based on the total number of frames and current frame number:

#declare FileName_ = "somename"

#declare FileName =
 concat(
  FileName_,
  str(frame_number+1, -(log(final_frame)/log(10)+1), 0),
  ".rad"
 );

You'll need an initial .ini file to start with, of course.

If you need more assistance, just holler!

Sam


Post a reply to this message

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