POV-Ray : Newsgroups : povray.binaries.programming : call megapov in Matlab, but where is the pic generated from megapov? Server Time
28 Mar 2024 11:02:33 EDT (-0400)
  call megapov in Matlab, but where is the pic generated from megapov? (Message 1 to 8 of 8)  
From: AENZO
Subject: call megapov in Matlab, but where is the pic generated from megapov?
Date: 12 Jul 2012 03:20:01
Message: <web.4ffe7a103642b3712cc41eaa0@news.povray.org>
Hi everybuddy, i run command in MATLAB like this

!"C:\Program Files\POV-Ray for Windows v3.6\bin\MEGAPOV" +I"E:\Dropbox\POV
ray\2012.07.10\Tree Model_only Leafs_no_shadow08.pov" +O"E:\Dropbox\POV
ray\2012.07.10\a.bmp" +L"C:\Program Files\POV-Ray for Windows v3.6\include"
+W800 +H600

and it worked and the messages like :

Microsoft Windows XP

Redirecting Options
  All Streams to console..........On
  Debug Stream to console.........On
  Fatal Stream to console.........On
  Render Stream to console........On
  Statistics Stream to console....On
  Warning Stream to console.......On
Parsing Options
  Input file: E:\Dropbox\POV ray\2012.07.10\Tree Model_only Leafs_no_shadow08.po
v (compatible to version 3.61)
  Remove bounds........On
  Split unions.........Off
  Library paths:
    C:\Program Files\POV-Ray for Windows v3.6\include
Output Options
  Image resolution 800 by 600 (rows 1 to 600, columns 1 to 800).
  Output file: E:\Dropbox\POV ray\2012.07.10/\Dropbox\POV ray\2012.07.10\a.bmp,
 24 bpp Targa
  Graphic display......Off
  Mosaic preview.......Off
  CPU usage histogram..Off
  Continued trace......Off
Tracing Options
  Quality:  9
  Bounding boxes.......On   Bounding threshold: 25
  Light Buffer.........On
  Vista Buffer.........On   Draw Vista Buffer....Off
  Antialiasing.........Off
  Clock value:    0.000  (Animation off)

  0:00:00 Parsing
  0:00:01 Parsing 1943K tokens
  0:00:02 Parsing 3999K tokens
  0:00:03 Parsing 5884K tokens
  0:00:04 Parsing 8025K tokens
  0:00:04 Creating bounding slabs
  0:00:04 Creating vista buffer
  0:00:04 Creating light buffers
  0:00:04 Creating light buffers 9232K tokens
Scene Statistics
  Finite objects:         8305
  Infinite objects:          0
  Light sources:             0
  Total:                  8305
File Init Error: Cannot open output file.

  0:00:00 Reclaiming memory
Total Scene Processing Times
  Parse Time:    0 hours  0 minutes  4 seconds (4 seconds)
  Photon Time:   0 hours  0 minutes  0 seconds (0 seconds)
  Cloth Time:    0 hours  0 minutes  0 seconds (0 seconds)
  Mechsim Time:  0 hours  0 minutes  0 seconds (0 seconds)
  Render Time:   0 hours  0 minutes  0 seconds (0 seconds)
  Postpr. Time:  0 hours  0 minutes  0 seconds (0 seconds)
  Total Time:    0 hours  0 minutes  4 seconds (4 seconds)

I thought that might the problem "Graphic display......Off ", but how can i turn
on it?  it would be thankful, if you could help me , thx a million!!!


Post a reply to this message

From: Jaime Vives Piqueres
Subject: Re: call megapov in Matlab, but where is the pic generated from megapov?
Date: 12 Jul 2012 03:36:45
Message: <4ffe7e8d@news.povray.org>
Enzo, the answer to your question is contained on your post two times!>

> !"C:\Program Files\POV-Ray for Windows v3.6\bin\MEGAPOV"
> +I"E:\Dropbox\POV ray\2012.07.10\Tree Model_only
> Leafs_no_shadow08.pov" +O"E:\Dropbox\POV ray\2012.07.10\a.bmp"
> +L"C:\Program Files\POV-Ray for Windows v3.6\include" +W800 +H600
>

   Here the command line contains the output file name, explicitly set to
