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

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

Sazarret
Participant Participant
541 Views
2 Replies
Message 1 of 3

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

Sazarret
Participant
Participant

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.

0 Likes
Accepted solutions (1)
542 Views
2 Replies
Replies (2)
Message 2 of 3

lee_griggs
Autodesk
Autodesk
Accepted solution

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
Participant
Participant

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