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: 

Collision map - Change shader when in contact with other object.

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
Sazarret
162 Views, 2 Replies

Collision map - Change shader when in contact with other object.

Hey there.

This is somewhat hard to explain, but I´ll do my best.
I have a scene with many simulated flexible rubber balls falling into a glass fish tank-like container, and I want them to change color in the areas where they are in contact with the tank´s walls to simulate a cartoonish effect of them getting flat when they are pushed against the glass.

Can anyone please point me toward a node that can recognize that some of the geometry of one object is in contact with another object? I remember C4D´s standard shaders have an effect called Proximal that could do something like that.

Thank you.

2 REPLIES 2
Message 2 of 3
lee_griggs
in reply to: Sazarret

There is the distance shader. 

https://www.youtube.com/watch?v=DWIHhGmQSig&t=28s

https://www.youtube.com/watch?v=I2P-HdM49ms&t=61s&pp=ygUPYXJub2xkIHJlbmRlcmVy

Please like and subscribe.

Lee Griggs
Arnold rendering specialist
AUTODESK
Message 3 of 3
Sazarret
in reply to: Sazarret

That´s exactly what I was looking for. Thank you!

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

Post to forums  

Autodesk Design & Make Report