"E:\Dropbox\POV ray\2012.07.10\a.bmp".

> Output Options Image resolution 800 by 600 (rows 1 to 600, columns 1
> to 800). Output file: E:\Dropbox\POV ray\2012.07.10/\Dropbox\POV
> ray\2012.07.10\a.bmp,

   And here again, the renderer tells you about it on the messages window...

> I thought that might the problem "Graphic display......Off ", but how
> can i turn on it?

   No, that was not the problem, but anyhow you can turn display on
adding +d on your command line.

   Regards,

--
Jaime


Post a reply to this message

From: AENZO
Subject: Re: call megapov in Matlab, but where is the pic generated from megapov?
Date: 12 Jul 2012 04:10:01
Message: <web.4ffe85d3b8031fa793fd1c190@news.povray.org>
Jaime Vives Piqueres <jai### [at] ignoranciaorg> wrote:
> Enzo, the answer to your question is contained on your post two times!>
>
> > !"C:\Program Files\POV-Ray for Windows v3.6\bin\MEGAPOV"
> > +I"E:\Dropbox\POV ray\2012.07.10\Tree Model_only
> > Leafs_no_shadow08.pov" +O"E:\Dropbox\POV ray\2012.07.10\a.bmp"
> > +L"C:\Program Files\POV-Ray for Windows v3.6\include" +W800 +H600
> >
>
>    Here the command line contains the output file name, explicitly set to
> "E:\Dropbox\POV ray\2012.07.10\a.bmp".
>
> > Output Options Image resolution 800 by 600 (rows 1 to 600, columns 1
> > to 800). Output file: E:\Dropbox\POV ray\2012.07.10/\Dropbox\POV
> > ray\2012.07.10\a.bmp,
>
>    And here again, the renderer tells you about it on the messages window...
>
> > I thought that might the problem "Graphic display......Off ", but how
> > can i turn on it?
>
>    No, that was not the problem, but anyhow you can turn display on
> adding +d on your command line.
>
>    Regards,
>
> --
> Jaime

Hi Jaime,

I redo the coding and did like you said, and the mega generate the pic
but i can not open it, and the message like this:

Support libraries used by POV-Ray:
  ZLib 1.2.3, Copyright 1995-1998 Jean-loup Gailly and Mark Adler
  LibPNG 1.2.8, Copyright 1998-2002 Glenn Randers-Pehrson
  LibJPEG 6b, Copyright 1998 Thomas G. Lane
  LibTIFF 3.6.1, Copyright 1988-1997 Sam Leffler, 1991-1997 SGI
Redirecting Options
  All Streams to console..........On
  Debug Stream to console.........On
  Fatal Stream to console.........On
  Render Stream to console........On
  Statistics Stream to console....On
  Warning Stream to console.......On
Parsing Options
  Input file: E:\Dropbox\POV ray\2012.07.10\Tree Model_only Leafs_no_shadow08.po
v (compatible to version 3.61)
  Remove bounds........On
  Split unions.........Off
  Library paths:
    C:\Program Files\POV-Ray for Windows v3.6\include
Output Options
  Image resolution 800 by 600 (rows 1 to 600, columns 1 to 800).
  Output file: E:\Dropbox\POV ray\2012.07.10/Tree Model_only Leafs_no_shadow08.b
mp, 24 bpp Targa
  Graphic display......On  (gamma: 2.2)
  Mosaic preview.......Off
  CPU usage histogram..Off
  Continued trace......Off
