specular highlights on moving particles

   2709   1   0
User Avatar
Member
54 posts
Joined:
Offline
hello all
I've got a particle system and I'm trying to find a way to generate some specular highlights type on it to make it glow a little bit.
I tried to use v as N with a regular lighting model.
I also try to use v as a tangent to use the hair models.
as long as particles are moving it gives some kind of results but of course if particles moves very slowly or stops moving it becomes hieratic to black (v=0 and N=0)

are there others methods/idea to do that ?
thanks for any hints

luc
User Avatar
Member
37 posts
Joined: April 2008
Online
You have to calculate a proper N.

One quick way to do it is to convert your particles/points into an SDF/Volume
and calculate the gradient of that Volume and use it as N.

This way your N will always point toward the most dense areas of the volume giving you a good sense of `shading`. Dn't forget to normalize the gradient
before using it as N.

Hope it help!

A.
  • Quick Links