POV-Ray : Newsgroups : povray.newusers : PNG not produced in command line mode Server Time
28 Jul 2024 18:15:33 EDT (-0400)
  PNG not produced in command line mode (Message 1 to 4 of 4)  
From: Pahidla
Subject: PNG not produced in command line mode
Date: 5 Oct 2007 09:00:00
Message: <web.470634a9b1bc15bef75836c20@news.povray.org>
Hi,

Below I included my bathroom.pov file. I render with the command

"C:Program FilesPOV-Ray for Windows v3.6binpvengine.exe" +W360 +H540 +FN
+O"C:mepovraybathroom.png" "C:mepovraybathroom.pov"  /EXIT

However, when I uncomment the commented out line, ***no PNG is created***.
When I option the same file in the GUI, it does create the .bmp (I'm not
sure how to create .png out of the GUI).

Thanks for your help!

Here's bathroom.pov:

box { < -0.5, 0.0, 0.0 > < 0.0, 8.0, 9.0 > texture {pigment { color < 1.0,
1.0, 0.8 > }}}
box { < -0.5, 0.0, -0.5 > < 7.5, 9.0, 0.0 > texture {pigment { image_map {
jpeg "terracotta5.jpg"} }}}
light_source {< 3.5, 4.0, 7.0 > color < 1.0, 1.0, 1.0 >}
camera { perspective right x*-2/3 sky z angle 50 location < 3.0, -8.0, 6.0 >
look_at < 3.0, 7.0, 6.0 >}


Post a reply to this message

From: Stephen
Subject: Re: PNG not produced in command line mode
Date: 5 Oct 2007 10:10:00
Message: <web.470644e652f8916d726bd13c0@news.povray.org>
"Pahidla" <dol### [at] yahoocom> wrote:
> Hi,
>
> Below I included my bathroom.pov file. I render with the command
>
> "C:Program FilesPOV-Ray for Windows v3.6binpvengine.exe" +W360 +H540 +FN
> +O"C:mepovraybathroom.png" "C:mepovraybathroom.pov"  /EXIT
>
> However, when I uncomment the commented out line, ***no PNG is created***.
> When I option the same file in the GUI, it does create the .bmp (I'm not
> sure how to create .png out of the GUI).
>
> Thanks for your help!
>
> Here's bathroom.pov:
>
> box { < -0.5, 0.0, 0.0 > < 0.0, 8.0, 9.0 > texture {pigment { color < 1.0,
> 1.0, 0.8 > }}}
> box { < -0.5, 0.0, -0.5 > < 7.5, 9.0, 0.0 > texture {pigment { image_map {
> jpeg "terracotta5.jpg"} }}}
> light_source {< 3.5, 4.0, 7.0 > color < 1.0, 1.0, 1.0 >}
> camera { perspective right x*-2/3 sky z angle 50 location < 3.0, -8.0, 6.0 >
> look_at < 3.0, 7.0, 6.0 >}

In the GUI open POVRAY.INI (Tools > Edit Master POVRAY.INI) and add the
line:

Output_File_Type=N

See the help 3.1.2.4.1  Output File Type


Stephen


Post a reply to this message

From: Pahidla
Subject: Re: PNG not produced in command line mode
Date: 5 Oct 2007 11:25:00
Message: <web.4706567e52f8916df75836c20@news.povray.org>
Thanks for the info, but I botched the original post because I forgot to
comment out the culprit line. The .pov file is

box { < -0.5, 0.0, 0.0 > < 0.0, 8.0, 9.0 > texture {pigment { color < 1.0,
1.0, 0.8 > }}}
//box { < -0.5, 0.0, -0.5 > < 7.5, 9.0, 0.0 > texture {pigment { image_map {
jpeg "terracotta5.jpg"} }}}
light_source {< 3.5, 4.0, 7.0 > color < 1.0, 1.0, 1.0 >}
camera { perspective right x*-2/3 sky z angle 50 location < 3.0, -8.0, 6.0 >
look_at < 3.0, 7.0, 6.0 >}

and what I'm asking is why does the presence of the commented out line
affect the generation of the png. Thanks!


Post a reply to this message

From: Vincent Le Chevalier
Subject: Re: PNG not produced in command line mode
Date: 6 Oct 2007 17:16:25
Message: <4707fb29$1@news.povray.org>

> Thanks for the info, but I botched the original post because I forgot to
> comment out the culprit line. The .pov file is
> 
> box { < -0.5, 0.0, 0.0 > < 0.0, 8.0, 9.0 > texture {pigment { color < 1.0,
> 1.0, 0.8 > }}}
> //box { < -0.5, 0.0, -0.5 > < 7.5, 9.0, 0.0 > texture {pigment { image_map {
> jpeg "terracotta5.jpg"} }}}
> light_source {< 3.5, 4.0, 7.0 > color < 1.0, 1.0, 1.0 >}
> camera { perspective right x*-2/3 sky z angle 50 location < 3.0, -8.0, 6.0 >
> look_at < 3.0, 7.0, 6.0 >}
> 
> and what I'm asking is why does the presence of the commented out line
> affect the generation of the png. Thanks!
> 
> 
If you try to render from the command line, be sure that the jpeg file 
is indeed in the directory where you launch the command. Normally povray 
should give an explicit error message if this is not the case... And 
obviously no output image can be generated.

You did not give your working directory, but if your command line looks 
like this:

C:\> "C:\Program Files\POV-Ray for Windows v3.6\bin\pvengine.exe" +W360 
+H540 +FN +O"C:\me\povray\bathroom.png" "C:\me\povray\bathroom.pov" /EXIT

then povray will try to find "terracotta5.jpg" in C:\.

With the GUI it works, because it always starts povray in the directory 
where the pov file resides (I'm not sure since I don't have a windows 
machine at hand, but I think it does).

Perhaps you can try to remove the /EXIT option, and look at the error 
log within the GUI. If it complains about not finding the jpeg image, 
then you should change your working directory to where the image is 
located, with this command:
cd "C:\me\povray\"

Hope this helps,

-- 
Vincent


Post a reply to this message

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