Tracing Options
  Quality:  9
  Bounding boxes.......On   Bounding threshold: 25
  Light Buffer.........On
  Vista Buffer.........On   Draw Vista Buffer....Off
  Antialiasing.........Off
  Clock value:    0.000  (Animation off)

  0:00:00 Parsing
  0:00:01 Parsing 297K tokens
  0:00:02 Parsing 2405K tokens
  0:00:03 Parsing 4486K tokens
  0:00:04 Parsing 6267K tokens
  0:00:05 Parsing 8250K tokens
  0:00:05 Creating bounding slabs
  0:00:05 Creating vista buffer(null)
  0:00:05 Creating light buffers
  0:00:05 Creating light buffers 9232K tokens
Scene Statistics
  Finite objects:         8305
  Infinite objects:          0
  Light sources:             0
  Total:                  8305

  0:00:00 Displaying
                (null)
                  (null)
                    (null)
                      (null)
                        (null)
                          (null)                                  .........
                            (null)                               ..   ........
...                              (null)                             ..
...................                           (null)                          ..
.... ................                           (null)
.... ............. ......                            (null)
  . .. .......... ..........
  0:00:01 Displaying line 292 of 600(null)                        .... ... ...
..  ..........                         (null)                       ... . ...
     ..........                         (null)                             .
         .. ... .                         (null)                          .....
           . .....                          (null)                           . .
 ..             .                             (null)
              .                                 (null)
                                                  (null)
                                                    (null)
                                                      (null)
                                                        (null)
                                                          (null)
                                                            (null)
  0:00:01 Postprocessing Phase 0, line 0
  0:00:01 Done Tracing
Render Statistics
Image Resolution 800 x 600
----------------------------------------------------------------------------
Pixels:           480000   Samples:          480000   Smpls/Pxl: 1.00
Rays:             480000   Saved:                 0   Max Level: 1/5
----------------------------------------------------------------------------
Ray->Shape Intersection          Tests       Succeeded  Percentage
----------------------------------------------------------------------------
Disc                            185440           57549     31.03
Bounding Box                   1203270          646763     53.75
Vista Buffer                   5352939         3105899     58.02
----------------------------------------------------------------------------
Calls to Noise:                   0   Calls to DNoise:              10
----------------------------------------------------------------------------
----------------------------------------------------------------------------
Smallest Alloc:                  18 bytes
Largest  Alloc:               94256 bytes
Peak memory used:           8009158 bytes

  0:00:01 Reclaiming memory
Total Scene Processing Times
  Parse Time:    0 hours  0 minutes  5 seconds (5 seconds)
  Photon Time:   0 hours  0 minutes  0 seconds (0 seconds)
  Cloth Time:    0 hours  0 minutes  0 seconds (0 seconds)
  Mechsim Time:  0 hours  0 minutes  0 seconds (0 seconds)
  Render Time:   0 hours  0 minutes  1 seconds (1 seconds)
  Postpr. Time:  0 hours  0 minutes  0 seconds (0 seconds)
  Total Time:    0 hours  0 minutes  6 seconds (6 seconds)


I dont understand what the "null" is, would you See this for me?

Thank you


Aenzo

best regards!


Post a reply to this message

From: AENZO
Subject: Re: call megapov in Matlab, but where is the pic generated from megapov?
Date: 12 Jul 2012 04:30:01
Message: <web.4ffe8a4ab8031fa793fd1c190@news.povray.org>
Hi Jaime,

I have got the answer about "null", it seems the megapov rendered the pic in
binary dots,  like the message shows, but the pic still could not be displayed,
i still working on this

ps, the new command is this:

 !"C:\Program Files\POV-Ray for Windows v3.6\bin\MEGAPOV"
 +I"E:\Dropbox\POV ray\2012.07.10\Tree Model_only Leafs_no_shadow07.pov"
 +O"Tree Model_only Leafs_no_shadow07.bmp"
 +L"C:\Program Files\POV-Ray for Windows v3.6\include"
 +W800 +H600 +D

Aenzo

regards


Post a reply to this message

