Decal Bullet Holes
by Güvenç Şahin · in Torque Game Engine Advanced · 03/16/2009 (7:49 pm) · 6 replies
Hi,
i am working on a project TGEA build 1.8.1 and i am trying to add decal bullet holes to the default crossbow example.
I searched the forum and found several example codes to do it but non of them is working in my project.
Does anyone knows is there a limitation on decals in this version or what i am making wrong ?
Here is the one of the examples i tried. http://www.garagegames.com/community/resources/view/9349/1#comment-47037
Thanks.
i am working on a project TGEA build 1.8.1 and i am trying to add decal bullet holes to the default crossbow example.
I searched the forum and found several example codes to do it but non of them is working in my project.
Does anyone knows is there a limitation on decals in this version or what i am making wrong ?
Here is the one of the examples i tried. http://www.garagegames.com/community/resources/view/9349/1#comment-47037
Thanks.
#2
03/17/2009 (11:58 am)
what he said
#3
03/17/2009 (3:29 pm)
Footstep decals are implemented in 1.8.1 from what I can tell, or at least it is in mine, its exposed to the console and implemented. Maybe you should post what you have tried and is not working? I haven't tried footsteps yet, but it's on my short list. When my player model is running I have footsteps and I have not touched the code yet.
#4
Thanks Michael for the tutorial link. It was realy easy to implement bullet hole decals but i guess i made some mistakes before in the code like: in projectile.cpp i have to change
this to
03/17/2009 (7:43 pm)
Thanks for all your answers. As Randy's said footstep decals are implemented in 1.8.1 but bullet hole decals aren't.Thanks Michael for the tutorial link. It was realy easy to implement bullet hole decals but i guess i made some mistakes before in the code like: in projectile.cpp i have to change
if(collideType & (TerrainObjectType | InteriorObjectType))
this to
if(collideType & (TerrainObjectType | InteriorObjectType | StaticObjectType | AtlasObjectType))this and several mistakes like that. It's working pretty cool now. Thanks again.
#5
03/17/2009 (7:57 pm)
Kool.. Good to know:)
#6
03/17/2009 (9:30 pm)
Glad you got it working. I hadn't gotten around to re-enabling the decals in 1.8.1 yet - it's good to know that the footstep decals are implemented, I guess I should have paid more attention.
Associate Michael Hall
Distracted...