POV-Ray : Newsgroups : povray.unix : POVRAY include bug ??? Server Time
26 Dec 2024 15:32:19 EST (-0500)
  POVRAY include bug ??? (Message 1 to 6 of 6)  
From: Fabien HENON
Subject: POVRAY include bug ???
Date: 1 May 2003 14:36:28
Message: <3eb1692c@news.povray.org>
Bob R has reported a problem when rendering the balcony scene in the 
advanced directory using pyvon.


I found out that I had the same problem when using pyvon.

The command that Pyvon launches on my computer is the one that follows.

"/home/fabien/mlpov/82/povray-3.50c/src/povray 
Input_File_Name="/home/fabien/mlpov/povray-3.50c/scenes/advanced/balcony/balcony.pov" 
  -l/home/fabien/mlpov/povray-3.50c/scenes/advanced/balcony +v +p 
-l/mnt/win_c/temp -f +a0.1 +am2 
-l/home/fabien/mlpov/povray-3.50c/include +GF${HOME}/err.txt +q9"

When I use a console, cd to the balcony directory, starts povray to 
raytrace the balcony scene, it works.

BUT, when I use a console, remain in my home directory (ie /home/fabien) 
and render the balcony scene, I get the same error as when I use pyvon.

Below is a copy of my console. On the first line, the command line that 
starts pov and the messages that POV outputs.
......

