Game Development Community

Making a Lamp...

by Earl Li · in Torque Game Engine · 12/18/2001 (5:13 pm) · 3 replies

Hello, well, I've searched through the forums and no one seem to have an answer for this...

If I wanted to make a Lamp, which of course will emit light, how would I go about doing that? I mean, I made the model in 3dsmax and then put a omni light, but the light is not exported? I'm sure a lot of people would be glad if light in worldcraft or 3dsmax can directly be exported without any need of coding/scripting since artists should have more control over this (lighting stuff) in my opinion.

thanx for your time. :)

#1
12/18/2001 (6:22 pm)
I dont know exactly, but the Torque demo weapon emits a light from it's explosion. You may be able to find the code you need from the weapon code.
#2
12/20/2001 (6:19 am)
There are two lights in this "beach house" in the water world level. i'm sure, you will find the code there. try to use the inspector to get the name of the function. so it's easier to find.
#3
12/20/2001 (7:17 am)
You can add lights to your worldcraft structures or interiors.

So yo could just use WC to make a lamppost add the onmi light entity and export to torque.

I don't know if the interiors lights will actuall light the terrain but that should be easily tested.

// Clocks out