Shadows on my func_tracktrain
Post Reply
Quote
Re: Shadows on my func_tracktrain
Posted by m0nk33 on Mon Jan 24th at 11:46pm 2005


I have a func_tracktrain that comes out from underneath a set of brushes and then goes back in. Problem is that the part of it that was under cover appears shadowed.

I'm guessing it's getting shadowed by the other brushes but I can't stop it. I have searched everywhere for anything that's at all relevant and come up with nothing. I have also tried a number of things with cubemaps and disabling shadows but it always comes out with the same result.

Please help - this is the final piece to a puzzle that I've been labouring over for ages!





Quote
Re: Shadows on my func_tracktrain
Posted by satchmo on Mon Jan 24th at 11:51pm 2005


In this case, a screenshot would be tremendously helpful in illustrating your problem.
[addsig]




Quote
Re: Shadows on my func_tracktrain
Posted by Tracer Bullet on Tue Jan 25th at 12:00am 2005


Tracktrains are odd. When you compile the map, the train stays where you placed it in Hammer, and gets lit accordingly. Then, when you load the map, it gets moved to it's "first stop target". The result of this is that it does not matter where you put the train in hammer. You can put it where ever you want for purposes of getting the lighting on it right, and then when you load the map it will be teleported to the correct path _track. I hope that was clear enough. Just put your train someplace where it won't be shadowed.

[addsig]



Quote
Re: Shadows on my func_tracktrain
Posted by Rof on Tue Jan 25th at 12:19am 2005


Concurring with Tracer Bullet here, and also add that it seems that tracktrains' lighting can be faked by having switching lights in the area that you build it in Hammer, then switching the lights on or off depending on where the train is (triggered from the path_tracks, probably). That's the way it was done a lot in HL1, and it seems that you do the same thing in HL2, as well.
[addsig]




Quote
Re: Shadows on my func_tracktrain
Posted by m0nk33 on Tue Jan 25th at 8:51am 2005


Cheers very much guys. Hopefully I can show you what I'm up to soon!



Quote
Re: Shadows on my func_tracktrain
Posted by Emoo on Tue Jan 25th at 4:34pm 2005


I thought HL2 had dynamic lighting so shouldent it change as it moves?






Post Reply