POV-Ray : Newsgroups : povray.unix : Batch rendering. Server Time
22 Dec 2024 14:07:13 EST (-0500)
  Batch rendering. (Message 1 to 7 of 7)  
From: Greg M  Johnson
Subject: Batch rendering.
Date: 11 Nov 2005 22:41:20
Message: <43756460@news.povray.org>
One cooler features of the windoze app was the queue-- you could render a
big slew of files at once.  I think for the moment I'm going to be using
the command version from apt-get, and that's one thing i miss.  

Any tips on approximating that feature?


Post a reply to this message

From: Mike Kost
Subject: Re: Batch rendering.
Date: 14 Nov 2005 13:22:38
Message: <4378d5ee@news.povray.org>
Greg M. Johnson wrote:

> One cooler features of the windoze app was the queue-- you could render a
> big slew of files at once.  I think for the moment I'm going to be using
> the command version from apt-get, and that's one thing i miss.
> 
> Any tips on approximating that feature?

If you're using x86 Linux (and depending on your pain threshold), the
Windows Povray GUI will work under Wine (http://www.winehq.org). I havn't
tried to benchmark rendering speeds for Povray under Wine versus to a
native Linux Povray, though, so it may just be faster to write a shell
script to do the batch renderings. 

Mike K
--
http://povray.tashcorp.net


Post a reply to this message

From: Vaclav Cermak
Subject: Re: Batch rendering.
Date: 15 Nov 2005 06:27:38
Message: <4379c62a@news.povray.org>
I'am using standart make, Makefile may look like this:

all: persp01.ppm persp02.ppm persp03.ppm

Resolution = +w1950 +h1380

POV_Dir = /usr/local/POV

POV = povray

Include = +l$(POV_Dir)/3.5/include

POV_Flags_share = $(Include) +fp +v $(Resolution) +mb2 +wl0 +gdebug.log

POV_Flags = $(POV_Flags_share) -a +d +p +sp8
POV_Flags = $(POV_Flags_share) +a +d +p
#POV_Flags = $(POV_Flags_share) +a

Includes = scene.inc

%.ppm: %.pov $(Includes)
   $(POV) $(POV_Flags) +i$< +o$@ +gsstat.$@

clean:
   rm -f *.ppm *.ppm.stat *~
 



Greg M. Johnson wrote:
> One cooler features of the windoze app was the queue-- you could render a
> big slew of files at once.  I think for the moment I'm going to be using
> the command version from apt-get, and that's one thing i miss.  
> 
> Any tips on approximating that feature?


Post a reply to this message

From: Greg M  Johnson
Subject: Re: Batch rendering.
Date: 19 Nov 2005 23:06:52
Message: <437ff65c@news.povray.org>
Vaclav Cermak wrote:

> 
> I'am using standart make, Makefile may look like this:
> 
> all: persp01.ppm persp02.ppm persp03.ppm
> 



I apologize that I don't know what you're referring to our how I could use
this to implement an answer to my question.


Post a reply to this message

From: Florian Brucker
Subject: Re: Batch rendering.
Date: 20 Nov 2005 08:45:47
Message: <43807e0b$1@news.povray.org>
>> I'am using standart make, Makefile may look like this:

> I apologize that I don't know what you're referring to our how I could use
> this to implement an answer to my question.

No Problem, Mike. Nobody I know likes Makefiles. They're evil :)

If you want to dive into it, try 
http://www.gnu.org/software/make/manual/html_chapter/make_toc.html

About your original problem: You can always use your shell's programming 
abilities, e.g.

$ for scene in \
scene1.pov scene2.pov scene3.pov scene4.pov; \
do \
povray $scene -p; \
done

Of course you can put that command into one-line all by itself (leave 
out the '\').

A more easy-to-use solution would be a little script. I'd be happy to 
help you with that, but I'd need to know some more infos about how it 
should work.


Regards,
Florian


Post a reply to this message

From: Jim Henderson
Subject: Re: Batch rendering.
Date: 21 Nov 2005 01:45:02
Message: <pan.2005.11.21.06.44.58.627713@nospam.com>
Maybe something like http://www.drqueue.org/ could be used - it doesn't
support POV "out of the box", but from reading the blurb on the page, it
should be pretty easy to set up - with the bonus of being able to tie
multiple machines into the queuing system to distribute the rendering of
individual frames.

Jim


Post a reply to this message

From: Andrea Reina
Subject: Re: Batch rendering.
Date: 4 Jun 2006 00:30:00
Message: <web.4482611ac73578efdaf3cdfd0@news.povray.org>
This (small) script will set up a dynamic que, that is you can add more
files to the que after the job has been started, by using a while loop
instead of for. I don't have POVRay working yet, so I haven't tested it
with that, but I've tested it with a simple echo command to verify that the
loop does work and send out the commands properly.

#! /bin/bash
# Begin que

POVCOMMAND=foo
QUEFILE=bar

while [ -s "$QUEFILE" ]; do
    "$POVCOMMAND" "$(head -n 1 "$QUEFILE")" && sed -i 1d "$QUEFILE"
done

# End que

The quefile should consist of the source that you're rendering, one job per
line, nothing else. If you have your quefile set up and running, and at the
last minute want to add another job to the que, adding something to the last
position is as simple as "echo [sourcefile] >> [quefile]" replace the text
in [brackets] with the appropriate text, of course. Actually, you can get a
lot of control if you assign "bash -c" to POVCOMMAND, and the lines in
QUEFILE would be the same commands you'd type out in the command line
normally. A little more work, but a whole lot more control.


Post a reply to this message

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