Page 1 of 1

Object ID & Material ID render pass

Posted: Mon May 30, 2016 6:26 pm
by zoulag3d
Hi,

I have a rather simple scene, 4 boxes and a curved gound plane as my backdrop. What I want is to make a render pass from the Object ID or the Material ID for compositing purposes. I set up the Material IDs (all the same for the 4 boxes and a different one for the backdrop), but when I rendered the pass, the 4 boxes have different colors. The same happen with the Object IDs. Then I tried configuring the Object Layer IDs from the Octane properties (right mouse click on the selected object --> Octane properties), but nothing changed. I also tried with the "Movable Proxy" option checked and it gave me different colors for all the objects once again. I noticed though, that by rendering a Layer ID pass it gave me the correct results.
I 'd like to know what am I doing wrong and what is the correct procedure for creating Object and Material IDs.
I am using the version 3.0-3.13 of the plugin.

Thank you for your support.

Image

Image

Image

Re: Object ID & Material ID render pass

Posted: Mon May 30, 2016 7:08 pm
by ThaRaven
assign the same material to all boxes? then all have the same material id

Re: Object ID & Material ID render pass

Posted: Mon May 30, 2016 7:23 pm
by zoulag3d
Yes I did. All 4 boxes have the same Mat ID.
Thanks man for replying.

Re: Object ID & Material ID render pass

Posted: Mon May 30, 2016 7:26 pm
by ThaRaven
just tried it.. when i assign "the Same" Material to all Boxes, then all show the Same Coller when i pick Material ID from the Render Rollout

Re: Object ID & Material ID render pass

Posted: Mon May 30, 2016 7:28 pm
by zoulag3d
Sorry, I got confused. The 4 boxes have different materials, but the same Material ID.

edit:
The 4 boxes have different wrapping.

Image

Re: Object ID & Material ID render pass

Posted: Mon May 30, 2016 9:32 pm
by ThaRaven
would'nt it be easyer to use Render Layer, and use the "Render Layer Mask" Pass? or the Render Layer ID
Select all Boxes and Rightclick "Octane Properties" set them to Renderlayer 2 or someting..

Re: Object ID & Material ID render pass

Posted: Mon May 30, 2016 11:21 pm
by zoulag3d
That's what I did, as a workaround for the Object IDs. But my main goal was to have an extra pass from the Material IDs because the material of the boxes have 2 different materials under a Mix Material, a glossy one and a diffuse one.

Image
Beauty (from mental ray)

Image
Material ID (from mental ray)

Octane has the option to render the Material IDs, under Render Elements ---> Info Pass: Material ID.
1. I'm doing something wrong here, and if so, what is the correct workflow to achieve this.
2. Is this a bug?
3. If it is a bug, is there a workaround?
4. If it is a bug, can the developers fix it in the next version of the plugin?
It is crucial to be able to render all kind of masks for the compositor to work for the final render output.

Re: Object ID & Material ID render pass

Posted: Wed Sep 28, 2016 7:24 am
by paride4331
Hi zoulag3d,
You could solve the issue using the IOR layer.
Using a big difference of IOR between a material and another, you will have a black and white layer more contrasted.
I hope it can help you
Regards
Paride

Re: Object ID & Material ID render pass

Posted: Wed Sep 28, 2016 8:49 am
by zoulag3d
Clever!
Thanks for your reply