Page 2 of 2

Re: Mat ID Issue: Colors change

Posted: Wed Feb 07, 2018 4:35 pm
by bepeg4d
Hi,
the MaterialID works with a random function, so the colors can change.
To have a more solid control over the mat id , you can use the Object layer color pass instead.
assign an object tag to all the objects or group of objects, then, with all the tag selected, in the Object layer tab, you need to right click on the Object color name, and choose User interface/Show sub channels:
Screen Shot 2018-02-07 at 16.57.31.jpg
then type rnd(100)+num in all the three color fields to have different colors that do not change:
Screen Shot 2018-02-07 at 17.15.30.jpg
Screen Shot 2018-02-07 at 17.15.39.jpg
Material_ID_01b.c4d.zip
(883.79 KiB) Downloaded 179 times

Re: Mat ID Issue: Colors change

Posted: Wed Feb 07, 2018 7:16 pm
by mrpinoux
Thanks Ahmet for your answer :)

Hi bepeg4d !

Thanks for this direction, that's what we ended up doing. :?
But I feel, excuse my laziness, assigning many tags, manually, on big scenes, defeat the purpose of the easiness of using the MatID in the first place, don't you think so?

Ahmet, if I may ask, would it be doable to lock the materials / assigning those tags silently in the backend of the plugin to fight the behavior of the core engine?

Thanks for your answers, and keeping that discussion alive :)

Re: Mat ID Issue: Colors change

Posted: Thu Feb 08, 2018 3:28 pm
by bepeg4d
mrpinoux wrote: Hi bepeg4d !

Thanks for this direction, that's what we ended up doing. :?
But I feel, excuse my laziness, assigning many tags, manually, on big scenes, defeat the purpose of the easiness of using the MatID in the first place, don't you think so?
Hi,
surely less automatic, but more powerful and useful, since it is up to you how to select and assign the tags, while you don’t have any kind of control with the Mat ID pass.
ciao beppe

Re: Mat ID Issue: Colors change

Posted: Thu Feb 08, 2018 3:35 pm
by aoktar
mrpinoux wrote: Ahmet, if I may ask, would it be doable to lock the materials / assigning those tags silently in the backend of the plugin to fight the behavior of the core engine?
Not possible without ruin a lot of things in my side. You should use all materials to keep order as a workaround. Put unvisible object's material to an object which is out of view.
Sorry!

Re: Mat ID Issue: Colors change

Posted: Thu Feb 08, 2018 5:35 pm
by niestudio
Thanks Ahmet, thats and interesting and easy workaround.
I suppose you could add all materials to 1 small polygon off camera or hidden with octane visibility.

works well in my quick test.

matid.jpg