POV-Ray : Newsgroups : povray.general : render from external application Server Time
27 Nov 2024 22:44:18 EST (-0500)
  render from external application (Message 1 to 10 of 10)  
From: Francesco
Subject: render from external application
Date: 30 Dec 2007 17:10:00
Message: <web.4778156b6207088cb34397d20@news.povray.org>
Hi,
i am trying to launch Pov using a Python script in order to generate
automatically thousands of images (changing some float values).
However i can open the .pov file, but i do not know how to give the command for
rendering the image. Is it possible to set a default render after opening the
file?
Thanks

Francesco


Post a reply to this message

From: Jan Dvorak
Subject: Re: render from external application
Date: 30 Dec 2007 17:25:36
Message: <47781ae0$1@news.povray.org>
Francesco napsal(a):
> Hi,
> i am trying to launch Pov using a Python script in order to generate
> automatically thousands of images (changing some float values).
> However i can open the .pov file, but i do not know how to give the command for
> rendering the image. Is it possible to set a default render after opening the
> file?
> Thanks
> 
> Francesco
> 
> 
> 
the harder way: GUI extensions
the easier way: command line options (esp. -i and -o), see the docs


Post a reply to this message

From: nemesis
Subject: Re: render from external application
Date: 30 Dec 2007 17:50:01
Message: <web.47781ff1bebf7afd8c382b80@news.povray.org>
guess it's a problem only under Windows... :)


Post a reply to this message

From: Tim Attwood
Subject: Re: render from external application
Date: 30 Dec 2007 17:53:06
Message: <47782152$1@news.povray.org>
> i am trying to launch Pov using a Python script in order to generate
> automatically thousands of images (changing some float values).
> However i can open the .pov file, but i do not know how to give the 
> command for
> rendering the image. Is it possible to set a default render after opening 
> the
> file?

With the Windows version you can call a POV render from the DOS
command line with

pvengine /EXIT +I"filepath\scene.pov" +W640 +H480

to render a certain scene and then exit, it does open the editor
and splash every time though. There are modified versions of POV
around if you need to do it without bringing up any windows.


Post a reply to this message

From: John VanSickle
Subject: Re: render from external application
Date: 31 Dec 2007 08:01:08
Message: <4778e814@news.povray.org>
Francesco wrote:
> Hi,
> i am trying to launch Pov using a Python script in order to generate
> automatically thousands of images (changing some float values).
> However i can open the .pov file, but i do not know how to give the command for
> rendering the image. Is it possible to set a default render after opening the
> file?

While we're at it, is there a way to have POV-Windows render to a window 
whose handle is supplied by an external program?  I'd like to have 
render previews in the modeler I'm working on.

Regards,
John


Post a reply to this message

From: Warp
Subject: Re: render from external application
Date: 31 Dec 2007 08:25:54
Message: <4778ede2@news.povray.org>
John VanSickle <evi### [at] hotmailcom> wrote:
> While we're at it, is there a way to have POV-Windows render to a window 
> whose handle is supplied by an external program?  I'd like to have 
> render previews in the modeler I'm working on.

  Yes. Moray does exactly that. I can't help you with the specifics,
though, but the winpov source code should have some help text.

-- 
                                                          - Warp


Post a reply to this message

From: Stephen
Subject: Re: render from external application
Date: 31 Dec 2007 08:41:33
Message: <6cshn3l9osgnkij795621bteianuijt30o@4ax.com>
On Mon, 31 Dec 2007 08:00:59 -0500, John VanSickle <evi### [at] hotmailcom>
wrote:

>
>While we're at it, is there a way to have POV-Windows render to a window 
>whose handle is supplied by an external program?  I'd like to have 
>render previews in the modeler I'm working on.

You could try asking Hugo Arnaut at www.bishop3d.com
He is doing that for his modeller, Bishop3D.


Regards
	Stephen


Post a reply to this message

From: Chris Cason
Subject: Re: render from external application
Date: 31 Dec 2007 12:10:01
Message: <47792269$1@news.povray.org>
Tim Attwood wrote:
> With the Windows version you can call a POV render from the DOS
> command line with
> 
> pvengine /EXIT +I"filepath\scene.pov" +W640 +H480
> 
> to render a certain scene and then exit, it does open the editor
> and splash every time though. There are modified versions of POV
> around if you need to do it without bringing up any windows.

POVWIN is quite capable of accepting a render request without firing up a new
instance or displaying a splash screen, and you don't need a GUIEXT to do it.

To demonstrate, start an instance of POVWIN, and make sure that 'keep single
instance' is set on. Then, issue a render command like so:

  pvengine /render somefile.pov

The render will start in the existing instance of POVWIN.

-- Chris


Post a reply to this message

From: alphaQuad
Subject: Re: render from external application
Date: 31 Dec 2007 12:20:00
Message: <web.4779249cbebf7afdb65ac5f90@news.povray.org>
I have searched the source and there is ONLY one instance of:
render_window = (something besides NULL)

that is: render_window = CreateWindowEx (

So right now I dont see how it is possible without
"render_window = some_handle_from_cmd_line".

As for the "render from external application" as described, multiframes from
multifiles with some change, mirc is perfect for this.

this exported my molecules back when this all started:

alias object_export {
; ($1 = parameter1 = some pov file)
  var %d = c:\programing\povray3.6\bin\pvengine.exe
  if (!$exists(%_.pveng)) set_pvengine
  %d = %_.pveng
  if ($exists(%d)) run %d /RENDER $1
  else echo -s No Render Engine
}

"but i do not know how to give the command for
rendering the image"
the command is "/render"


Post a reply to this message

From: Nicolas Alvarez
Subject: Re: render from external application
Date: 1 Jan 2008 12:31:42
Message: <477a78fe@news.povray.org>

> While we're at it, is there a way to have POV-Windows render to a window 
> whose handle is supplied by an external program?  I'd like to have 
> render previews in the modeler I'm working on.

GUI extensions let you do that.


Post a reply to this message

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