Game Development Community

UseGLLighting in interiors

by J · in Technical Issues · 07/26/2007 (2:16 pm) · 2 replies

First off...I have a big problem with terrible "light leaks" in my interiors. They aren't coming through cracks or anything, but more like everywhere, right through the floor. I've read some threads about reconstructing your difs in Torque Constructor...yeah right...I just built a castle that took me three weeks, no way I'm rebuilding that thing. But I had a better idea to get the effect I would like.

Everything in my game is dark and "scary" or at least thats the atmosphere I'm going for. In your interiors you have a useGLLighting option. You click on it, and my interiors get bright and everything has the same "light." But...none of those little light leaks show. Maybe because its light or maybe the lighting system has something to do with all of my light leaks.

So my question is...
Is there a way to control the lighting inside each interior using this useGLLighting and make it black as night in the caves and almost glowing bright in my elven palace. I mean really control the over all lighting of each interior. Or is there another way I should go about this?

Any help would be greatly appreciated.

About the author

I used to be obsessed with building my own open-ended RPG and a 3D Side Scroller RPG. But the job/house/girlfriend got in the way. I know, I know. Now I concentrate on doing architectural renderings (with the help of T3D of course) and VBA programming.


#1
07/26/2007 (7:52 pm)
As far as I know useGLLighting will only make the interior full bright. There might be a way to change the color values it uses, but I'm not sure. Though you probably would not want to go that way, I don't think that's what useGLLighting was designed for.

You could zone your interiors to solve the problem. Have the inside segments of the interiors zoned so that outside lights (like the sun) will not affect the inside faces (granted that Restrict to Zone is enabled on that light). You can then add a single light inside the interior and give it an ambient value and lighting values that will make the lighting unique for that interior and should avoid lightleaks from the sun and other lights.

Take a look at the documentation for information on how to zone an interior. I looked into the TDN but it doesn't appear to be in there, but then again I'm probably incapable of navigating a wiki and just can't find it.
#2
07/27/2007 (7:09 am)
Thank you Ross, I will look into that.