POV-Ray : Newsgroups : povray.animations : Scripts for Controlling a Render Farm Server Time
23 Nov 2024 09:54:48 EST (-0500)
  Scripts for Controlling a Render Farm (Message 2 to 11 of 11)  
<<< Previous 1 Messages Goto Initial 10 Messages
From: Steve Anger
Subject: Re: Scripts for Controlling a Render Farm
Date: 30 Jan 2020 11:30:00
Message: <web.5e33035f31cc7d453774b87b0@news.povray.org>
I've hit my first glitch in this process. Years ago I did something similar by
having a script call povray.exe for each frame to render. povray.exe would not
exit until the render of the frame was complete. After povray.exe returned the
script could pick the next frame to render and continue. The current
pvengine32/64.exe program runs asynchronously and returns immediately so the
script can't tell when the render is finished. Also, once pvengine is open you
can't call it again with another .ini file to start another frame.

Any ideas?


Post a reply to this message

From: jr
Subject: Re: Scripts for Controlling a Render Farm
Date: 30 Jan 2020 12:35:01
Message: <web.5e3313ad31cc7d4528c55bc90@news.povray.org>
hi,

"Steve Anger" <nomail@nomail> wrote:
> I've hit my first glitch in this process. Years ago I did something similar by
> having a script call povray.exe for each frame to render. povray.exe would not
> exit until the render of the frame was complete. After povray.exe returned the
> script could pick the next frame to render and continue. The current
> pvengine32/64.exe program runs asynchronously and returns immediately so the
> script can't tell when the render is finished. Also, once pvengine is open you
> can't call it again with another .ini file to start another frame.
>
> Any ideas?

on a *nix-like box, your script could, for instance, use 'ps' to see whether
POV-Ray is still running.  maybe the Windows Ubuntu sub-system thing provides
such tools?


regards, jr.


Post a reply to this message

From: Steve Anger
Subject: Re: Scripts for Controlling a Render Farm
Date: 30 Jan 2020 12:55:00
Message: <web.5e33183731cc7d453774b87b0@news.povray.org>
"jr" <cre### [at] gmailcom> wrote:
> hi,
>
> "Steve Anger" <nomail@nomail> wrote:
> > I've hit my first glitch in this process. Years ago I did something similar by
> > having a script call povray.exe for each frame to render. povray.exe would not
> > exit until the render of the frame was complete. After povray.exe returned the
> > script could pick the next frame to render and continue. The current
> > pvengine32/64.exe program runs asynchronously and returns immediately so the
> > script can't tell when the render is finished. Also, once pvengine is open you
> > can't call it again with another .ini file to start another frame.
> >
> > Any ideas?
>
> on a *nix-like box, your script could, for instance, use 'ps' to see whether
> POV-Ray is still running.  maybe the Windows Ubuntu sub-system thing provides
> such tools?
>
>
> regards, jr.

Unfortunately the pvengine never terminates unless the user manually close it.


Post a reply to this message

From: jr
Subject: Re: Scripts for Controlling a Render Farm
Date: 30 Jan 2020 13:10:00
Message: <web.5e331b7031cc7d4528c55bc90@news.povray.org>
hi,

"Steve Anger" <nomail@nomail> wrote:
> "jr" <cre### [at] gmailcom> wrote:
> > "Steve Anger" <nomail@nomail> wrote:
> > > ...
> > > Any ideas?
> >
> > on a *nix-like box, your script could, for instance, use 'ps' to see whether
> > POV-Ray is still running.  maybe the Windows Ubuntu sub-system thing provides
> > such tools?
> >
> > regards, jr.
>
> Unfortunately the pvengine never terminates unless the user manually close it.

not even when your ini file contains 'pause_when_done = off' ?


regards, jr.


Post a reply to this message

From: Bald Eagle
Subject: Re: Scripts for Controlling a Render Farm
Date: 30 Jan 2020 14:00:00
Message: <web.5e33269031cc7d454eec112d0@news.povray.org>
"Steve Anger" <nomail@nomail> wrote:

> Unfortunately the pvengine never terminates unless the user manually close it.

Can you use something like:

Post_Scene_Command=taskkill /f pvengine32/64.exe

in your .ini?

http://wiki.povray.org/content/Reference:Shell_Command_Options#Shell_Command_Sequencing

https://techieinspire.com/how-to-start-and-end-or-kill-process-using-dos-command-prompt/


Post a reply to this message

From: Dick Balaska
Subject: Re: Scripts for Controlling a Render Farm
Date: 30 Jan 2020 18:21:40
Message: <5e336504$1@news.povray.org>
Am 1/30/20 12:53 PM, also sprach Steve Anger:
> "jr" <cre### [at] gmailcom> wrote:
>> hi,
>>
>> "Steve Anger" <nomail@nomail> wrote:
>>> I've hit my first glitch in this process. Years ago I did something similar by
>>> having a script call povray.exe for each frame to render. povray.exe would not
>>> exit until the render of the frame was complete. After povray.exe returned the
>>> script could pick the next frame to render and continue. The current
>>> pvengine32/64.exe program runs asynchronously and returns immediately so the
>>> script can't tell when the render is finished. Also, once pvengine is open you
>>> can't call it again with another .ini file to start another frame.
>>>
>>> Any ideas?
>>
>> on a *nix-like box, your script could, for instance, use 'ps' to see whether
>> POV-Ray is still running.  maybe the Windows Ubuntu sub-system thing provides
>> such tools?
>>
>>
>> regards, jr.
> 
> Unfortunately the pvengine never terminates unless the user manually close it.
> 
> 
> 

