# RAYPATH problems

**URL:** <https://discourse.radiance-online.org/t/raypath-problems/1911>\
**Category:** radiance-general\
**Created:** [May 16, 2017, 4:37pm UTC](https://discourse.radiance-online.org/t/raypath-problems/1911 "2017-05-16T16:37:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Gissen](https://discourse.radiance-online.org/letter_avatar_proxy/v4/letter/d/4da419/32.png) [@David\_Gissen](https://discourse.radiance-online.org/u/David_Gissen)\
**Post date:** [May 16, 2017, 4:37pm UTC](https://discourse.radiance-online.org/t/raypath-problems/1911/1 "2017-05-16T16:37:36Z")

</div>

Hello Everyone: I learned a little unix to be able to work with Radiance  
(for some upcoming projects that require me to reconstruct very specific  
lighting conditions), but I am running into some problems:

I followed the instructions for installing Radiance on Mac OSx (10.11.6)

created a file ~/.bashrc with the following arguments:  
export PATH=/usr/local/radiance/bin:$PATH  
export RAYPATH=.:/usr/local/radiance/lib

I followed Greg W's Radiance Ch. 1 tutorial and successfully modeled a  
sphere on a pedestal and in a room (exciting).

However, when I tried to do more sophisticated work (the Image Mapping  
tutorials by Axel Jacobs in the Radiance Cookbook), I received an error  
that "picture.cal" does not exist.

I ran "ls -la /usr/local/radiance/lib" and noticed that picture.cal was  
missing. After poking around, I discovered another path to /radiance/lib  
and then ran "ls -la /opt/rad4/radiance-5.0.a.12-Darwin/usr/local/radiance/lib"  
and found picture.cal as well as many other files not in the original  
directory path above. I copied picture.cal into the directory for the  
RAYPATH, but still received the error.

Anyway, I tried re-setting RAYPATH to  
"/opt/rad4/radiance-5.0.a.12-Darwin/usr/local/radiance/lib"  
(as well as =.:/opt/rad4/radiance-5.0.a.12-Darwin/usr/local/radiance/lib)  
but I still received an error that picture.cal was missing. I finally  
figured out a very kludgy way to get the missing files in radiance/lib to  
work (by copying them into the current working directory), but I want to  
get the RAYPATH working properly.

Does anyone have advice/help?

Thank you very much, 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 16, 2017, 5:01pm UTC](https://discourse.radiance-online.org/t/raypath-problems/1911/2 "2017-05-16T17:01:52Z")

</div>

Hi David,

It's difficult to say for certain, but you should know that altering your .bashrc file only affects the next open Terminal window. It doesn't change the RAYPATH setting in the shell you already have running.

You should open a new Terminal window and enter "echo $RAYPATH" to make sure your environment setting is in effect. If it is, and you can read the associated directory, then something else must be wrong.

Cheers,  
-Greg

> **···**
>
> > From: David Gissen \<dgissen@cca.edu\>  
> > Date: May 16, 2017 9:37:36 AM PDT
> > 
> > Hello Everyone: I learned a little unix to be able to work with Radiance (for some upcoming projects that require me to reconstruct very specific lighting conditions), but I am running into some problems:
> > 
> > I followed the instructions for installing Radiance on Mac OSx (10.11.6)
> > 
> > created a file ~/.bashrc with the following arguments:  
> > export PATH=/usr/local/radiance/bin:$PATH  
> > export RAYPATH=.:/usr/local/radiance/lib
> > 
> > I followed Greg W's Radiance Ch. 1 tutorial and successfully modeled a sphere on a pedestal and in a room (exciting).
> > 
> > However, when I tried to do more sophisticated work (the Image Mapping tutorials by Axel Jacobs in the Radiance Cookbook), I received an error that "picture.cal" does not exist.
> > 
> > I ran "ls -la /usr/local/radiance/lib" and noticed that picture.cal was missing. After poking around, I discovered another path to /radiance/lib and then ran "ls -la /opt/rad4/radiance-5.0.a.12-Darwin/usr/local/radiance/lib" and found picture.cal as well as many other files not in the original directory path above. I copied picture.cal into the directory for the RAYPATH, but still received the error.
> > 
> > Anyway, I tried re-setting RAYPATH to "/opt/rad4/radiance-5.0.a.12-Darwin/usr/local/radiance/lib" (as well as =.:/opt/rad4/radiance-5.0.a.12-Darwin/usr/local/radiance/lib) but I still received an error that picture.cal was missing. I finally figured out a very kludgy way to get the missing files in radiance/lib to work (by copying them into the current working directory), but I want to get the RAYPATH working properly.
> > 
> > Does anyone have advice/help?
> > 
> > Thank you very much, David

---

<div class="post-metadata">

**Author:** ![Thomas\_Bleicher2](https://discourse.radiance-online.org/letter_avatar_proxy/v4/letter/t/7bcc69/32.png) [@Thomas\_Bleicher2](https://discourse.radiance-online.org/u/Thomas_Bleicher2)\
**Post date:** [May 16, 2017, 5:35pm UTC](https://discourse.radiance-online.org/t/raypath-problems/1911/3 "2017-05-16T17:35:22Z")

</div>

David

Check that picture.cal is indeed used as "picture.cal" and not as  
"./picture.cal". The leading "./" will only search in the current scene  
directory and ignore the RAYPATH settings.

You can also type

&nbsp;&nbsp;&nbsp;&nbsp;source ./bashrc

in the terminal to reread the configuration and apply any changes you made  
to the current bash session.

> **···**
>
> On Tue, May 16, 2017 at 11:37 AM, David Gissen \<dgissen@cca.edu\> wrote:
> 
> > Hello Everyone: I learned a little unix to be able to work with Radiance  
> > (for some upcoming projects that require me to reconstruct very specific  
> > lighting conditions), but I am running into some problems:
> > 
> > I followed the instructions for installing Radiance on Mac OSx (10.11.6)
> > 
> > created a file ~/.bashrc with the following arguments:  
> > export PATH=/usr/local/radiance/bin:$PATH  
> > export RAYPATH=.:/usr/local/radiance/lib
> > 
> > I followed Greg W's Radiance Ch. 1 tutorial and successfully modeled a  
> > sphere on a pedestal and in a room (exciting).
> > 
> > However, when I tried to do more sophisticated work (the Image Mapping  
> > tutorials by Axel Jacobs in the Radiance Cookbook), I received an error  
> > that "picture.cal" does not exist.
> > 
> > I ran "ls -la /usr/local/radiance/lib" and noticed that picture.cal was  
> > missing. After poking around, I discovered another path to /radiance/lib  
> > and then ran "ls -la /opt/rad4/radiance-5.0.a.12-Darwin/usr/local/radiance/lib"  
> > and found picture.cal as well as many other files not in the original  
> > directory path above. I copied picture.cal into the directory for the  
> > RAYPATH, but still received the error.
> > 
> > Anyway, I tried re-setting RAYPATH to "/opt/rad4/radiance-5.0.a.12-Darwin/usr/local/radiance/lib"  
> > (as well as =.:/opt/rad4/radiance-5.0.a.12-Darwin/usr/local/radiance/lib)  
> > but I still received an error that picture.cal was missing. I finally  
> > figured out a very kludgy way to get the missing files in radiance/lib to  
> > work (by copying them into the current working directory), but I want to  
> > get the RAYPATH working properly.
> > 
> > Does anyone have advice/help?
> > 
> > Thank you very much, David
> > 
> > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > Radiance-general mailing list  
> > Radiance-general@radiance-online.org  
> > [https://www.radiance-online.org/mailman/listinfo/radiance-general](https://www.radiance-online.org/mailman/listinfo/radiance-general)

---

<div class="post-metadata">

**Author:** ![Rob\_Shakespeare](https://discourse.radiance-online.org/letter_avatar_proxy/v4/letter/r/65b543/32.png) [@Rob\_Shakespeare](https://discourse.radiance-online.org/u/Rob_Shakespeare)\
**Post date:** [May 16, 2017, 6:32pm UTC](https://discourse.radiance-online.org/t/raypath-problems/1911/4 "2017-05-16T18:32:09Z")

</div>

I recently did an NREL install. Just had a look and picture.cal.. plink.cal… the woodxxx.cal are not included in the library… at least I cannot find them.

Rob

> **···**
>
> From: Thomas Bleicher \<[tbleicher@gmail.com](mailto:tbleicher@gmail.com)\>  
> Reply-To: Radiance discussion \<[radiance-general@radiance-online.org](mailto:radiance-general@radiance-online.org)\>  
> Date: Tuesday, May 16, 2017 at 1:35 PM  
> To: Radiance discussion \<[radiance-general@radiance-online.org](mailto:radiance-general@radiance-online.org)\>  
> Subject: Re: [Radiance-general] RAYPATH problems
> 
> David
> 
> Check that picture.cal is indeed used as "picture.cal" and not as "./picture.cal". The leading "./" will only search in the current scene directory and ignore the RAYPATH settings.
> 
> You can also type
> 
> &nbsp;&nbsp;&nbsp;&nbsp;source ./bashrc
> 
> in the terminal to reread the configuration and apply any changes you made to the current bash session.
> 
> On Tue, May 16, 2017 at 11:37 AM, David Gissen \<dgissen@cca.edu\<[mailto:dgissen@cca.edu](mailto:dgissen@cca.edu)\>\> wrote:  
> Hello Everyone: I learned a little unix to be able to work with Radiance (for some upcoming projects that require me to reconstruct very specific lighting conditions), but I am running into some problems:
> 
> I followed the instructions for installing Radiance on Mac OSx (10.11.6)
> 
> created a file ~/.bashrc with the following arguments:  
> export PATH=/usr/local/radiance/bin:$PATH  
> export RAYPATH=.:/usr/local/radiance/lib
> 
> I followed Greg W's Radiance Ch. 1 tutorial and successfully modeled a sphere on a pedestal and in a room (exciting).
> 
> However, when I tried to do more sophisticated work (the Image Mapping tutorials by Axel Jacobs in the Radiance Cookbook), I received an error that "picture.cal" does not exist.
> 
> I ran "ls -la /usr/local/radiance/lib" and noticed that picture.cal was missing. After poking around, I discovered another path to /radiance/lib and then ran "ls -la /opt/rad4/radiance-5.0.a.12-Darwin/usr/local/radiance/lib" and found picture.cal as well as many other files not in the original directory path above. I copied picture.cal into the directory for the RAYPATH, but still received the error.
> 
> Anyway, I tried re-setting RAYPATH to "/opt/rad4/radiance-5.0.a.12-Darwin/usr/local/radiance/lib" (as well as =.:/opt/rad4/radiance-5.0.a.12-Darwin/usr/local/radiance/lib) but I still received an error that picture.cal was missing. I finally figured out a very kludgy way to get the missing files in radiance/lib to work (by copying them into the current working directory), but I want to get the RAYPATH working properly.
> 
> Does anyone have advice/help?
> 
> Thank you very much, David
> 
> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> Radiance-general mailing list  
> [Radiance-general@radiance-online.org](mailto:Radiance-general@radiance-online.org)\<[mailto:Radiance-general@radiance-online.org](mailto:Radiance-general@radiance-online.org)\>  
> [https://www.radiance-online.org/mailman/listinfo/radiance-general](https://www.radiance-online.org/mailman/listinfo/radiance-general)
