POV-Ray : Newsgroups : povray.general : running pov-ray by command-line? Server Time
16 Nov 2024 01:16:10 EST (-0500)
  running pov-ray by command-line? (Message 1 to 2 of 2)  
From: lars petter
Subject: running pov-ray by command-line?
Date: 7 May 2004 17:27:48
Message: <409bff54$1@news.povray.org>
I've made some software that generates .pov files.. and i'd like to know how
i can run pov-ray from command-line with a .pov file as a parameter.. i'd
also
like to set other things as output size, AA quality and more..

is this doable?

thanks in advance,
    lars petter!


Post a reply to this message

From: Hughes, B 
Subject: Re: running pov-ray by command-line?
Date: 8 May 2004 02:39:38
Message: <409c80aa$1@news.povray.org>
"lars petter" <lar### [at] higno> wrote in message
news:409bff54$1@news.povray.org...
> I've made some software that generates .pov files.. and i'd like to know
how
> i can run pov-ray from command-line with a .pov file as a parameter.. i'd
> also
> like to set other things as output size, AA quality and more..
>
> is this doable?

Yes, I know the Windows platform versions can do this anyway. For example, I
might use:

C:\>set path=%PATH%;c:\progra~1\pov-ra~1.5\bin

to get POV into the path first (the ~1.5 condensing the POV-Ray for Windows
3.5 for long filename compatibility), then run the executable.

C:\>pvengine.exe /render c:\progra~1\pov-ra~1.5\scenes\fish.pov -w160 -h120
+a0.2

That /render switch to render (obviously) whatever file you state afterward,
or /edit can be used to just open the file for further editing instead of
rendering. I believe all other switches will be valid too, those like width
and height and antialiasing, etc. or you could output a INI file with all
that in it and simply run those by adding the filename on the command-line
along with the POV file.

Bob H.


Post a reply to this message

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