Game Development Community

Torque 3D Glow?

by Sam.E · in General Discussion · 12/08/2010 (7:16 am) · 16 replies

Can Anyone lead to me a tutorial showing how to make models have a glow effect in Torque 3D? I am using blender as my 3D app.

Thanks

#1
12/08/2010 (7:57 pm)
In the material definition (material.cs) use:
glow = true;
#2
12/08/2010 (11:20 pm)
When I export my model in Blender (2.5) to Collada I don't get a material.cs file. I just get a .dae file and when I put it in the game it has no textures. Any ideas?
#3
12/08/2010 (11:39 pm)
Make your own material.cs.
#4
12/09/2010 (12:11 am)
I made my own materials.cs and this is what I got.

new Material(flag)
{
   mapTo = "flag";
   diffuseMap[0] = "flag";
   glow = true;
};

new Material(pole)
{
   mapTo = "pole";
   diffuseMap[0] = "pole";
};

The shape is a flag and pole it is very basic, I am just testing to see if I can do it. I have those two materials made and assigned to each part of the shape in blender and they are called pole and flag. I put the textures in the same folder aswell. The problem is the only material which I see on the shape is the pole material and it takes over the flag material. Any ideas why or what I am doing wrong?
#5
12/09/2010 (12:24 am)
first up, swap "new" to "singleton" to allow it to change on the fly.

Look in the .dae and see if both textures are listed. Then recheck Blender.
#6
12/09/2010 (12:42 am)
I have swapped "new" to "singleton".

I look in the .dae and there is only 1 texture listed. How can I make sure both textures are there.
#7
12/09/2010 (12:44 am)
I have justed fixed it. Thank you all for your help :D
#8
12/09/2010 (12:52 am)
Is there a reason as to why it only glows on half the shape?

img816.imageshack.us/img816/6245/70224330.png
I want the shape to be able to glow while it is night time.
#9
12/09/2010 (6:00 am)
I believe you're using 'glow' only for the first material.
Copy the glow field to the second one.
#10
12/09/2010 (9:37 am)
Nope still does the same thing. The kind of glow effect I am looking for is like this one.

www.torquepowered.com/community/blogs/view/20311

See the spikey ball? It has glowing spots as if there is light. How would I do it like that and make it the bright?
#11
12/09/2010 (11:08 am)
The glowing spots are actually separate planes in a single dts.
Several textures are used,the spots use transparency and glow,the rest stuff - no glow and no transparency.
#12
12/09/2010 (2:32 pm)
if I remember correctly isn't there a alpha channel or something that controls it?
#13
12/09/2010 (9:15 pm)
I have fixed it! I just made a single plane .dae and it worked for the glowing top. Changed some values in my materials.cs and it worked!

Thank you all.
#14
12/09/2010 (9:29 pm)
Hehe I ran into another problem. This might be more of a blender issue than a T3D but i'm not to sure.

In blender I was making my real flag and it waves just as if there was wind on it. The only problem is in blender when doing this the shape has to be in object mode for it to do that simulation. When I export it to .dae it says I have 1 animation in T3D but when I actually go to play it the flag just stays still. Any reason why?
#15
12/13/2010 (2:40 pm)
You have to use bones in order to do that.
T3D does not support morph animations.
#16
12/14/2010 (3:31 am)
Oh I see, thanks :D.