From: AENZO
Subject: Re: call megapov in Matlab, but where is the pic generated from megapov?
Date: 12 Jul 2012 04:35:01
Message: <web.4ffe8b26b8031fa793fd1c190@news.povray.org>
Jaime Vives Piqueres <jai### [at] ignoranciaorg> wrote:
> Enzo, the answer to your question is contained on your post two times!>
>
> > !"C:\Program Files\POV-Ray for Windows v3.6\bin\MEGAPOV"
> > +I"E:\Dropbox\POV ray\2012.07.10\Tree Model_only
> > Leafs_no_shadow08.pov" +O"E:\Dropbox\POV ray\2012.07.10\a.bmp"
> > +L"C:\Program Files\POV-Ray for Windows v3.6\include" +W800 +H600
> >
>
>    Here the command line contains the output file name, explicitly set to
> "E:\Dropbox\POV ray\2012.07.10\a.bmp".
>
> > Output Options Image resolution 800 by 600 (rows 1 to 600, columns 1
> > to 800). Output file: E:\Dropbox\POV ray\2012.07.10/\Dropbox\POV
> > ray\2012.07.10\a.bmp,
>
>    And here again, the renderer tells you about it on the messages window...
>
> > I thought that might the problem "Graphic display......Off ", but how
> > can i turn on it?
>
>    No, that was not the problem, but anyhow you can turn display on
> adding +d on your command line.
>
>    Regards,
>
> --
> Jaime

Hi Jaime

I used new code like this :

 !"C:\Program Files\POV-Ray for Windows v3.6\bin\MEGAPOV"
 +I"E:\Dropbox\POV ray\2012.07.10\Tree Model_only Leafs_no_shadow07.pov"
+O"\Tree Model_only Leafs_no_shadow07.bmp"
+L"C:\Program Files\POV-Ray for Windows v3.6\include"
+W800 +H600 +D

and it generated the pic , but could not be displayed, would you see this for
me?

thank you

Regards,

Aenzo


Post a reply to this message

From: Jaime Vives Piqueres
Subject: Re: call megapov in Matlab, but where is the pic generated from megapov?
Date: 12 Jul 2012 04:39:45
Message: <4ffe8d51$1@news.povray.org>
On 12/07/12 10:07, AENZO wrote:
> I redo the coding and did like you said, and the mega generate the
> pic but i can not open it, and the message like this:

I overlooked this line on the messages from your first post:

> File Init Error: Cannot open output file.

...so, it looks like you don't have permission to write on that folder?

> 0:00:00 Displaying (null) (null) (null) (null) (null) (null)
> ......... (null)                               ..   ........ ...
> (null)                             .. ...................
> (null)                          .. .... ................
> (null) .... ............. ......                            (null) .
> .. .......... .......... 0:00:01 Displaying line 292 of 600(null)
> .... ... ... ..  ..........                         (null)
> ... . ... ..........                         (null)
> . .. ... .                         (null)
> ..... . .....                          (null)
> . . ..             .                             (null) .
> (null) (null) (null) (null) (null) (null) (null)

   That looks like the alternative preview used when there is no graphic
support compiled on the binary... maybe you're using the console version
of MegaPOV? (I don't know if it was compiled with graphic display support)

   Regards,

--
Jaime


Post a reply to this message

From: AENZO
Subject: Re: call megapov in Matlab, but where is the pic generated from megapov?
Date: 12 Jul 2012 04:40:01
Message: <web.4ffe8c81b8031fa793fd1c190@news.povray.org>
Hi Jamie, I fixed the prob,

Just need define the format of the pic,
thank you sooo much, and sorry about the
disturbing

Regards

Aenzo


Post a reply to this message

From: Jaime Vives Piqueres
Subject: Re: call megapov in Matlab, but where is the pic generated from megapov?
Date: 12 Jul 2012 05:00:45
Message: <4ffe923d$1@news.povray.org>
On 12/07/12 10:36, AENZO wrote:
> Hi Jamie, I fixed the prob,
>
> Just need define the format of the pic,

   Ah... I was going to suggest you to try other format next.

> thank you sooo much, and sorry about the
> disturbing

   Don't worry, that's what the newsgroups are for...

   Regards,

--
Jaime


Post a reply to this message

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