Game Development Community

I am working on this, can you help me..

by Roshan Kuriyan · in Torque Game Engine · 04/18/2006 (9:46 pm) · 5 replies

When a crossbow hits the interior, i want a image to be displayed over a interior, please provide how to implement this one. and how a create a damagable interior.

#1
04/18/2006 (9:58 pm)
Are you looking at decals (a mark) or geometry destruction (Red Faction GeoMod)?
#2
04/18/2006 (11:01 pm)
Yes, please provide me with a example.
#3
04/18/2006 (11:40 pm)
Yes to which one?

why don't you try doing a search on GG for "decals" (or the other one if thats what you want), or doing a search in your code for examples? ;-)
#4
04/19/2006 (12:05 am)
Thanks i found a example code in forums, but the texture is only there for few seconds, but i need it be fixed to the intereior not to be disappeared , and also i need it for only interior not to the terrains, how can i differentiate the interior and terrein in the decal datablock.
#5
04/20/2006 (1:21 am)
I haven't looked at the code, but theres usually a U32mask function like

u32mask = InteriorObject | TSStatic | TerrainObject;

You'll need to remove all of them but the InteriorObject so it would look like

u32mask = InteriorObject;