Particle Distance shader ?


Hi all,

I´m trying to achieve the following:

Particles, when in vicinity of a surface, color that surface.

Pretty much what this guy is asking for.

I´m using the Distance Shader from HIghend3d as a starting point.
I understand that I need to modify the distance expression, which looks like this:

float $array[];  //here are the distances stored
 //we should find the minimum distance and store it in the first slot
 int $i;
 for($i=1;$i<8;$i++) if($array[0]>$array[$i]) $array[0]=$array[$i];

so that it instead of indicating the position of the locators, uses the particles´.

Has anyone done this?

Any help very appreciated.



since that other post is really old; by now you can use mental ray to do that.

either an occlusion path to get the maps where to color the surface or by using an FG pass to have color light emitted by the particles.




This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.