Game Development Community

Making Decal Images on Models and Otherwise

by Jerane Alleyne · in Torque Game Engine · 02/07/2002 (1:18 pm) · 7 replies

I have 2 questions regarding the use of decals in two different situations that I'm hoping someone could help in...

The first is in adding a decal to a model as an additional texture image. What I am trying to do is be able to add a custom image (imsignia, etc.) to a model, along with the main skin. Since you can't use blend or composite in the export process (I get an 'unexpected material on export' error), it won't work that way. Doing a multi-sub material doesn't work, because the image has to go on top of the current texture, not replace the material ID. I can just use another map in place of the texture, but it would mean every time I wanted to use a new skin, I would have to have an alternate decal image to match each type of skin. I tried compositing and blending the diffuse map, and that didn't work either. Any ideas on this?


The second issue in using decals is in making bulletholes. I thought that a decal would have to be declared in the projectiledata datablock class, but it doesn't look like that's the case. I checked the chaingun script and thought the same would apply to its projectile datablock class. Is there any idea on how this is done?

Thanks a lot!

#1
02/11/2002 (12:46 pm)
OK, I figured that getting bulletholes need to be added as part of the projectile class in code, so I'll leave that for our code monkeys...but I'm still not certain about adding a decal image on top of the regular skin a a secondary material texture. Can this be done?

Thanks again
#2
02/11/2002 (1:30 pm)
Hey Jerane, sorry I cant help with the decal question..I'm working on that also right now. I was just curious if EventAlpha switched to TGE from the other engine you were using?

Any public progress updates? You guys have a good thing going with EA :)
#3
02/11/2002 (3:22 pm)
Hey Aaron,

Yeah, we switched from Lithtech to Torque...ended up making more progress in six weeks that with Lith in six months :) I do miss the tools tho (Renderstyles...*sigh*)

I haven't posted a plan in a while...had my nose in front of the PC for too long. I'll post a screenshot and plan hopefully in the next week.

I guess I'll try something else for the decals..using the Multi-Sub method...or some other lowtech way :)
#4
02/12/2002 (1:43 pm)
Cool! I cant wait to see some screen shots:)
#5
02/12/2002 (1:50 pm)
Forget the screenshot i just want to play it . :)
#6
02/12/2002 (1:56 pm)
The game looks great
#7
02/12/2002 (5:30 pm)
Please clarify your statement.

Aaron