# strange error massage from genBSDF

**URL:** <https://discourse.radiance-online.org/t/strange-error-massage-from-genbsdf/4309>\
**Category:** radiance-general\
**Created:** [May 13, 2011, 3:50am UTC](https://discourse.radiance-online.org/t/strange-error-massage-from-genbsdf/4309 "2011-05-13T03:50:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Appelfeld](https://discourse.radiance-online.org/letter_avatar_proxy/v4/letter/d/a5b964/32.png) [@David\_Appelfeld](https://discourse.radiance-online.org/u/David_Appelfeld)\
**Post date:** [May 13, 2011, 3:50am UTC](https://discourse.radiance-online.org/t/strange-error-massage-from-genbsdf/4309/1 "2011-05-13T03:50:22Z")

</div>

Hello list,

I have just recompiled Radiance because I was getting little bit strange  
results when using Three-phase method, and I was not sure if I am using most  
updated version.

I have downloaded fresh version and when I recompiled Radaince and run the  
scripts again I have got this error when running genBSDF command.

xform: cannot find file "geometry/BSDF\_old\_open.rad"  
Could not load Radiance input

command is:

genBSDF -c 1000 -r '-st 0.0001' +forward -backward -geom -dim 0 1.98 0 1.13  
-0.01 0 geometry/BSDF\_old\_open.rad\> results/xml/BSDF\_old\_open\_down.xml

The file and folder are there and it was running correctly before.

Does anyone has any suggestions how to solve this?

Thank you very much for your help.  
David

---

<div class="post-metadata">

**Author:** ![Greg\_Ward](https://discourse.radiance-online.org/user_avatar/discourse.radiance-online.org/greg_ward/32/471_2.png) [@Greg\_Ward](https://discourse.radiance-online.org/u/Greg_Ward)\
**Post date:** [May 13, 2011, 4:02am UTC](https://discourse.radiance-online.org/t/strange-error-massage-from-genbsdf/4309/2 "2011-05-13T04:02:45Z")

</div>

Hi David,

I assume you've done the obvious and made sure the file "geometry/BSDF\_old\_open.rad" exists and is readable. Try issuing the command with "./geometry/BSDF\_old\_open.rad" instead and see if that works. If it does, that means that your RAYPATH environment variable doesn't include the current working directory ('.') as part of the search. This normally goes in front, e.g., "RAYPATH=.:/usr/local/lib/ray".

The xform command is special in that it searches the RAYPATH directories rather than taking file names you give it literally. This simplifies creating a library of often-used objects, but can be confusing in other contexts.

Best,  
-Greg

> **···**
>
> > From: David Appelfeld \<d.appelfeld@gmail.com\>  
> > Date: May 12, 2011 8:50:22 PM PDT
> > 
> > Hello list,
> > 
> > I have just recompiled Radiance because I was getting little bit strange results when using Three-phase method, and I was not sure if I am using most updated version.
> > 
> > I have downloaded fresh version and when I recompiled Radaince and run the scripts again I have got this error when running genBSDF command.
> > 
> > xform: cannot find file "geometry/BSDF\_old\_open.rad"  
> > Could not load Radiance input
> > 
> > command is:
> > 
> > genBSDF -c 1000 -r '-st 0.0001' +forward -backward -geom -dim 0 1.98 0 1.13 -0.01 0 geometry/BSDF\_old\_open.rad\> results/xml/BSDF\_old\_open\_down.xml
> > 
> > The file and folder are there and it was running correctly before.
> > 
> > Does anyone has any suggestions how to solve this?
> > 
> > Thank you very much for your help.  
> > David

---

<div class="post-metadata">

**Author:** ![David\_Appelfeld](https://discourse.radiance-online.org/letter_avatar_proxy/v4/letter/d/a5b964/32.png) [@David\_Appelfeld](https://discourse.radiance-online.org/u/David_Appelfeld)\
**Post date:** [May 13, 2011, 5:51am UTC](https://discourse.radiance-online.org/t/strange-error-massage-from-genbsdf/4309/3 "2011-05-13T05:51:24Z")

</div>

Hello Grag,  
thank you, it is working now. You were right all usual.  
David

> **···**
>
> On 12 May 2011 21:02, Greg Ward \<gregoryjward@gmail.com\> wrote:
> 
> > Hi David,
> > 
> > I assume you've done the obvious and made sure the file  
> > "geometry/BSDF\_old\_open.rad" exists and is readable. Try issuing the  
> > command with "./geometry/BSDF\_old\_open.rad" instead and see if that works.  
> > If it does, that means that your RAYPATH environment variable doesn't  
> > include the current working directory ('.') as part of the search. This  
> > normally goes in front, e.g., "RAYPATH=.:/usr/local/lib/ray".
> > 
> > The xform command is special in that it searches the RAYPATH directories  
> > rather than taking file names you give it literally. This simplifies  
> > creating a library of often-used objects, but can be confusing in other  
> > contexts.
> > 
> > Best,  
> > -Greg
> > 
> > \> From: David Appelfeld \<d.appelfeld@gmail.com\>  
> > \> Date: May 12, 2011 8:50:22 PM PDT  
> > \>  
> > \> Hello list,  
> > \>  
> > \> I have just recompiled Radiance because I was getting little bit strange  
> > results when using Three-phase method, and I was not sure if I am using most  
> > updated version.  
> > \>  
> > \> I have downloaded fresh version and when I recompiled Radaince and run  
> > the scripts again I have got this error when running genBSDF command.  
> > \>  
> > \> xform: cannot find file "geometry/BSDF\_old\_open.rad"  
> > \> Could not load Radiance input  
> > \>  
> > \>  
> > \> command is:  
> > \>  
> > \> genBSDF -c 1000 -r '-st 0.0001' +forward -backward -geom -dim 0 1.98 0  
> > 1.13 -0.01 0 geometry/BSDF\_old\_open.rad\> results/xml/BSDF\_old\_open\_down.xml  
> > \>  
> > \>  
> > \> The file and folder are there and it was running correctly before.  
> > \>  
> > \> Does anyone has any suggestions how to solve this?  
> > \>  
> > \> Thank you very much for your help.  
> > \> David
> > 
> > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > Radiance-general mailing list  
> > Radiance-general@radiance-online.org  
> > [http://www.radiance-online.org/mailman/listinfo/radiance-general](http://www.radiance-online.org/mailman/listinfo/radiance-general)
