SampleInfo - MaterialID Output

I have a Scene with multible objects and several Material IDs. I’m using the IDs to generate multimatts in the Render-Elements.
But now I want to make an additional layer with all Material IDs in one Image.

I thought the “Surface Material ID” Output from the Sampler Info should do the job: (samplerInfo.vrayMtlIDTex)

I tried pluging it into a ExtraTex or straight into a Material Input but I can’t get any Results.
The MaterialIDs and MultimatteIDs are defined in the Vray Material on the Object:

Is there anything I’m doing wrong or is this a Bug?

Currently using Vray 3.10.01 with maya 2014

You can just add a materialID render element, but it will contain the “materialID” portion of the vrayAttributes from the shader, not the multiMatteID.
We have a new render element called “multiMatteID” that will do exactly what you’re after and it’s already in the nightlies and it will be included in the next SP.

As a workaround, you can add your objects to a single vrayObjectProperties and override their objectID, then use an objectID render element.
You can combine that with render layers and render layer overrides.

Thats great. I hope we finde the time to update our machines soon.

[/QUOTE]As a workaround, you can add your objects to a single vrayObjectProperties and override their objectID, then use an objectID render element.
You can combine that with render layers and render layer overrides.[quote=“Vizioen, post:2, topic:49691, username:Vizioen”]

Good idea but thats not quite what I was going for. I still want to have the value of the actual ID. Since I’m rendering exr’s it’s no problem to use values higher than 1 or even negatives. So I could have all ID’s without limitations in on Pass.

I will just use the normal multimatt Render Element for the moment till we installed a newer Version.

Thanks for the Info.
[/quote]

So the materialID render element isn’t going to work for you either?

The materialID would work but I don’t like to use it since I can’t see what value I used without clicking on the color.

I could connect the MultimatteID with the MaterialID. But thats something I would need to do for every shader and since the hole idea was an More effecient workflow without extra effort thats not what I want.

I wil use multible passes just like I did till now.

Great to know that you added this feature and I’m looking forward to test it.