POV-Ray : Newsgroups : povray.animations : Step_Frame command???? : Re: Step_Frame command???? Server Time
4 May 2024 00:48:23 EDT (-0400)
  Re: Step_Frame command????  
From: Inquisitor
Date: 16 Jul 2009 14:10:01
Message: <web.4a5f6ce8b78569e182abe670@news.povray.org>




------------------------ Begin of  ANIMATION.INI ---------------------------
Input_File_Name=Batch.pov

Initial_Frame = 0
Final_Frame   = 100
Initial_Clock = 0
Final_Clock   = 100
------------------------ End of  ANIMATION.INI ---------------------------


equal 0, Initial_Clock must equal 0 and Final_Frame must equal Final_Clock.


batch is one instance of POV-Ray running the full ini file.  Typically, if

POV-Ray per CPU core that you have available on your system.  You lucky ones

separate directories.

------------------------ Begin of  BATCH.POV ---------------------------
// Notes:
// (1) Number of digits needed for Final_Frame.  2 if 10-99, 3 if 100-999...
#declare digitCnt = 3;
// (2) File naming assumes that total lengh of film is 9999 seconds or less.
// (3) Seconds between frames for final product.
#declare minStep = 1 / 15;

// (4) Initial time to start "Job"
#declare timeStart = 0 * minStep;           // <------ Change This!
// (5) Seconds between frames for this ini file "Job".
#declare timeStep = 15 * minStep;           // <------ Change This!

// Don't mess with.
#declare time = timeStart + clock * timeStep;

#fopen file "Rename.bat" append
#write (file,
    concat("'  Frame ", str(clock, 5, 0), " is at ", str(time, 5, 5), "
seconds\n")
    concat("rename Batch", str(clock, -digitCnt, 0), ".bmp ")
    concat("Frame", str(int(time), -4, 0), "-",
        str(mod(time / minStep, 1 / minStep), -2, 0), ".bmp\n"))
#fclose file


------------------------ End of  BATCH.POV ---------------------------



#declare digitCnt = 32;


them to 1000 and over change to 4.



#declare minStep = 1 / 15;





#declare timeStart = 0 * minStep;
#declare timeStep = 30 * minStep;

Change every instance of "clock" in your pov scene file to "time" and you're
good to go.  Each batch will create 100 bitmaps (in this example) and a batch
file (Rename.bat) that will rename the POV-Ray images to a naming convention
based on the actual seconds of the frame.  That way the images can all be
dropped in a common folder and will order by their time in the film and thus
make life easier when combining into the video.

Good luck.


Post a reply to this message

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