POV-Ray : Newsgroups : povray.unofficial.patches : Matlab y megapov Server Time
29 Feb 2024 21:10:49 EST (-0500)
  Matlab y megapov (Message 1 to 5 of 5)  
From: maesla
Subject: Matlab y megapov
Date: 17 May 2007 11:55:02
Message: <web.464c7a9d13866656fbdb934e0@news.povray.org>
I found what I want.
It's the megapov. With this you can render povray file from the command
lines.
And I found that the fuction to run function from the matlab is
system('...')
But know i hace problems with the megapov. Maybe someone can help me.
Imagine:
The path of the megapov is:
C:Documents and SettingsadminDesktopmegapov-1.2.1-windowsbin
The path of the file I want to render is :
d:Documents and SettingsadminMy DocumentsproyectopovrayrobotSimulator
The name of the file I want to render is:
robot_movement_eyefish.ini
The files I have to include are in the path:
d:Documents and SettingsadminMy DocumentsproyectopovrayrobotSimulator
The files .inc that megapov needs like colors.inc are in
C:Program FilesPOV-Ray for Windows v3.6include
The picture of the video I need to make i need to save in
d:Documents and SettingsadminMy Documentsproyectointerface
And I need the pictures in bmp

I tried this:
system('"C:Documents and
SettingsadminDesktopmegapov-1.2.1-windowsbinmegapov.exe"   +HI"d:Documents
and SettingsadminMy DocumentsproyectopovrayrobotSimulator" +L"c:Program
FilesPOV-Ray for Windows v3.6renderer" +I"d:Documents and SettingsadminMy
DocumentsproyectopovrayrobotSimulatormovimiento_robot.pov"')

With this result:

Cannot open INI file 'FilesPOV-Ray'.
Cannot process command-line due to a parse error.
This is not a valid command-line. Check the command-line for syntax errors,
correct them, and try again!
Valid command-line switches are explained in detail in the reference part of
the documentation.
To get a short list of command-line switches, use either the '-h', '-?',
'-help' or '--help' switch.
Failed to render file due to error(s)!

ans =

    -8


documentation

Thank you


Post a reply to this message

From: andrel
Subject: Re: Matlab y megapov
Date: 19 May 2007 12:47:25
Message: <464F2B07.4040003@hotmail.com>
maesla wrote:
> I found what I want.
> It's the megapov. With this you can render povray file from the command
> lines.
You can do that with the standard POV-ray too.
> And I found that the fuction to run function from the matlab is
> system('...')
or !
> But know i hace problems with the megapov. Maybe someone can help me.
> Imagine:
> The path of the megapov is:
> C:Documents and SettingsadminDesktopmegapov-1.2.1-windowsbin
why do you log in as admin?

> The path of the file I want to render is :
> d:Documents and SettingsadminMy DocumentsproyectopovrayrobotSimulator
> The name of the file I want to render is:
> robot_movement_eyefish.ini
> The files I have to include are in the path:
> d:Documents and SettingsadminMy DocumentsproyectopovrayrobotSimulator
> The files .inc that megapov needs like colors.inc are in
> C:Program FilesPOV-Ray for Windows v3.6include
> The picture of the video I need to make i need to save in
> d:Documents and SettingsadminMy Documentsproyectointerface
> And I need the pictures in bmp
> 
> I tried this:
> system('"C:Documents and
> SettingsadminDesktopmegapov-1.2.1-windowsbinmegapov.exe"   +HI"d:Documents
> and SettingsadminMy DocumentsproyectopovrayrobotSimulator" +L"c:Program
> FilesPOV-Ray for Windows v3.6renderer" +I"d:Documents and SettingsadminMy
> DocumentsproyectopovrayrobotSimulatormovimiento_robot.pov"')
> 
> With this result:
> 
> Cannot open INI file 'FilesPOV-Ray'.

Then that is probably what is wrong. ;)
My suggestions to get this to work are:
- make sure that your scene runs from within the GUI version
of (mega)pov
- create a script to hide the ugly absolute paths.
(I could give you mine if you really want, but you might
prefer to write your own).
- cd to the directory that contains your pov script
- run it there without any options
- add options untill you find where the bug is.
- run it from another directory
Always be aware of filenames with spaces in it,
but I think you already got that one.

I hope this helps a little

> Cannot process command-line due to a parse error.
> This is not a valid command-line. Check the command-line for syntax errors,
> correct them, and try again!
> Valid command-line switches are explained in detail in the reference part of
> the documentation.
> To get a short list of command-line switches, use either the '-h', '-?',
> '-help' or '--help' switch.
> Failed to render file due to error(s)!
> 
> ans =
> 
>     -8
> 

> documentation
> 
> Thank you
> 
> 
>


Post a reply to this message

From: maesla
Subject: Re: Matlab y megapov
Date: 21 May 2007 09:55:02
Message: <web.4651a43ff5ddcfea560844e20@news.povray.org>
andrel <a_l### [at] hotmailcom> wrote:
> maesla wrote:
> > I found what I want.
> > It's the megapov. With this you can render povray file from the command
> > lines.
> You can do that with the standard POV-ray too.
> > And I found that the fuction to run function from the matlab is
> > system('...')
> or !

How can I do this with pov ray?? I know you can open povray from the command
line, but I need to render without open the graphical interface


Post a reply to this message

From: andrel
Subject: Re: Matlab y megapov
Date: 21 May 2007 15:11:32
Message: <4651EFCE.3000105@hotmail.com>
maesla wrote:
> andrel <a_l### [at] hotmailcom> wrote:
>> maesla wrote:
>>> I found what I want.
>>> It's the megapov. With this you can render povray file from the command
>>> lines.
>> You can do that with the standard POV-ray too.
>>> And I found that the fuction to run function from the matlab is
>>> system('...')
>> or !
> 
> How can I do this with pov ray?? I know you can open povray from the command
> line, but I need to render without open the graphical interface
> 
Why?

You have to specify that POV should close after rendering.
I admit that it is a bit annoying that the whole GUI
starts everytime but I never found that a problem myself.
Generating a movie I do in batch anyway (preferably when
sleeping).

(I didn't have megapov installed yet. I have now. I'll
look unto the command line options for that).


Post a reply to this message

From: andrel
Subject: Re: Matlab y megapov
Date: 21 May 2007 15:47:19
Message: <4651F831.403@hotmail.com>
andrel wrote:

> (I didn't have megapov installed yet. I have now. I'll
> look unto the command line options for that).
> 
OK I did that, works perfectly for me, so what was your
problem ;)

Attached my megapov script.
Unfortunately not useable for you, because it is using my
swiss army knife ProcessVarargin to handle the options, but
I think you'll get the point. If not, I might attach that
function next time ;) .


Post a reply to this message


Attachments:
Download 'us-ascii' (1 KB)

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