Sign in to follow this  
jakovo

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

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:

[img]http://www.jakovo.net/files/PlaceableTextures2.png[/img]
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
Hi,

You might want to read how Valve did wounds in Left 4 Dead 2 for inspiration.

[url="http://alex.vlachos.com/graphics/Vlachos-GDC10-Left4Dead2Wounds.pdf"]http://alex.vlachos.com/graphics/Vlachos-GDC10-Left4Dead2Wounds.pdf[/url]

Victor

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