Game Development Community

Torque 1.52 lighting

by Chris Sargent · in Torque Game Engine · 07/26/2008 (8:03 pm) · 2 replies

Hi everyone,

I had a question concerning 1.52 lighting. I was going through the tutorial and I added some buildings i got from other examples in torque as well as the cathedral from constructor.

Adding the buildings is not a problem and they look great, however when I click on relight scene the interiors go pitch black. I am not sure how to provide lighting for the interiors.

Any suggestions or pointers to this information would be greatly appreciated!

Thanks

#1
07/27/2008 (7:15 am)
Are they pitch black from outside or inside? if inside, that is becouse all interiors are using portals. Building without portals would be same ambience as rest of the world, thus it wouldn't be realistic anymore, all even darkest areas would be bright.

So, this is where you have to put your own static or dynamic lighting in. Static is cheaper for CPU so i'd suggest to go for that. You can put lightening from mission editor inside your game, press F11, then F4. In creator list scroll down to Mission Objects/Environment/fxLight.

Put the light bulb inside your interior, change its settings trough inspector (F3) if you want to, and relight the scene again

-Ray
#2
07/27/2008 (12:12 pm)
Thanks I had just found the lighting section on TDN and was reading through it and it pretty much just said exactly what you told me. The interiors are dark to look into and are dark when I go in them.

One other question, though, what do you mean by the interiors using portals?