Using Houdini with 3Delight

I had to do a lit­tle detec­tive work on what’s required to get Hou­dini to work smooth with 3Delight as there’s zero docs on any RMan setup stuff really.

Below is a descrip­tion that aids in cre­at­ing a local setup in you home folder (that’s how it works for me for now).

First, make sure the envi­ron­ment is set, aka ‘$HFS’ is defined. For a Bourne shell:

> source /opt/houdini/hfs8.0/houdini_setup_bash

All shaders in ‘$HFS/houdini/ri_shaders/*.sl’ must be com­piled with shaderdl:

> cd $HFS/houdini/ri_shaders > sudo shaderdl *.sl

The dis­play dri­ver & noise col­lec­tion for Ren­der­Man must be installed (‘$HEXT’ in below exam­ples would prob­a­bly be in your home folder. In my case ‘HEXT=/home/moritz/houdini8.0‘):

> proto_install.sh –i $HEXT –p RManDisplay.inst<br/> > proto_install.sh –i $HEXT –p RiHNoise.inst

The dis­play dri­ver must be linked in the ‘~/rendermn.ini’ so 3Delight can find it (or pre­ferrably become root and mod­ify the ‘$DELIGHT/rendermn.ini’). Add the fol­low­ing line to your ‘~/rendermn.ini’:

/display/dso/houdini $HEXT/ri_shaders/d_houdini.so

Ensure the shaders, noises and dis­play dri­ver can be found by 3Delight. For a Bourne shell, you might want to add the fol­low­ing to your ‘~/.basrc’ or ‘~/.zshrc’ or the like.

export DL_SHADERS_PATH=$DL_SHADERS_PATH:$HFS/houdini/ri_shaders<br/> export DL_DISPLAYS_PATH=$DL_DISPLAYS_PATH:$HEXT/ri_shaders<br/> export DL_PROCEDURALS_PATH $DL_PROCEDURALS_PATH:$HEXT/ri_shaders

Hou­dini uses PRMan’s default com­mands to ren­der and com­pile shaders and I haven’t found a way to change this (am I too lame or is Hou­dini lame in that regard?). I thus setup two shell scripts (not aliases, they work only inside shells!) that take care of this. Of course, you could also cre­ate sym­bolic links from ‘ren­der’ and ‘shader’ to ‘ren­derdl’ and ‘shaderdl’ respectively.

One is called ‘ren­der’ and contains:

#! /bin/sh<br/> renderdl

You might want to try using

#! /bin/sh<br/> ren­derdl –p 0

to have 3Delight use all CPUs of your box (I haven’t tested this)

The other one is called ‘shader’ and contains:

#! /bin/sh<br/> shaderdl

That’s it. With this setup you can build Ren­der­Man shaders and ren­der pre­views straight out of Hou­dini using 3Delight. :)

1 Comment »

  1. flux says:

    As of 3Delight 7, the last 3 shell scripts can be replaced by set­ting an envi­ron­ment variable.

    From the 3Delight docs:

    Inte­gra­tion in Hou­dini is sub­stan­tially improved by let­ting Hou­dini know that 3DELIGHT is the pre­ferred Ren­der­Man ren­derer. This is done by set­ting the HOUDINI_DEFAULT_RIB_RENDERER envi­ron­ment vari­able to ‘3Delight7.0′. This vari­able will instruct Hou­dini to use 3DELIGHT for shader com­pi­la­tion and for ren­der­ing, and also pro­vides rel­e­vant default prop­er­ties for the RIB out­put driver.

RSS feed for comments on this post. / TrackBack URI

Leave a Reply

A Comment on the iPhone 4’s “Retina Display” Debate

Sev­eral blogs and mail­ing lists I fre­quent linked to an arti­cle inves­ti­gat­ing the valid­ity of Apple’s claims that the iPhone 4′s dis­play has a ‘ter­mi­nal’ res­o­lu­tion for the appli­ca­tion at hand: namely a human read­ing its dis­play at an ‘aver­age’ dis­tance (which, being unspec­i­fied in Apple’s press release, offers quite a bit of lat­i­tude for interpretation).

The arti­cle ignores sev­eral impor­tant facts.

Con­tinue »

On Plagiarism & Creativity in the Digital Age

A while ago there was a thread on the 3D-Pro mail­ing list that diverged from its orig­i­nal sub­ject and took a turn towards a debate about copyright.

The debate resulted when some­one dis­cov­ered that part of an image was being used as a back­drop for another image with­out giv­ing proper credit. It is note­wor­thy that the lat­ter work was not of com­mer­cial nature. The poster got very upset about this nev­er­the­less. I think what upset them most was the fact that the cre­ator of the derived work claimed copy­right. The poster called that per­son an “artist” (they used quotes to express their dis­agree­ment with the use of that term) who had “the filthy guts to rip of another (real) artist’s hard work”.

Con­tinue »

Planet Japan

I arrived in Tokyo last week but due to the sen­sory over­load this city imposes on the brain, par­tic­u­larly on a geek’s brain, I needed some time to con­tem­plate (read: process) my impres­sions before writ­ing any­thing about it.

Let me start by say­ing that I feel utterly stu­pid, by now, for not hav­ing vis­ited Japan ear­lier. My aunt is Japan­ese; through her I got to watch “Naus­caä of the Val­ley of the Wind” (in Japan­ese, w/o sub­ti­tles), when I was 11 years old, in 1985, the year after the movie came out. The images never left my head and I believe they were part of the rea­son I ended up pur­su­ing a career in film.

Con­tinue »