Page 1 of 1

MaterialID or ObjectID - a little precise how to please!

Posted: Fri May 08, 2015 8:51 am
by dnsfactory
Hi all,

currently we are rendering many automotive stills and short sequences.
to finetune the very large renderings it would be nice to render out an
objectID or materialID pass. my passes all shows red in red in red. no other
color :(

so please a little how-to on:

HOW TO ASSIGN MAT OR OBJECTID IN MAYA
AND RENDER IT OUT WITH OCTANE?

thank you very much.

Re: MaterialID or ObjectID - a little precise how to please!

Posted: Fri May 08, 2015 9:12 am
by dnsfactory
SOLVED! :)

everything works fine now with the brand new Maya-Octane-Plugin-Release :)

Re: MaterialID or ObjectID - a little precise how to please!

Posted: Thu Jun 16, 2016 1:12 am
by maverickpixel
any chance you want to reveal how it was fixed?

Re: MaterialID or ObjectID - a little precise how to please!

Posted: Thu Jun 16, 2016 9:46 am
by calus
maverickpixel wrote:any chance you want to reveal how it was fixed?
The MaterialID pass works out of the box.

The ObjectID pass, on the other hand, doesn't make any sense :? , it has a very convoluted usage.


To make it work, you have to :

:arrow: For all shapes in the scene, change the "octane:geometry type" to something else than "global".

:arrow: For all shapes in the scene, change the "octane:layer ID" to "2".

:arrow: In render settings/render layers/ enable "enable layer" and put "active layer ID" to "2".

:arrow: Obviously to see the pass you have to enable it and choose it in "preview pass".


Yes object ID pass have nothing to do with octane render layers but that's the awkward Maya way :shock:,
also the render layer ID 1 is reserved for "Global" geometry type.

Actually, everything in the Maya plugin promote the use of the "Global" geometry type,
which can make sense, if you render still picture and don't need any of the Octane advanced features, it renders quicker.
But for the Maya plugin, this was really a poor choice from Jimstar ,
as Maya is a sophisticated animation software, this use case is uncommon and makes usual Maya workflows extremely convoluted with Octane...

I guess this is going to change with one of the next Kai's release, with the new "geometry collector" system.

Re: MaterialID or ObjectID - a little precise how to please!

Posted: Fri Apr 21, 2017 12:47 pm
by blackshore
@Jimstar, @k.a.schubert

I tried to extract a ID pass as in Octane. But it seems that I'm unable to edit\add a value.
In Vray it looks like this:
Image

One sets a value and once it renders it contains extra metadata in the exr file.
In post one then can mask out objects by simply changing the id number:
Image

There is no extra meta data in the exr files from octane as I'm aware of.
Can this be done using any extra attributs similar to MR?
Or are you able to add if it is currently non existent?

Re: MaterialID or ObjectID - a little precise how to please!

Posted: Fri Apr 21, 2017 4:38 pm
by calus
I think that's not possible because Octane ID pass are not true ID pass, they are color pass not integer, so can't be used as expected out of the box.

You should ask for true ID pass in the Standalone section.

Re: MaterialID or ObjectID - a little precise how to please!

Posted: Sat Apr 22, 2017 7:28 pm
by blackshore
Hopefully it's not that hard to add.