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
specular highlights on moving particles
2690 1 0- lulu116
- Member
- 54 posts
- Joined:
- Offline
- AlexNardini1
- Member
- 37 posts
- Joined: April 2008
- Offline
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.
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