Grouping Membership

I had a visual look I wanted that involved playing with overlay mode looks so was looking around for a way of outputting geometry in its own display.
Now there are a fair number of objects so I was looking for something similar to outputting AOVS where there is no extra render grunt required to output custom image displays.
I was pointed in the right direction by Michael aka ogre over at the 3delight forum who brought to my attention this technique. Thanks also for the code guidance.

overview

http://www.3delight.com/en/uploads/docs/3delight/3delight_45.html

3Delight can renderer an arbitrary number of the so called “secondary displays”. Each secondary display can be fed with certain variables from shaders attached to the geometry. This is handy to output many different variables for later compositing or number crunching. But what if one wants to have different geometry, not only output variables, in each display? This functionality is achieved using the grouping membership attribute and the special string subset' parameter that is accepted by RiDisplay. The operation is summerized in two steps:

### PUT THIS IS MEL FILE "MakeSeparateDisplays.mel" and CALL WITH
### "MakeSeparateDisplays()"; IN PostOption MEL OF RENDER PASS
### adjust // for tiff or exr output=
=
## VER 1 WORKING WITH LARGE NUMBER OF INSTANCES
## Based on putting in each group of geo instances into its own 3delight geo attribute i.e delightGeoAttribs1, delightGeoAttribs2 etc
## It is assumed there will be folders called "delightGeoAttribs1_Folder", "delightGeoAttribs2_Folder" etc in the "c/temp/"
## Code will save files into the appropriate folder

## VERSION 2 WORKING WITH NON_INSTANCED GEO
## alternatively its possible to use sets see "string $objects[] =
sets -q “MyObjects”;"
## instead of "string $objects[] =
ls -type delightGeoAttribs`;” as in VER 1 – just comment out which ever one you dont wont to use
## and ensure ALL OBJECTS NEED TO BE IN A SET CALLED “MyObjects”

##### PUT THIS IN PRE-GEO MEL IN ATTRIBUTE ATTACHED TO OBJECTS

############ MEL SCRIPT “ImageFrame.mel”

Leave a Reply

Your email address will not be published. Required fields are marked *