Sonderwoods / MantaRay

A Grasshopper plugin to connect with Radiance through SSH
GNU Affero General Public License v3.0
18 stars 2 forks source link
aec architecture daylight daylighting grasshopper grasshopper3d radiance rhino3d rhinoceros

Project MantaRay (GrasshopperRadianceLinuxConnector)

An educational tool to work directly with Radiance through Grasshopper. This allows you to utilize all the linux native Radiance commands including the GUI tools such as rvu, piping etc.

Presentation video

Please see the presentation video of the tool at the Radiance Workshop image


Components:

SSH Connect

RadViewer

Mesh2obj (and obj2rad)

Setup Globals (and Apply Globals)

Execute Async

Async SSH Components in place (based on the speckle async)


CreateView

ManPages

Disclaimer:

This is a personal project that I wrote during my paternity leave and it comes with absolutely no warranties. I was reading up on radiance and found the need for a lightweight connection from grasshopper without all the extra jazz from current workflows.

Todo:

Check out the issues on my todo list here.


Preparations

Setup Windows Subsystem Linux (WSL) and radiance

(I'll see if I can make a youtube vid at some point)

Setup SSH in linux and connect to it from Windows

If it prompts you for your password you should be good!

Adding Intel Open Image Denoiser

Download the tar.gz here Place it somewhere on your linux machine, for instance in /usr/local/OpenImageDenoiser

$ sudo mkdir /usr/local/OpenImageDenoiser
$ sudo tar –xvzf /mnt/c/oidn-1.4.3.x86_64.linux.tar.gz –C /usr/local/OpenImageDenoiser

Move from /usr/OpenImageDenoiser/ to /usr/OpenImageDenoiser/oidn-1.4.3.x86_64.linux to /usr/OpenImageDenoiser:

  $ sudo mv -v /usr/local/OpenImageDenoiser/oidn-1.4.3.x86_64.linux/* /usr/local/OpenImageDenoiser

add to path:

  $ sudo nano ~/.bashrc

change the paths to include it. Add this line in the end:

  export PATH=/usr/local/OpenImageDenoiser/bin:$PATH

test that it works (takes 1-2 min to run):

  $ cd /usr/local/OpenImageDenoiser/bin/
  $ ./oidnTest

EDIT: I havent found a good implementation of above yet. Quick fix is to use their CLI locally on the windows computer https://github.com/DeclanRussell/IntelOIDenoiser