Sign in to follow this  
Alundra

Avoid Skinned-Mesh using decal deferred

Recommended Posts

Alundra    2316

Hi all,

using a box and a vertex+pixel shader it's easy to render decal deferred without big cost.

The problem is this method doesn't works on skinned mesh, if a way exist, I don't know it yet.

I would avoid to render on them and the only way I have is to use the stencil buffer to avoid pixel of skinned mesh.

Is it a good way to achieve that ?

Thanks

Share this post


Link to post
Share on other sites
Ashaman73    13715

Well, the g-buffer is just an contextless representation of your world, therefor you can just use eg the stencil buffer to  mask deferred decals.

If you want decals on an animated meshes, you need to apply them in object space during rendering.

Share this post


Link to post
Share on other sites
kalle_h    2464

You can also skin the decal. Let say you want bullet hole to character. You have located to contact point and bones that affect to this point. Then you just transform decal with these bones using appropriate weights.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this