POV-Ray : Newsgroups : povray.general : Call POV Ray to render a script without showing rendering window Server Time
27 Nov 2024 05:52:07 EST (-0500)
  Call POV Ray to render a script without showing rendering window (Message 1 to 6 of 6)  
From: rohit arondekar
Subject: Call POV Ray to render a script without showing rendering window
Date: 12 Mar 2009 05:50:01
Message: <web.49b8da6c1918a48e749429a90@news.povray.org>
Hello,
My query is quite simple. We are developing a small terrain generator and we are
planning on using POV Ray as the renderer. I wanted to know if it is possible to
call POV Ray to render a script without showing the rendering window or opening
the POV Ray window.

The terrain generator we are developing is for a college project and because of
time constraints we could not make our own renderer. It would be nice if we
could render the script, open the rendered scene in our application for the
user to see because we wish to allow the user to perform some image processing
filtering also. So it's not like we want to hide the fact that we are using POV
Ray :D

Also our terrain generator works on windows & linux so any ideas should work on
both. Any help will be greatly appreciated :)


Post a reply to this message

From: Mueen Nawaz
Subject: Re: Call POV Ray to render a script without showing rendering window
Date: 12 Mar 2009 11:12:13
Message: <49b9264d@news.povray.org>
rohit.arondekar wrote:
> Hello,
> My query is quite simple. We are developing a small terrain generator and we are
> planning on using POV Ray as the renderer. I wanted to know if it is possible to
> call POV Ray to render a script without showing the rendering window or opening
> the POV Ray window.

	Sure. Use the -D command line option:

povray -D filename.pov

	If you want to do it every time, it may be easier to place these kinds
of options in a povray.ini file.


-- 
"Strange, I don't remember suffering from memory loss."


                    /\  /\               /\  /
                   /  \/  \ u e e n     /  \/  a w a z
                       >>>>>>mue### [at] nawazorg<<<<<<
                                   anl


Post a reply to this message

From: Christian Froeschlin
Subject: Re: Call POV Ray to render a script without showing rendering window
Date: 12 Mar 2009 12:27:26
Message: <49b937ee$1@news.povray.org>
Mueen Nawaz wrote:

> 	Sure. Use the -D command line option:
> 
> povray -D filename.pov

Under Windows use

   pvengine -D /Exit filename.pov

Although you can prevent the display window you will always
see the editor window pop up. AFAIK there is no way to prevent
that short of compiling your own version of POV-Ray.


Post a reply to this message

From: Alain
Subject: Re: Call POV Ray to render a script without showing rendering window
Date: 12 Mar 2009 16:54:53
Message: <49b9769d$1@news.povray.org>
Christian Froeschlin nous illumina en ce 2009-03-12 12:28 -->
> Mueen Nawaz wrote:
> 
>>     Sure. Use the -D command line option:
>>
>> povray -D filename.pov
> 
> Under Windows use
> 
>   pvengine -D /Exit filename.pov
> 
> Although you can prevent the display window you will always
> see the editor window pop up. AFAIK there is no way to prevent
> that short of compiling your own version of POV-Ray.

Why are so many obcessed with the /exit switch? Do you want the splash to pop up 
with EVERY render? Do you want to take the time to load the programm for EVERY 
render? I guess not.
Just keep POV-Ray open and, optionaly, minimised. Just set "keep single 
instance" checked. Then, you just use:

pvengine -D filename.pov

No splash after the first time. If it was minimised, it will stay minimised.

And, when you are finished with the whole cession, issue

pvengine /exit

to close POV-Ray.

The cession can look like this:
1 - Start the terrain generator.
2 - Call a shortcut to start POV-Ray minimised.
3 - Generate a terrain
4 - Call POV-Ray to render the terrain
5 - display the terrain
6 - Repeat 3 trough 6 as needed
7 - Close POV-Ray
8 - Exit the terrain generator.

-- 
Alain
-------------------------------------------------
Politicians are like socks - they smell bad and should be changed often.


Post a reply to this message

From: Christian Froeschlin
Subject: Re: Call POV Ray to render a script without showing rendering window
Date: 12 Mar 2009 17:28:22
Message: <49b97e76@news.povray.org>
Alain wrote:

> Why are so many obcessed with the /exit switch?

well I usually don't want to have "keep single instance" checked,
and this may not be under the control of the application calling
POV-Ray. So I prefer multiple splashes to multiple zombies ;)


Post a reply to this message

From: rohit arondekar
Subject: Re: Call POV Ray to render a script without showing rendering window
Date: 13 Mar 2009 08:30:00
Message: <web.49ba513d3d010e301a88287e0@news.povray.org>
Thanks a lot everybody for the replies :)

I have 3 options I guess -

1) Call povray, render image while showing the rendering window, exit
2) Call povray, don't show rendering window, exit
3) Keep povray open and render as and when required

I will see which one suits the best. Thanks a lot again at least now I have
options :D


Post a reply to this message

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