Beam of light problems with portals and DIF walls.
by Infinitum3D · in Torque Game Engine Advanced · 06/09/2009 (12:27 pm) · 6 replies
We have a working flashlight, but I'm told there are two problems;
Any ideas on tweaking settings of either the light or the portals to get a consistent "flow" of light through the portal?
Any ideas how to incorporate "beam-of-light collision" with a DIF?
Thanks!
Tony
Quote:
1. The main issue we came across is the light not passing through portals until you got a certain distance away causing the light to suddenly appear in the adjacent room.
Any ideas on tweaking settings of either the light or the portals to get a consistent "flow" of light through the portal?
Quote:
2. Also DIFs don't self shadow so you can shine the light through walls.
Any ideas how to incorporate "beam-of-light collision" with a DIF?
Thanks!
Tony
#2
06/09/2009 (1:22 pm)
I basically have the same problem (with TGE), but my understanding is that you can restrict lights to particular zones with TLK lights. So if different rooms in your DIF are portaled off, you could potentially keep the lights from crossing zones.
#3
Thanks!
Tony
06/11/2009 (8:28 am)
Thanks Rubes, but that's actually the opposite of what I want. I want the light to cross zones. So short of removing portals (which also removes the darkness), I'm at a loss.Thanks!
Tony
#4
06/11/2009 (12:22 pm)
Switch to DTS would be my suggestion, but you'd also run into the self-shadowing problem unless either you get self-shadowing working in TGE (which has been done, back in 1.3 at least) or get TGEA.
#5
I'll do a search for the 1.3 mod, but does TGEA support self-shadowing DIF's? I didn't know that. The flashlight I'm working on is actually for TGEA (not my own 1.5.2 project).
Tony
06/12/2009 (5:03 am)
Thanks Daniel,I'll do a search for the 1.3 mod, but does TGEA support self-shadowing DIF's? I didn't know that. The flashlight I'm working on is actually for TGEA (not my own 1.5.2 project).
Tony
#6
06/13/2009 (12:34 am)
Not DIFs, but DTS shapes self-shadow, as far as I can tell. It certainly looks that way from the Barricade demo (the Player recieves shadows of itself from the sun). I haven't tried testing with dynamic lights, etc. I reccomend you play around with the Barricade demo.
Torque Owner Infinitum3D
2. A ridiculous hack I thought of would be to "coat" each and every wall of the DIF with a DTS object. (See what I mean by ridiculous). ;)
I just posted this to show I'm receptive to ANY ideas.
Thanks!
Tony