I would like to have a script node that would output a boolean depending of if two objects are intersecting or not.
The goals is to use it in a mix shader and to hide / show my object depending of the intersection (kind of a mask).
The available inputs of my script node should be two objects ("active" object and "mask" object); and the output should be a boolean (0 or 1) for the FAC of a mix shader.
After having read this, I think it is possible, but don't know Blender scripting good enough yet to achieve it.
- https://blenderartists.org/forum/showthread.php?390733-Generate-a-material-change-at-mesh-intersection
- https://blender.stackexchange.com/a/9080/14306
Can anyone help ?
Thanks !