Make a projector cast deform with the normal map of the object !

I cast a projector on a surface. But this surface have a lot of bump/Normals maps effect in his matérial. So the projector don’t look realistic…
Here’s an example donne in an other program:

alt text

So i make a quad with a normals maps that make it looks like a 3d object.
Cast a projector and get the first image result.

Did you have any tips or idea on how i could make the bump of the object
deform a cast projector ? Thanks for any idea !)

I suppose it’s really hard to make and lost myself in a lot of concept…
But i want to try !

1 Answer

1

Render scene once for collect normals, render one more time for each projector with replacement shader(I think) or maybe in screen space and use collected normal data.
Check decal system from store, as far i remember there it’s done in absolutely other manner.

Thanks for those ideas ! It help me in this quest ! I try the free version of the decal system but it doesnt interact with the normals. I continue to search !

Just find and test the texture.GetPixel and texture.SetPixel. Think i'm gonna try to use that to make my special 2.5D shadow..