Community
Arnold for Cinema 4D Forum
Rendering with Arnold in CINEMA 4D using the C4DtoA plug-in.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

One material, multiple objects, multiple shaders ?

3 REPLIES 3
Reply
Message 1 of 4
Neigno
534 Views, 3 Replies

One material, multiple objects, multiple shaders ?

Hi,


Is it possible to assign one material on different objects but with an unique surface shader for each object ?


I guess i'm doing something wrong with the index input from the switch shader, which node should i use ?

7674-b.jpg

Thanks.

Tags (2)
Labels (2)
3 REPLIES 3
Message 2 of 4
madsd
in reply to: Neigno

I would use 1 material, and use array maps instead, you can use the index driver from your material ID. Its quite powerful to work like that, and you can maintain sanity in very big noodles handling many color controllers.

You basically setup a single material with the index lists you need.
I dont know how you do it in c4d, but I can write an OSL shader that does it all with a single wire to a single material.

Message 3 of 4
peter.horvath6V6K3
in reply to: Neigno

User ID from the Arnold tag is exported as a user parameter called user_id. Instead of the utility shader, use a user_data_int shader to drive the index of the switch, with the attribute set to user_id.

Message 4 of 4
Neigno
in reply to: Neigno

Thank you so much, it works.


Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report