Jump to content
  • Advertisement
Sign in to follow this  
jakovo

Best method to place scars/injuries arbitrarily on a body?

This topic is 2338 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi,

I have a texture, which represents an injury with blood and all.

how would it be the best way to place it on the body of a character which has just being shot (and in the place it has been shot)?

Something like this:

PlaceableTextures2.png
maybe using decals, which would imply to move the decal's vertexes adapting to the geometry of the place were the character was shot.. and I wouldn't be able to use transparency (maybe the raincoat of the character or something?).

or in the PixelShader... passing as argument the position where the shot hit; and if it is within a certain threshold just use some math to get the corresponding UV for that specific texture?...

but I would like to ask you how would you think it would be the best way to implement something like this?

Thanks!

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!