I have povconsole.exe which does what you want.  A gui-less version that 
I drive from my renderfarm.  It's a little old since I switched my farm 
to all linux and haven't needed to update it.
http://www.buckosoft.com/povclipse2/povray/

-- 
dik
Rendered 49,882,521,600 of 49,882,521,600 pixels (100%)


Post a reply to this message

From: Steve Anger
Subject: Re: Scripts for Controlling a Render Farm
Date: 31 Jan 2020 09:35:00
Message: <web.5e343a5f31cc7d453774b87b0@news.povray.org>
Dick Balaska <dic### [at] buckosoftcom> wrote:

> I have povconsole.exe which does what you want.  A gui-less version that
> I drive from my renderfarm.  It's a little old since I switched my farm
> to all linux and haven't needed to update it.
> http://www.buckosoft.com/povclipse2/povray/
>
> --
> dik
> Rendered 49,882,521,600 of 49,882,521,600 pixels (100%)

Was there an official source release for that or was it a version you customized
yourself? I need to use povray-3.8.0 since it corrects a rendering bug that
existed in the older versions. If you have the source I could update it with the
latest code.


Post a reply to this message

From: Dick Balaska
Subject: Re: Scripts for Controlling a Render Farm
Date: 31 Jan 2020 10:54:36
Message: <5e344dbc$1@news.povray.org>
Am 1/31/20 9:31 AM, also sprach Steve Anger:
> Dick Balaska <dic### [at] buckosoftcom> wrote:
> 
>> I have povconsole.exe which does what you want.  A gui-less version that
>> I drive from my renderfarm.  It's a little old since I switched my farm
>> to all linux and haven't needed to update it.
>> http://www.buckosoft.com/povclipse2/povray/
>>
>> --
>> dik
>> Rendered 49,882,521,600 of 49,882,521,600 pixels (100%)
> 
> Was there an official source release for that or was it a version you customized
> yourself? I need to use povray-3.8.0 since it corrects a rendering bug that
> existed in the older versions. If you have the source I could update it with the
> latest code.
> 
> 
> 

It is the official source.

 From memory, so I'm likely wrong:
In VS2015 load povray.sln.  Enable subproject Console, disable 
subproject Gui.
Build it.
It will complain that you need to #define _CONSOLE somewhere, and tell 
you where. (Hint: in my copy it's at
windows/povconfig/syspovconfig.h:54:// _CONSOLE must be defined when 
building the console version of POVWIN.
windows/povconfig/syspovconfig.h:56:// #define _CONSOLE
)
So do that and rebuild.

et voilà!

-- 
dik
Rendered 49,882,521,600 of 49,882,521,600 pixels (100%)


Post a reply to this message

From: Steve Anger
Subject: Re: Scripts for Controlling a Render Farm
Date: 1 Feb 2020 14:55:06
Message: <web.5e35d70031cc7d453774b87b0@news.povray.org>
> It is the official source.
>
>  From memory, so I'm likely wrong:
> In VS2015 load povray.sln.  Enable subproject Console, disable
> subproject Gui.
> Build it.
> It will complain that you need to #define _CONSOLE somewhere, and tell
> you where. (Hint: in my copy it's at
> windows/povconfig/syspovconfig.h:54:// _CONSOLE must be defined when
> building the console version of POVWIN.
> windows/povconfig/syspovconfig.h:56:// #define _CONSOLE
> )
> So do that and rebuild.
>
> et voilà!
>
> --
> dik
> Rendered 49,882,521,600 of 49,882,521,600 pixels (100%)

Sounds great. Thanks!


Post a reply to this message

From: koppi
Subject: Re: Scripts for Controlling a Render Farm
Date: 22 Dec 2021 07:40:00
Message: <web.61c31c2331cc7d4558890eb2199194f2@news.povray.org>
"Steve Anger" <nomail@nomail> wrote:
> Before I get too far I thought I'd check if someone else has set something like
> this up already.

Hi Steve, sorry for my late reply, but perhaps it is of any interest for you:

I'm running POV-Ray with the help of the Slurm Workload manager on Linux
machines (Google- or Amazon-cloud), see the two YouTube videos:

* https://www.youtube.com/watch?v=8lligATtAWs ,
* https://www.youtube.com/watch?v=NI8EPsuRrsU ,

and a bit of documentation on GitHub, Inc.:

* https://github.com/bullet-physics-playground/demo-povay-slurm#readme


Hth. Kind regards, Koppi


Post a reply to this message

<<< Previous 1 Messages Goto Initial 10 Messages

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