Page 1 of 1

see-thru glass textures and lighting....

Posted: Sun Mar 14, 2004 3:38 pm
by Vander
Is it possible to make it so that light passes through a glass texture (MeshGlass1 for example) to light up objects on the other side of the glass texture?

Here is a picture to help explain...

Image

To light the space beneath the glass face, I had to put lights below it. Is there any way to make light from the light at the top pass through the glass to light up the pipe?

The glass texture in this picture has the "Force Lightmap" and "Alpha" flags set in the table file I'm using.

Any ideas?

Posted: Sun Mar 14, 2004 4:12 pm
by Vander
never mind, Hostile just gave me the answer. You flip the flip the glass face normal, light it, then flip it back. The glass doesn't get lit properly, but the stuff under gets lit.

Posted: Sun Mar 14, 2004 8:44 pm
by Kyouryuu
Another way to do it, although not feasible for multiplayer levels, is to Toggle Blockage at Portal using DALLAS and have the glass face be a portal face. Then, the glass is created at level runtime, but it is non-existent to D3Edit when you go to light the mine.

Posted: Sun Mar 14, 2004 8:51 pm
by Skyalmian
Set the texture to use the Saturate Lightmap flag also.

Posted: Mon Mar 15, 2004 12:15 am
by Vander
what does saturate lightmap do?

Posted: Mon Mar 15, 2004 1:44 am
by Ferno
i wonder.. can you make the static light have dynamic properties (like the flare)?

Posted: Mon Mar 15, 2004 10:59 am
by Kyouryuu
I think saturate lightmap makes it so all lighting values on a face are equalized, so the entire face glows with the same radiance. Could be wrong, though.

I believe that lights that are dynamic objects have to be tied to objects. At runtime, the dynamic light is apparently overlaid across the static lighting. It doesn't always work right, of course. When Hawkeye was helping with one of Dark Wolf's levels, she had wanted to do a sequence where the lights would turn off one by one (like in Unreal when you encounter the Skaarj). Hawkeye determined that the one way you could do this was to have objects with certain light properties assigned to them, and then turn them on and off (animation / halted animation?). Sort of like the rotating emergency lights in Level 1, which are off until you complete one of the objectives, and then activate, spinning red light all over the corridors. I'm not sure exactly how such an animation is accomplished, however, but it has been done.

Posted: Mon Mar 15, 2004 6:48 pm
by DarkFlameWolf
yeah, and then Hawkeye dumped the project and deleted all the beautiful work he had done.

Posted: Mon Mar 22, 2004 2:12 pm
by Skyalmian
yeah, and then Hawkeye dumped the project and deleted all the beautiful work he had done.
Genova Caverns 0.4?

Posted: Fri Apr 16, 2004 11:55 am
by Testiculese
Woooo! A Vander level!