POV-Ray : Newsgroups : povray.general : running pov-ray by command-line? : Re: running pov-ray by command-line? Server Time
2 Nov 2024 05:19:10 EDT (-0400)
  Re: running pov-ray by command-line?  
From: Hughes, B 
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.