Object ID & Material ID render pass

3D Studio Max Plugin (Export Script Plugins developed by [gk] and KilaD; Integrated Plugin developed by Karba)
Forum rules
Please post only in English in this subforum. For alternate language discussion please go here http://render.otoy.com/forum/viewforum.php?f=18
Post Reply
zoulag3d
Licensed Customer
Posts: 10
Joined: Thu May 26, 2016 10:00 am

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
User avatar
ThaRaven
Licensed Customer
Posts: 114
Joined: Fri Feb 20, 2015 1:17 pm

assign the same material to all boxes? then all have the same material id
Win 7 64 | Geforce GTX780 |Dual X5667 Xeon | 40GB | MAX 2016 |
zoulag3d
Licensed Customer
Posts: 10
Joined: Thu May 26, 2016 10:00 am

Yes I did. All 4 boxes have the same Mat ID.
Thanks man for replying.
User avatar
ThaRaven
Licensed Customer
Posts: 114
Joined: Fri Feb 20, 2015 1:17 pm

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
Win 7 64 | Geforce GTX780 |Dual X5667 Xeon | 40GB | MAX 2016 |
zoulag3d
Licensed Customer
Posts: 10
Joined: Thu May 26, 2016 10:00 am

Sorry, I got confused. The 4 boxes have different materials, but the same Material ID.

edit:
The 4 boxes have different wrapping.

Image
User avatar
ThaRaven
Licensed Customer
Posts: 114
Joined: Fri Feb 20, 2015 1:17 pm

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..
Attachments
Beauty
Beauty
Render Layer ID
Render Layer ID
Win 7 64 | Geforce GTX780 |Dual X5667 Xeon | 40GB | MAX 2016 |
zoulag3d
Licensed Customer
Posts: 10
Joined: Thu May 26, 2016 10:00 am

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.
User avatar
paride4331
Octane Guru
Posts: 3821
Joined: Fri Sep 18, 2015 7:19 am

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
Attachments
01.jpg
2 x Evga Titan X Hybrid / 3 x Evga RTX 2070 super Hybrid
zoulag3d
Licensed Customer
Posts: 10
Joined: Thu May 26, 2016 10:00 am

Clever!
Thanks for your reply
Post Reply

Return to “Autodesk 3Ds Max”