POV-Ray : Newsgroups : povray.newusers : PNG not produced in command line mode : Re: PNG not produced in command line mode Server Time
28 Jul 2024 20:23:49 EDT (-0400)
  Re: PNG not produced in command line mode  
From: Vincent Le Chevalier
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.