POV-Ray : Newsgroups : povray.windows : Rendering 20500 POV Files Server Time: 18 Jun 2019 07:29:52 GMT
  Rendering 20500 POV Files (Message 1 to 10 of 15)  
Goto Latest 10 Messages Next 5 Messages >>>
From: Peter
Subject: Rendering 20500 POV Files
Date: 25 Jul 2013 20:05:01
Message: <web.51f184ded8de8676af3d580b0@news.povray.org>
Hi,

  I have 20500 frames written from a molecular dynamics simulation. Is there
anyway to easily render these is batch (I believe the queue will only allow 512
files at the moment). Other than staying up all night and re-filling the queue
when it empties, the only way I can think to do this currently would be to load
up
40 instances of POV ray... each with a full queue and start them
simultaneously!... guessing that's not the best option!

Any suggestions?

Thanks in advance,

Peter


Post a reply to this message

From: B  Gimeno
Subject: Re: Rendering 20500 POV Files
Date: 25 Jul 2013 21:25:00
Message: <web.51f1972722430c8aae2fd8290@news.povray.org>
"Peter" <mur### [at] gmailcom> wrote:

>
> Any suggestions?
>
> Thanks in advance,
>
> Peter

 Write a bat file that you can run from cmd.exe

Use an external text editor or write a macro in povray to generate it as a ascii
text file

B.Gimeno


Post a reply to this message

From: Peter
Subject: Re: Rendering 20500 POV Files
Date: 25 Jul 2013 22:40:01
Message: <web.51f1a82c22430c8aaf3d580b0@news.povray.org>
"B. Gimeno" <nomail@nomail> wrote:
>  Write a bat file that you can run from cmd.exe

Been a while since I've had to use them... didn't even think of using that..
I'll give that a try!

Thanks.

peter


Post a reply to this message

From: Alain
Subject: Re: Rendering 20500 POV Files
Date: 26 Jul 2013 01:16:24
Message: <51f1cde8$1@news.povray.org>
Le 13-07-25 16:04, Peter a écrit :
> Hi,
>
>    I have 20500 frames written from a molecular dynamics simulation. Is there
> anyway to easily render these is batch (I believe the queue will only allow 512
> files at the moment). Other than staying up all night and re-filling the queue
> when it empties, the only way I can think to do this currently would be to load
> up
> 40 instances of POV ray... each with a full queue and start them
> simultaneously!... guessing that's not the best option!
>
> Any suggestions?
>
> Thanks in advance,
>
> Peter
>
>
>

Are your source files ending in sequential numbers?

If so, you can use the internal animation feature to render all your 
frames within a single sequence.

You can have a main .POV file that will #include the relevent data 
according to the frame_number value using some string manipulations. The 
concat(...) and str(...) string functions will greatly help construct 
the needed files names.

#declare IN_File = concat("Mole",str(frame_number, -5, 0), ".inc")
#include IN_File

The "-5" in str mean zero-pading of the value to 5 digits.
The "0" means zero decimal places.

And start the render with +kff 20500 on the command line.

This assume that your molecule are described in files names "Molexxxxx.inx".
Change the name as needed.

You can include files with any extention as long as they are writen 
using the correct POV syntaxe.




Alain


Post a reply to this message

From: Peter
Subject: Re: Rendering 20500 POV Files
Date: 26 Jul 2013 18:30:00
Message: <web.51f2bf1122430c8aaf3d580b0@news.povray.org>
Alain <kua### [at] videotronca> wrote:

> Are your source files ending in sequential numbers?

Yes... they are animate00000.pov - animate20500.pov

> If so, you can use the internal animation feature to render all your
> frames within a single sequence.
>
> You can have a main .POV file that will #include the relevent data
> according to the frame_number value using some string manipulations. The
> concat(...) and str(...) string functions will greatly help construct
> the needed files names.
>
> #declare IN_File = concat("Mole",str(frame_number, -5, 0), ".inc")
> #include IN_File
>
> The "-5" in str mean zero-pading of the value to 5 digits.
> The "0" means zero decimal places.
>
> And start the render with +kff 20500 on the command line.
>
> This assume that your molecule are described in files names "Molexxxxx.inx".
> Change the name as needed.
>
> You can include files with any extention as long as they are writen
> using the correct POV syntaxe.

I have created a POV file with this as its contents (based on your suggestions
above):
#declare IN_File = concat("animate",str(frame_number, -5, 0), ".pov")
#include IN_File

However, when I run from the command line, nothing happens. When I run it using
the GUI I get an error "Parse Error: Cannot open animate00000.pov" .

This would suggest (to me at least) that the animate00000.pov is not readable,
however, I know this isn't the case since I have rendered many of the files
individually and using the queue (and a batch file) and they are fine.

Am i missing something?

Peter


Post a reply to this message

From: Stephen
Subject: Re: Rendering 20500 POV Files
Date: 26 Jul 2013 19:31:54
Message: <51f2ceaa$1@news.povray.org>
On 26/07/2013 7:25 PM, Peter wrote:
> However, when I run from the command line, nothing happens. When I run it using
> the GUI I get an error "Parse Error: Cannot open animate00000.pov" .