> [fabien@localhost fabien]$ /home/fabien/mlpov/82/povray-3.50c/src/povray
+i/home/fabien/mlpov/povray-3.50c/scenes/advanced/balcony/balcony.pov  +v +p -f +dgt
-l/home/fabien/mlpov/povray-3.50c/scenes/advanced/balcony
> Persistence of Vision(tm) Ray Tracer Version 3.5 Unix (.Linux.gcc)
>   This is an unofficial version (mlpov 0.82) compiled by:
>    Mael (mae### [at] hotmailcom)
>    The POV-Ray Team(tm) is not responsible for supporting this version.
> Copyright 1991-2002 POV-Ray Team(tm)
> Parsing Options
>   Input file: /home/fabien/mlpov/povray-3.50c/scenes/advanced/balcony/balcony.pov
(compatible to version 3.5)
>   Remove bounds........On  Split unions........Off
>   Library paths: /usr/local/share/povray-3.5
>     /usr/local/share/povray-3.5/include
>     /home/fabien/mlpov/povray-3.50c/scenes/advanced/balcony
> Output Options
>   Image resolution 320 by 240 (rows 1 to 240, columns 1 to 320).
> Warning:   Rendering to screen only. No file output.
> 
>   Graphic display......On  (type: G, palette: T, gamma:  2.2)
>   Mosaic preview......Off
>   CPU usage histogram.Off
>   Continued trace.....Off  Allow interruption..Off  Pause when done......On
>   Verbose messages.....On
> Tracing Options
>   Quality:  9
>   Bounding boxes.......On  Bounding threshold: 3
>   Light Buffer.........On  Vista Buffer.........On  Draw Vista Buffer...Off
>   Antialiasing........Off
> Animation Options
>   Clock value....   0.000  (Animation off)
> Redirecting Options
>   All Streams to console.........Off
>   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........................................................................
> ...............................................................................
> ...............................................................................
> ...............................................................................
> ...............................................................................
> ...............................................................................
> ...............................................................................
> ...............................................................................
> ...............................................................................
> ...............................................................................
> ...............................................................................
> ...............................................................................
> ...............................................................................
> ...............................................................................
> ...............................................................................
> ...............................................................................
> ...............................................................................
> ...............................................................................
> ...............................................................................
> ...............................................................................
> ...............................................................................
> ...............................................................................
> ...........................................File:
/usr/local/share/povray-3.5/include/shapes.inc  Line: 464
> Warning:
> Round_Box() macro called with z-size < Radius,
> results may not be as expected
> 
> 
> .File: /usr/local/share/povray-3.5/include/glass_old.inc  Line: 17
> Warning:
> Due to changes in version 3.1, you must add interior {I_Glass} to all objects
calling glass_old.inc textures and finishes...
> 
> 
> ...File: /home/fabien/mlpov/povray-3.50c/scenes/advanced/balcony/table_stuff.inc 
Line: 99
> 
> 
> 
> union {
> 
> 
>   object {
> 
> 
>     Glass
> 
> 
>  <----ERROR
> 
> 
> Parse Error: Expected 'object', undeclared identifier 'Glass' found instead

My include files are correctly quoted in my .povrayrc as shown above

NOTE :
There is a glass.inc in /usr/local/share/povray-3.5/include AND in the 
balcony directory.
Could this be the problem ?


Something else : I did the same test as root : There is no 
writing-reading problems.


Could some of you try the same : Starts a raytrace of balcony.pov from 
your home directory or anywhere else but the balcony directory and tell 
me if it works.



Thanks


Fabien H


Post a reply to this message

From: Steve
Subject: Re: POVRAY include bug ???
Date: 1 May 2003 19:49:20
Message: <slrnbb3cdp.77q.steve@zeropps.org.uk>
On Thu, 01 May 2003 20:36:08 +0000, Fabien HENON wrote:
> Bob R has reported a problem when rendering the balcony scene in the 
> advanced directory using pyvon.
> 
> 
> I found out that I had the same problem when using pyvon.
> 
> The command that Pyvon launches on my computer is the one that follows.
> 
> "/home/fabien/mlpov/82/povray-3.50c/src/povray 
>
Input_File_Name="/home/fabien/mlpov/povray-3.50c/scenes/advanced/balcony/balcony.pov" 
>   -l/home/fabien/mlpov/povray-3.50c/scenes/advanced/balcony +v +p 
> -l/mnt/win_c/temp -f +a0.1 +am2 
> -l/home/fabien/mlpov/povray-3.50c/include +GF${HOME}/err.txt +q9"

I have a simplified command line here which gives similar results:

[sjlen:sjlen]$ povray -i/usr/local/lib/povray-3.5/scenes/advanced/balcony/balcony.pov


Parsing......File: /usr/local/lib/povray-3.5/scenes/advanced/balcony/balcony.pov 
Line: 158
Error: Could not find file 'sky.inc'

File: /usr/local/lib/povray-3.5/scenes/advanced/balcony/balcony.pov  Line: 158



/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/





#include "sky.inc"


 <----ERROR


Parse Error: Cannot open include file sky.inc.

File: /usr/local/lib/povray-3.5/scenes/advanced/balcony/balcony.pov  Line: 158
Warning: Check that the file is in a directory specifed with a +L switch
or 'Library_Path=' .INI item. Standard include files are in the
include directory or folder. Please read your documentation carefully.

################################  End of POV output #####################

In the directory /usr/local/lib/povray-3.5/scenes/advanced/balcony/ I have
the following files:

[sjlen:balcony]$ ls
balcony.pov   chair.inc  glass.inc  table.inc        table_stuff.inc  water.inc
building.inc  cloth.inc  sky.inc    table_cloth.inc  terrain.inc

If I cd to the balcony directory it renders fine. 

-- 
sphere{z*5,1pigment{rgb.5}finish{reflection.3specular.5}}box{<-50,-3,-50>
<50,-2,50>pigment{checker/*\__\\__/  * \_\\__*/scale 2}finish{ambient.7}}
light_source/*__\\__\\__\\__\\__\(    ~ )\__\\__\\__\\__\\*/{<2,5,1>*4,1} 
/*\\__\\__\\__\\__\\__\\__\\__\\__\~  -/__\\__\\__\\__\\__\\*//* Steve */


Post a reply to this message

From: Roz
Subject: Re: POVRAY include bug ???
Date: 2 May 2003 00:37:05
Message: <3eb1f5f1$1@news.povray.org>
Fabien HENON wrote:
> Bob R has reported a problem when rendering the balcony scene in the 
> advanced directory using pyvon.
> 
> 
> I found out that I had the same problem when using pyvon.
> 
> The command that Pyvon launches on my computer is the one that follows.
> 
> "/home/fabien/mlpov/82/povray-3.50c/src/povray 
>
Input_File_Name="/home/fabien/mlpov/povray-3.50c/scenes/advanced/balcony/balcony.pov" 
>  -l/home/fabien/mlpov/povray-3.50c/scenes/advanced/balcony +v +p 
> -l/mnt/win_c/temp -f +a0.1 +am2 
> -l/home/fabien/mlpov/povray-3.50c/include +GF${HOME}/err.txt +q9"
> 
> When I use a console, cd to the balcony directory, starts povray to 
> raytrace the balcony scene, it works.
> 
> BUT, when I use a console, remain in my home directory (ie /home/fabien) 
> and render the balcony scene, I get the same error as when I use pyvon.
> 
> Below is a copy of my console. On the first line, the command line that 
> starts pov and the messages that POV outputs.
> ......
> 
>> ...........................................File: 
[snip part of output dump]
>> ...File: 
>> /home/fabien/mlpov/povray-3.50c/scenes/advanced/balcony/table_stuff.inc  
>> Line: 99
>>
>>
>>
>> union {
>>
>>
>>   object {
>>
>>
>>     Glass
>>
>>
>>  <----ERROR
>>
>>
>> Parse Error: Expected 'object', undeclared identifier 'Glass' found 
>> instead
> 
> 
> My include files are correctly quoted in my .povrayrc as shown above
> 
> NOTE :
> There is a glass.inc in /usr/local/share/povray-3.5/include AND in the 
> balcony directory.
> Could this be the problem ?
> 
> 
> Something else : I did the same test as root : There is no 
> writing-reading problems.
> 
> 
> Could some of you try the same : Starts a raytrace of balcony.pov from 
> your home directory or anywhere else but the balcony directory and tell 
> me if it works.

I get the same behavior as you do:

$ povray -l/usr/share/povray-3.5/scenes/advanced/balcony 
-i/usr/share/povray-3.5/scenes/advanced/balcony/balcony.pov

has the Glass object error in table_stuff.inc. It looks like the library 
parameter is being referenced at the first level of including because it 
does correctly find table_stuff.inc (as well as sky.inc) in the balcony 
directory. Both of those are includes in the balcony.pov scene file. But 
the passed library path doesn't seem to carry into the included files. 
In this case balcony.pov includes table_stuff.inc, so far so good. But 
table_stuff.inc includes glass.inc and this is where it is breaking 
down. So the includes of includes are not being looked for in the 
library path parameter or the order of looking changed. At least that's 
the behavior I'm seeing here. I have no idea why though.

I wonder if it works for include files that have includes that do not 
name clash with the existing standard includes. It looks like it works 
correctly in such cases. The balcony.pov scene includes table_cloth.inc 
before including table_stuff.inc. table_cloth.inc includes cloth.inc and 
  POV-Ray doesn't choke on that include. So maybe the order of includes 
gets shuffled at some point or is search differently? Puzzling stuff!

-Roz


Post a reply to this message

From: Bob R
Subject: Re: POVRAY include bug ???
Date: 2 May 2003 02:02:01
Message: <3eb209d9@news.povray.org>
Roz wrote in message <3eb1f5f1$1@news.povray.org>...
>Fabien HENON wrote:
>> Bob R has reported a problem when rendering the balcony scene in
the
>> advanced directory using pyvon.
>>
>> I found out that I had the same problem when using pyvon.
><snip>
>> NOTE :
>> There is a glass.inc in /usr/local/share/povray-3.5/include AND in
the
>> balcony directory.
>> Could this be the problem ?
>>
>> Could some of you try the same : Starts a raytrace of balcony.pov
from
>> your home directory or anywhere else but the balcony directory and
tell
>> me if it works.
>
>I get the same behavior as you do:
>
>$ povray -l/usr/share/povray-3.5/scenes/advanced/balcony
>-i/usr/share/povray-3.5/scenes/advanced/balcony/balcony.pov
>
>has the Glass object error in table_stuff.inc. It looks like the
library
>parameter is being referenced at the first level of including because
it
>does correctly find table_stuff.inc (as well as sky.inc) in the
balcony
>directory. Both of those are includes in the balcony.pov scene file.
But
>the passed library path doesn't seem to carry into the included
files.
>In this case balcony.pov includes table_stuff.inc, so far so good.
But
>table_stuff.inc includes glass.inc and this is where it is breaking
>down. So the includes of includes are not being looked for in the
>library path parameter or the order of looking changed. At least
that's
>the behavior I'm seeing here. I have no idea why though.
>
>I wonder if it works for include files that have includes that do not
>name clash with the existing standard includes. It looks like it
works
>correctly in such cases. The balcony.pov scene includes
table_cloth.inc
>before including table_stuff.inc. table_cloth.inc includes cloth.inc
and
>  POV-Ray doesn't choke on that include. So maybe the order of
includes
>gets shuffled at some point or is search differently? Puzzling stuff!
>-Roz

I re-named the local "glass.inc", and "balcony.pov" renders OK using
Pyvon.

It may be a POVray(Linux) problem.

I've been trying out Kdevelop/Qt. I put together a little program[1]
with a dialog that runs POV. No "cd" to any directory, simply calls
povray with a path/filename, and it can't find "sky.inc" when I try
"/usr/..../povray-3.5/.../balcony.pov". On renders that do work, it
puts the *.png in the directory where the executable is run from(that
doesn't seem right, even with my weak little program).
Over a month in Linux, and I can't figure out CWD (Current Working
Directory). <G>

[1] - two days reading, 20 minutes work!! <G> I can't believe it even
works!
--
Bob R
POVrookie
--
MinGW (GNU compiler): http://www.mingw.com/
Dev-C++ IDE: http://www.bloodshed.net/
V IDE & V GUI: http://www.objectcentral.com/
POVray: http://www.povray.org/
Good C++ book: http://www.mindview.net/Books
alt.comp.lang.learn.c-c++: ftp://snurse-l.org/pub/acllc-c++/faq


Post a reply to this message

From: Fabien HENON
Subject: Re: POVRAY include bug ???
Date: 2 May 2003 19:02:42
Message: <3eb2f912@news.povray.org>
Bob R wrote:
> Roz wrote in message <3eb1f5f1$1@news.povray.org>...
> 
>>Fabien HENON wrote:
>>
>>>Bob R has reported a problem when rendering the balcony scene in
>>
> the
> 
>>>advanced directory using pyvon.
>>>
>>>I found out that I had the same problem when using pyvon.
>>
>><snip>
>>
>>>NOTE :
>>>There is a glass.inc in /usr/local/share/povray-3.5/include AND in
>>
> the
> 
>>>balcony directory.
>>>Could this be the problem ?
>>>
>>>Could some of you try the same : Starts a raytrace of balcony.pov
>>
> from
> 
>>>your home directory or anywhere else but the balcony directory and
>>
> tell
> 
>>>me if it works.
>>
>>I get the same behavior as you do:
>>
>>$ povray -l/usr/share/povray-3.5/scenes/advanced/balcony
>>-i/usr/share/povray-3.5/scenes/advanced/balcony/balcony.pov
>>
>>has the Glass object error in table_stuff.inc. It looks like the
> 
> library
> 
>>parameter is being referenced at the first level of including because
> 
> it
> 
>>does correctly find table_stuff.inc (as well as sky.inc) in the
> 
> balcony
> 
>>directory. Both of those are includes in the balcony.pov scene file.
> 
> But
> 
>>the passed library path doesn't seem to carry into the included
> 
> files.
> 
>>In this case balcony.pov includes table_stuff.inc, so far so good.
> 
> But
> 
>>table_stuff.inc includes glass.inc and this is where it is breaking
>>down. So the includes of includes are not being looked for in the
>>library path parameter or the order of looking changed. At least
> 
> that's
> 
>>the behavior I'm seeing here. I have no idea why though.
>>
>>I wonder if it works for include files that have includes that do not
>>name clash with the existing standard includes. It looks like it
> 
> works
> 
>>correctly in such cases. The balcony.pov scene includes
> 
> table_cloth.inc
> 
>>before including table_stuff.inc. table_cloth.inc includes cloth.inc
> 
> and
> 
>> POV-Ray doesn't choke on that include. So maybe the order of
> 
> includes
> 
>>gets shuffled at some point or is search differently? Puzzling stuff!
>>-Roz
> 
> 
> I re-named the local "glass.inc", and "balcony.pov" renders OK using
> Pyvon.
> 
> It may be a POVray(Linux) problem.
> 
> I've been trying out Kdevelop/Qt. I put together a little program[1]
> with a dialog that runs POV. No "cd" to any directory, simply calls
> povray with a path/filename, and it can't find "sky.inc" when I try
> "/usr/..../povray-3.5/.../balcony.pov".
That's why I had to add the path to the current working directory
as in
-l/path/to/the/location/of/the/pov/file

  On renders that do work, it
> puts the *.png in the directory where the executable is run from(that
> doesn't seem right, even with my weak little program).
> Over a month in Linux, and I can't figure out CWD (Current Working
> Directory). <G>
> 
> [1] - two days reading, 20 minutes work!! <G> I can't believe it even
> works!
> --
> Bob R
> POVrookie
> --
> MinGW (GNU compiler): http://www.mingw.com/
> Dev-C++ IDE: http://www.bloodshed.net/
> V IDE & V GUI: http://www.objectcentral.com/
> POVray: http://www.povray.org/
> Good C++ book: http://www.mindview.net/Books
> alt.comp.lang.learn.c-c++: ftp://snurse-l.org/pub/acllc-c++/faq
> 
>


Post a reply to this message

From: Fabien HENON
Subject: Re: POVRAY include bug ???
Date: 2 May 2003 19:02:53
Message: <3eb2f91d@news.povray.org>
Roz wrote:
> Fabien HENON wrote:
> 
>> Bob R has reported a problem when rendering the balcony scene in the 
>> advanced directory using pyvon.
>>
>>
>> I found out that I had the same problem when using pyvon.
>>
>> The command that Pyvon launches on my computer is the one that follows.
>>
>> "/home/fabien/mlpov/82/povray-3.50c/src/povray 
>>
Input_File_Name="/home/fabien/mlpov/povray-3.50c/scenes/advanced/balcony/balcony.pov" 
>>  -l/home/fabien/mlpov/povray-3.50c/scenes/advanced/balcony +v +p 
>> -l/mnt/win_c/temp -f +a0.1 +am2 
>> -l/home/fabien/mlpov/povray-3.50c/include +GF${HOME}/err.txt +q9"
>>
>> When I use a console, cd to the balcony directory, starts povray to 
>> raytrace the balcony scene, it works.
>>
>> BUT, when I use a console, remain in my home directory (ie 
>> /home/fabien) and render the balcony scene, I get the same error as 
>> when I use pyvon.
>>
>> Below is a copy of my console. On the first line, the command line 
>> that starts pov and the messages that POV outputs.
>> ......
>>
>>> ...........................................File: 
>>
> [snip part of output dump]
> 
>>> ...File: 
>>> /home/fabien/mlpov/povray-3.50c/scenes/advanced/balcony/table_stuff.inc  
>>> Line: 99
>>>
>>>
>>>
>>> union {
>>>
>>>
>>>   object {
>>>
>>>
>>>     Glass
>>>
>>>
>>>  <----ERROR
>>>
>>>
>>> Parse Error: Expected 'object', undeclared identifier 'Glass' found 
>>> instead
>>
>>
>>
>> My include files are correctly quoted in my .povrayrc as shown above
>>
>> NOTE :
>> There is a glass.inc in /usr/local/share/povray-3.5/include AND in the 
>> balcony directory.
>> Could this be the problem ?
>>
>>
>> Something else : I did the same test as root : There is no 
>> writing-reading problems.
>>
>>
>> Could some of you try the same : Starts a raytrace of balcony.pov from 
>> your home directory or anywhere else but the balcony directory and 
>> tell me if it works.
> 
> 
> I get the same behavior as you do:
> 
> $ povray -l/usr/share/povray-3.5/scenes/advanced/balcony 
> -i/usr/share/povray-3.5/scenes/advanced/balcony/balcony.pov
> 
> has the Glass object error in table_stuff.inc. It looks like the library 
> parameter is being referenced at the first level of including because it 
> does correctly find table_stuff.inc (as well as sky.inc) in the balcony 
> directory. Both of those are includes in the balcony.pov scene file. But 
> the passed library path doesn't seem to carry into the included files. 
> In this case balcony.pov includes table_stuff.inc, so far so good. But 
> table_stuff.inc includes glass.inc and this is where it is breaking 
> down. So the includes of includes are not being looked for in the 
> library path parameter or the order of looking changed. At least that's 
> the behavior I'm seeing here. I have no idea why though.
> 
> I wonder if it works for include files that have includes that do not 
> name clash with the existing standard includes. It looks like it works 
> correctly in such cases. The balcony.pov scene includes table_cloth.inc 
> before including table_stuff.inc. table_cloth.inc includes cloth.inc and 
>  POV-Ray doesn't choke on that include. So maybe the order of includes 
> gets shuffled at some point or is search differently? Puzzling stuff!
> 
> -Roz
> 
I guess, that's something we will have to ask to the advanced users group.
I think you have to look at the code to know how the include files 
behave when they are deeply nested and what happens when the same name 
is used more than one time.
I renamed glass.inc to verres.inc and changed the files accordingly and 
it works.
So in this case, I am glad to know that pyvon is not the culprit.


Fabien H


Post a reply to this message

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