POV-Ray : Newsgroups : povray.newusers : Multiple pov ray files : Re: Multiple pov ray files Server Time
29 Jul 2024 02:21:24 EDT (-0400)
  Re: Multiple pov ray files  
From: Warp
Date: 21 Nov 2006 05:49:40
Message: <4562d9c3@news.povray.org>
sitha <nsi### [at] excitecom> wrote:
> I am using the pov-ray to visualize building's displacement during
> earthquake. Now I created houndreds of POV file to create a video clip. Pls
> tell me how to run automatically all pov files in pov ray to create bitmap
> files.

  If your pov files are of the form "basename<number>.pov", then one
solution is to create a master pov file which uses 'frame_number' to create
a filename and then #include that file.
  Something along the lines of (untested code):

#include concat("basename", str(frame_number, -3, 0), ".pov")

  (That's everything that needs to be in that pov file.)
  It assumes that the files are named "basename001.pov", "basename002.pov"
and so on. Modify the parameters above if it's different in your case.

  You can then just run that master pov file using the command-line
parameter +kff200 (assuming there are 200 pov files to render; modify
the number as necessary). If you are using the Windows version of POV-Ray,
you can write that parameter in the command-line textfield at the top of
the window (at the right of the resolution selection menu).

-- 
                                                          - Warp


Post a reply to this message

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