POV-Ray : Newsgroups : povray.general : Exit when done : Re: Exit when done Server Time
31 Jul 2024 08:23:27 EDT (-0400)
  Re: Exit when done  
From: Rarius
Date: 28 Jul 2007 05:21:51
Message: <46ab0aaf$1@news.povray.org>
As has been suggested before just add "/exit" to the command line options... 
Then it will render and exit when done...you waitFor() will then continue.

Rarius


"Manuel Mata" <man### [at] yahooes> wrote in message 
news:web.46a9d68fe160b8e1d141b3240@news.povray.org...
> "Tim Attwood" <tim### [at] comcastnet> wrote:
>> You should be able to set up POV to /EXIT
>>
>> However, in DOS you can kill POV with
>> taskkill /f /im pvengine.exe /t
>> I think in Java you need to spawn a runtime
>> thread to make a system call, then monitor
>> it for completion, and kill the thread when it's
>> done.
>
> Right in Java i do something like:
>
> Runtime r = Runtime.getRuntime() // gets the current runtime
> Process p = r.exec("pvengine -isample.pov -osample.png"); // Execute pov 
> ray
> and return the associated process
> p.waitFor(); // Waits the current thread until povray finished
>
> But Povray renders the image and is still open. So the thread is still
> stopped at p.waitFor() When i close the window manually the program
> continues.
>
> I think the best is to set up the "Exit when done" option but still didnt
> had time to try it.
>
>
>
>


Post a reply to this message

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