A silly question but are your files in the same directory as the master 
file?

This is an example that works for me.

#include concat("f:\\Graphics\\B3D 
Data\\Scenes\\Earth_Inside\\Chain02G1\\Chain02G2Y_",str(mod(frame_number,89),-4,0),".pov")


-- 
Regards
     Stephen


Post a reply to this message

From: Peter
Subject: Re: Rendering 20500 POV Files
Date: 26 Jul 2013 19:55:00
Message: <web.51f2d32b22430c8aaf3d580b0@news.povray.org>
Stephen <mca### [at] aolcom> wrote:
> On 26/07/2013 7:25 PM, Peter wrote:
> > However, when I run from the command line, nothing happens. When I run it using
> > the GUI I get an error "Parse Error: Cannot open animate00000.pov" .
>
> A silly question but are your files in the same directory as the master
> file?

Yes.. they are in the same directory... but I suppose you had to ask that!! :P

> This is an example that works for me.
>
> #include concat("f:\\Graphics\\B3D
>
Data\\Scenes\\Earth_Inside\\Chain02G1\\Chain02G2Y_",str(mod(frame_number,89),-4,0),".pov")
>
>
> --
> Regards
>      Stephen


I'll update my file and give it a try. I have gotten a batch file working, but
the way its set up right now I have POV ray opening, rendering a scene (~1.7
seconds) and closing... then repeating over and over and over again.... besides
the risk of epileptic seizure, it would obviously be faster to either keep one
POV ray open and one after another pass the 20501 files through to be rendered
or to have pov-ray start minimized... at least that way the render time would be
decreased and I wouldn't have windows flashing every 1-2 seconds!


Post a reply to this message

From: Peter
Subject: Re: Rendering 20500 POV Files
Date: 26 Jul 2013 20:00:01
Message: <web.51f2d4a822430c8aaf3d580b0@news.povray.org>
Stephen <mca### [at] aolcom> wrote:
> On 26/07/2013 7:25 PM, Peter wrote:
> > However, when I run from the command line, nothing happens. When I run it using
> > the GUI I get an error "Parse Error: Cannot open animate00000.pov" .
>
> A silly question but are your files in the same directory as the master
> file?
>
> This is an example that works for me.
>
> #include concat("f:\\Graphics\\B3D
>
Data\\Scenes\\Earth_Inside\\Chain02G1\\Chain02G2Y_",str(mod(frame_number,89),-4,0),".pov")
>
>
> --
> Regards
>      Stephen

So... you were right to ask about the files being int he same directory... I
didn't make that stupid mistake, but I realized once I saw your code Chain02G2Y_
(with the _ that my filenames are actually animate.XXXXX.pov not
animateXXXXX.pov!! seems to work now!!

Thanks for all of your help everyone!!


Post a reply to this message

From: Stephen
Subject: Re: Rendering 20500 POV Files
Date: 26 Jul 2013 21:01:13
Message: <51f2e399$1@news.povray.org>
On 26/07/2013 8:57 PM, Peter wrote:
> I
> didn't make that stupid mistake, but I realized once I saw your code Chain02G2Y_
> (with the _ that my filenames are actually animate.XXXXX.pov not
> animateXXXXX.pov!! seems to work now!!

Don't ask me how many times I've made that mistake. :-)

I generally use a #debug to print to screen what the code is writing. 
Good for catching spaces as well.

-- 
Regards
     Stephen


Post a reply to this message

From: Stephen
Subject: Re: Rendering 20500 POV Files
Date: 26 Jul 2013 21:21:48
Message: <51f2e86c$1@news.povray.org>
On 26/07/2013 8:51 PM, Peter wrote:
> I'll update my file and give it a try. I have gotten a batch file working, but
> the way its set up right now I have POV ray opening, rendering a scene (~1.7
> seconds) and closing... then repeating over and over and over again.... besides
> the risk of epileptic seizure, it would obviously be faster to either keep one
> POV ray open and one after another pass the 20501 files through to be rendered
> or to have pov-ray start minimized... at least that way the render time would be
> decreased and I wouldn't have windows flashing every 1-2 seconds!


There is a better way than running the files sequentially. You can use 
the animation feature. Here is a snipit of code from an ini file.

Input_File_Name = animate_.pov
Output_File_Name = animate_
Initial_Frame = 0
Final_Frame = 999999
Subset_Start_Frame = 0
Subset_End_Frame = 20501

  /* I like to use an underscore between the name and the numbers for 
readability. */


"Input_File_Name" calls your PovRay master file (which #includes your 
series of pov files"

"Output_File_Name" is the base name of the rendered files.

"Initial_Frame": Your start frame number. (Keep it 0)

"Final_Frame" : Any number bigger than your largest frame number.

"Subset_Start_Frame": Where you want to start rendering from.

"Subset_End_Frame": Where you want to stop rendering.

You don't need to use an ini file. You can use command line options.

This method works for me.

-- 
Regards
     Stephen


Post a reply to this message

Goto Latest 10 Messages Next 5 Messages >>>

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