Mat ID Issue: Colors change

Maxon Cinema 4D (Export script developed by abstrax, Integrated Plugin developed by aoktar)

Moderators: ChrisHekman, aoktar

User avatar
bepeg4d
Octane Guru
Posts: 10356
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy
Contact:

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
User avatar
mrpinoux
Licensed Customer
Posts: 59
Joined: Tue Sep 30, 2014 8:51 pm
Location: Los Angeles
Contact:

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 :)
Win 8.1 64 | Geforce GTX780 x 4 | i7 5960X | 64GB
User avatar
bepeg4d
Octane Guru
Posts: 10356
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy
Contact:

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
User avatar
aoktar
Octane Plugin Developer
Posts: 16066
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

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!
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
niestudio
Licensed Customer
Posts: 265
Joined: Fri Aug 21, 2015 10:03 pm

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
OSX 10.12.4 | Intel 12 core @ 3.33 ghz | 128 gb ram | NVIDIA GeForce GTX 1080TI | Ubuntu Linux slave with 3x 1080ti
Post Reply

Return to “Maxon Cinema 4D”