minLenspass

This lens shader offers an extremely sim­ply way of ren­der­ing passes includ­ing nor­mals, UVs, Object ID and Mate­r­ial ID pass.

minLenspassminLenspassminLenspassminLenspassminLenspass

Some­times you just want to ren­der out a spe­cific pass with­out re-​​rendering the entire scene or fid­dling with a com­pli­cated shad­ing net­work.
min­LensPass ren­ders out lots of extra infor­ma­tion about your scene that may be use­ful for com­posit­ing pur­poses, includ­ing nor­mals, UVs, Object ID, Mate­r­ial ID, depth, posi­tion, CPU time and alpha.
Many of these passes are par­tic­u­larly use­ful when used in com­bi­na­tion with my After Effects plug-​​in Nor­mal­ity. Or, in the case of visu­al­iz­ing CPU time, they can help you opti­mize your scene.

Usage

min­LensPass is sim­ply applied to your camera’s lens slot. Select your pass and hit ren­der! The shader requires no fur­ther setup — it just works.

Object ID Selector Update

The Object ID Selec­tor for After Effects that I announced ear­lier has seen sev­eral improve­ments in the lat­est update and is nearly ready for production.

objectidselector

The main improve­ment in this ver­sion is that the plug-​​in is no longer just a dumb keyer that lets you pick objects by their color. Instead you may opt to pick objects by their posi­tion!
This makes for a super-​​efficient work­flow: Sim­ply click on an object in your beauty pass and the plug-​​in will auto­mat­i­cally iso­late it for you — no need to switch to the Object ID pass, select a color area, switch back to the beauty and pray that you chose the right object.

It really couldn’t be easier!

If all goes well we’ll be using this plug-​​in in our upcom­ing projects.

Object ID Selector

Adobe After Effects is shipped with a num­ber of extremely capa­ble color key­ing plug-​​ins. To inter­act with my lat­est 3D shader minOb­jec­tID I required a sim­ple chroma keyer that would make it quick and sim­ple to select indi­vid­ual objects by their asso­ci­ated color ID for fur­ther pro­cess­ing as an alpha mask.

The ideal can­di­ate should ful­fill these basic require­ments and not much more:

  • Be as sim­ple and effi­cient as possible
  • Out­put a spe­cific color and not what­ever object was keyed
  • The result should be invertible
  • Be extremely pre­cise with no room for tolerance
  • Works in 8-​​, 16– and 32-​​bit color space

None of the included key­ers met all of my cri­te­ria because they either didn’t work in floating-​​point mode or were sim­ply overkill for my purposes.

I then remem­bered that I had once started to write a lit­tle chroma key­ing appli­ca­tion a few years ago and so I decided to sift through my old backup dri­ves in the hopes of find­ing this lost piece of code in order to rip out its guts and to form it into the ulti­mate Object ID selec­tor for After Effects.
For­tu­nately, I ended up find­ing the project and here I am to write about my new plug-​​in, sim­ply named Object ID Selec­tor for now.

This plug-​​in has very few para­me­ters, mak­ing it sim­ple to setup. It’s in no way an all-​​purpose key­ing solu­tion, but for select­ing IDs of objects I think this stripped down keyer is the ideal choice.

I have not yet con­sid­ered solu­tions for the alias­ing issues that might arise between over­lap­ping objects but I hope to find a prac­ti­cal answer to at least mit­i­gate the problem.

Once the plug-​​in has gone through a phase of test­ing I will prob­a­bly make the soft­ware pub­licly avail­able so it can be used in com­bi­na­tion with minOb­jec­tID.

minObjectID

My lat­est shader assigns each object in a scene a dis­tinct, ran­domly selected color, the so called Object ID. I have decided to offer this shader as a free down­load to the men­tal ray com­mu­nity.

minObjectIDminObjectID

An Object ID pass isn’t exactly pretty, but it is incred­i­bly use­ful because a com­posit­ing artist can apply effects or cor­rec­tions to indi­vid­ual objects or spe­cific areas with­out the need to ren­der sep­a­rate masks or even paint masks by hand.
My approach to this shader is some­what naïve in that it ran­domly assigns a color to each object with­out regard for adja­cent object’s col­ors or pos­si­ble rep­e­ti­tions. How­ever, the chances of the same color being picked twice by the algo­rithm are so small as to be neg­li­gi­ble for all intents and purposes.

Down­load

Down­load
minOb­jec­tID is a free shader for men­tal ray (Win­dows x86/​x64 and Mac OS X)

Usage

Once minOb­jec­tID is assigned to your objects just hit ren­der and you’ll have a ran­dom color on each and every object — no need to man­u­ally spec­ify object– or label IDs.

Note that this shader’s out­put is not com­pat­i­ble with Nuke’s or Fusion’s Objec­tID for­mat as it does not save to an inte­ger buffer in OpenEXR files.