[Radiance-general] Getting Started

Guglielmetti, Robert Robert.Guglielmetti at nrel.gov
Tue Oct 4 09:50:16 PDT 2016


The NREL (Mac) installer does not set them for you, sorry.  Andy McNeil used to have a YouTube video that showed exactly how to set these env vars, specifically for Radiance, but I can't find it. There are definitely links in the radiance-general archives.

I would definitely recommend setting the RAYPATH env var. Some of the Radiance internals rely upon it too, I believe — it's not just certain scenes.

Here is what I put in my .bash_profile for Radiance to work; if you install Radiance with the NREL installer and don't change the default install location, these are the paths you want. :

## Radiance path crap
export PATH=$PATH:.:/usr/local/radiance/bin
export RAYPATH=.:/usr/local/radiance/lib
export MANPATH=$MANPATH:/usr/local/radiance/man
export MDIR=/usr/local/radiance/lib/

I forget what "MDIR" is for. You may not need that one. The MANPATH line adds the Radiance "man pages" (i.e., documentation) to your system's man page search path. That way you can simply type "man rcontrib" at the command to pull up the man page for rcontrib, for example.

Note that this .bash_profile is hidden, because the filename begins with a dot ("."). File lives in your home directory ("~"), aka /Users/[your_user_name]/.bash_profile. Very easy to create/edit this file from the command line using vi, or pico.

Good luck!

- Rob

On 10/4/16, 7:22 AM, "Thomas Bleicher" <tbleicher at gmail.com<mailto:tbleicher at gmail.com>> wrote:

Abdul

I am not familiar with the internals of the NREL installer. Perhaps it already has done the job for you. Open a terminal and type

which rpict

If it comes back with a path like /usr/local/bin or /usr/local/radiance/bin you are already set to use Radiance. The RAYPATH variable is not strictly necessary but some scene setups expect it to be available.

A general discussion about setting environment variables in Mac OS (or the previous versions) is here:

http://stackoverflow.com/questions/603785/environment-variables-in-mac-os-x/4567308#4567308

It's a few years old by now but I think most of this still applies. If you are new to the Unix shell environment you can use this introduction to setting variables:

http://osxdaily.com/2015/07/28/set-enviornment-variables-mac-os-x/

Please note that you can damage your user profile with these changes, which could make it impossible to the terminal to clean up the mess. If you are new to this you should ask around if someone has experience with Mac OS or Linux and ask them to assist you. You can set up a second user and try your modifications in that profile first. If it get's damaged you can just delete it. In any case, make a backup!

Regards,
Thomas


On Tue, Oct 4, 2016 at 5:34 AM, A.M. Irsyadi <munirsyadi at gmail.com<mailto:munirsyadi at gmail.com>> wrote:

I installed Radiance on OSX 10.11.6 using this:
https://github.com/NREL/Radiance/releases/download/5.0/radiance-5.0.0-Darwin.dmg

in a tutorial:

"Next you need to add "/usr/local/radiance/bin” to your system path, and you need to create a new system variable called “RAYPATH” and set it to "/usr/local/radiance/lib”. You can/should also add "/usr/local/radiance/man” to your MANPATH system variable.”

please give a step-by-step guide to add this system variable on mac.

then, how to check whether properly installed or not.

Thanks,

Abdul

On Mar 24, 2016, at 11:22 PM, Randolph M. Fritz <rmfritz3 at gmail.com<mailto:rmfritz3 at gmail.com>> wrote:

Also, good introductions to the bash and csh shells, as well as Unix itself, are probably in order. But this is a lot of study. Still, the following introduction, from NYU's high-performance computing center, might perhaps be useful:
  Introduction to Unix/Linux - https://wikis.nyu.edu/pages/viewpage.action?pageId=53859101

--
Randolph M. Fritz, Lighting Design and Simulation
+1 206 659-8617<tel:%2B1%20206%20659-8617> || rmfritz3 at gmail.com<mailto:rmfritz3 at gmail.com>

On Tue, Mar 22, 2016 at 9:28 AM, Compagnon Raphaël <Raphael.Compagnon at hefr.ch<mailto:Raphael.Compagnon at hefr.ch>> wrote:
Hi Abdul

You can also find an old (written 19 years ago...) Radiance tutorial from me on: http://radsite.lbl.gov/radiance/refer/index.html#cat4
I can nevertheless ensure you that the basic radiance commands that are presented in this tutorial are remaining exactly the same in today's Radiance version. Since that time there are only a few commands that have changed their names, namely:
rview became rvu
gcalc became icalc

I also add the same remarks as Andy...

Hope this will of help.

Raphaël

_______________________________________________
Radiance-general mailing list
Radiance-general at radiance-online.org<mailto:Radiance-general at radiance-online.org>
http://www.radiance-online.org/mailman/listinfo/radiance-general

_______________________________________________
Radiance-general mailing list
Radiance-general at radiance-online.org<mailto:Radiance-general at radiance-online.org>
http://www.radiance-online.org/mailman/listinfo/radiance-general


_______________________________________________
Radiance-general mailing list
Radiance-general at radiance-online.org<mailto:Radiance-general at radiance-online.org>
http://www.radiance-online.org/mailman/listinfo/radiance-general





More information about the Radiance-general mailing list