showing effect on texture

aiman

29-07-2012 01:10:16

i have 3d object, i want to show the effect on its texture when it is collided with another object, for example: when i throw a rock on glass of car i want to show that glass is broken, or bullet collide with wall .... etc

please help me, i tried to use overlay but it was useless

zarfius

30-07-2012 11:38:36

I believe the effect your looking for is called a "Decal". I think the way to go about it is to render a small bit of geometry over top of the original geometry and give it a material with a depth bias. Sorry, I don't know exactly how to do it but that should give you enough information to do some research of your own.

tafkag

31-07-2012 10:17:51

I believe the effect your looking for is called a "Decal".
There is a nice Ogre tutorial to get you started:
http://www.ogre3d.org/tikiwiki/Intermediate+Tutorial+6