RAYPATH problems

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

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 <[email protected]>
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

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

    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 <[email protected]> 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
[email protected]
https://www.radiance-online.org/mailman/listinfo/radiance-general

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 <[email protected]>
Reply-To: Radiance discussion <[email protected]>
Date: Tuesday, May 16, 2017 at 1:35 PM
To: Radiance discussion <[email protected]>
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

    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 <[email protected]<mailto:[email protected]>> 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
[email protected]<mailto:[email protected]>
https://www.radiance-online.org/mailman/listinfo/radiance-general