Game Development Community

Glowing Objects

by SpaceMonkey · in Torque Game Engine · 10/24/2006 (8:48 am) · 5 replies

I'm trying to make some glowing power up objects in my game. I already have an object created in maya and exported into torque. Is there a way I can do the glowing effect in Torque? Or do I somehow have to do it in maya?

Thanks for your help!

#1
10/24/2006 (9:04 am)
Glow is supported by TSE (oops, I mean TAT) but not really by TGE.

Here are a couple of things to check out:

http://www.garagegames.com/mg/forums/result.thread.php?qt=19827

http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=10710
#2
10/24/2006 (9:57 am)
Not quite true ^^ TGE does indeed support this effect.

Look up additive and subtractive blending. And also "Self illumination".

There is however a big difference in making an object that "Glows" and one that "Casts light".

TLK greatly improves this also.

And the best old school technique is to place a billboard with your object that shrinks by distance, giving a commonly seen effect in games used allot on things like torches.

Norminaly, its not one thing that makes an object "Glow" is a combonation of a few techniques.

Most of it is in the ART.
#3
10/24/2006 (10:19 am)
You're right, although that's basically what I meant by "not really by TGE"...when I tried to ask this same question a while back, I got mostly the response that TGE doesn't support a glow shader effect, which is probably what most people think of with "glow".

But you're right that with some creativity you can probably simulate a glow effect using different effects. This tutorial for 3dsMax has a good explanation of how to do it using billboards and alpha opacities.

However, for what I needed, this didn't provide a flexible enough solution, particularly for larger, more complex objects.
#4
10/25/2006 (1:33 pm)
An easy way is just add this to your items datablock.. makes your item have a pulsing red light.

datablock Itemdata (yourItem){
.....

lightColor ="1 0 0 1.0"; // im not sure how the colors work, im assuming its r g b & intensity?
lightRadius = 4.0;
lightType = "pulsing"; // none, pulsing, or constant

}
#5
10/25/2006 (1:40 pm)
Yes, although it doesn't give a visual "glow", per se, to the object itself. If you want your glowing object to emit light (which presumably you would), then this is one way to do that.