2

rpict can't find rayinit.cal

When I run this command:

rpict -av .3 .3 .3 -ab 0 -ad 512 -as 256 -dj 1 -dp 1 -dt 0 -dc 1 -lw 0.001 -x 300 -y 300 -vth -vh 180 -vv 180 -vp 19.115 6.058 1.189 -vd 0.000 -1.000 0.000 -vu 0 0 1 090_10-scene.oct

in the directory where 090_10-scene.oct is I get this error:

rpict: fatal - cannot find function file "rayinit.cal"

rayinit.cal is in my radiance /lib directory. I've tried adding radiance's /lib to PATH (already had /bin) and also tried just copying rayinit.cal directly to the /bin directory but none of these worked.

Radiance was installed by OpenStudio but I'm using Radiance on it's own now, just running this command to test something. This command worked when I was using Windows 10 but now I'm running lubuntu 14.04.

Determinant's avatar
1.1k
Determinant
asked 2017-10-30 17:44:06 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2017-10-31 08:29:36 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

2 Answers

1

Radiance uses the RAYPATH environment variable to find its /lib directory, so when you're not running from within OpenStudio, be sure RAYPATH is set.

Nathaniel Jones's avatar
531
Nathaniel Jones
answered 2017-10-30 18:36:45 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
1

Further to what Nathaniel said, I recommend adding the current directory (".") to RAYPATH. I'm sorry we were never able to reliably set these environment variables for the user when they install OpenStudio on all platforms; we can force Radiance to work properly within OpenStudio, but for reliable operation of your OpenStudio-Radiance install outseide of OpenStudio, I recommend adding the following to your ~/.bash_profile file (Mac and Linux):

PATH=.:/usr/local/radiance/bin:$PATH
RAYPATH=.:/usr/local/radiance/lib
MANPATH=/usr/local/radiance/doc/man/:$MANPATH
export PATH RAYPATH MANPATH

This will: append the current directory and the openstudio radiance install bin directory to your PATH; append current dir and openstudio radiance install lib directory to a sysvar called RAYPATH; and append the manpages location to your existing MANPATH. Having the manpages directory in your environment allows you to simply type e.g. man rcontrib and be reading the docs for rcontrib right in your shell. Pro tip!

rpg777's avatar
7k
rpg777
answered 2017-10-30 20:56:42 -0500
edit flag offensive 0 remove flag delete link

Comments

1

I would suggest adding . after $PATH instead of at the beginning as noted in this stackexchange post. Adding . to your path can have unintended consequences if you are unaware of what it means.

MarkAdams's avatar MarkAdams (2017-10-30 22:13:23 -0500) edit

Different strokes...

rpg777's avatar rpg777 (2017-10-31 11:05:43 -0500) edit

so far with things like this I've been editing the /etc/environment instead of ~/.bash_profile., any foreseen disadvantages/problems foreseen in doing it this way?

Determinant's avatar Determinant (2017-11-01 21:26:43 -0500) edit

Wow, yeah I've never heard of people using /etc/environment for these kinds of tweaks. That's more for system-level stuff, whereas the ~/.bash_profile is more for user-level customization.

rpg777's avatar rpg777 (2017-11-02 10:31:46 -0500) edit
1

Success. I ended up using ~/.profile. I had wanted it to be for all users but I actually couldn't get /etc/environment to set anything except PATH

Determinant's avatar Determinant (2017-11-04 15:54:50 -0500) edit
add a comment see more comments