how to block light?
Post Reply
Quote
Re: how to block light?
Posted by Vahn on Mon Dec 20th at 5:15pm 2004


I have built a corridor that is leading to an elevator.
The light is very dim in the corridor almost dark when u get to the ele...
So the effect i want to create is .... the elevator doors open and bright light from the elevator is streaming out into the corridor.
The problem is ... the the elevator doors dont block light really... and u alrdy have lit walls on the sides ....
I found the tools texture block light ...so i tought ill make a brush, cover it with the block light texture and tie it to ... um i tried func_brush
i placed the brush inside the elevator before the doors ... but its not working that way
so my question:
can anyone tell me how to use that block light tool properly ? wich entity do i tie it to ?
maybe theres a better solution than my approach ... but my basic idea was to have the light blocked ... then trigger to kill the light block entity as soon as the elevator doors open.... wich i guess would be ok because u never come back with that elevator




Quote
Re: how to block light?
Posted by oetroc on Mon Dec 20th at 5:38pm 2004


Im trying to do the same thing, but with a fan. I have a ceiling fan that is below an open hole in the roof with light shining down into the interior of the room. I want the fan blades to block the light so that it casts shadows onto the floor while its spining.

I hope somebody replies to this post with an answer for both our sakes.





Quote
Re: how to block light?
Posted by Vix on Mon Dec 20th at 5:50pm 2004


Hi there.

I don't know if what you ask is possible, but when reading your message, i was thinking about another possibility to do what you want.

I think you can do the same with a light, spot light, or any light that you want, and a trigger_once, first the light should start off, and when you cross the trigger (brush converted to trigger_once entity with invisible texture) it activates the light, you can also make that it opens the elevator at the same time too.

But with the fan, i am not sure what to do... but i noticed that some entities have flags or properties about casting shadows... you can take a look if you already have not. But i will investigate that.

See you out there.





Quote
Re: how to block light?
Posted by Nickelplate on Mon Dec 20th at 5:57pm 2004


do you remember in the begiining of HL and that crate-carrier opened the door to a hallway and the light streamed out of the door? That wasnt light It was a func_door set with a yellow texture and set to be see-through. It was a trapezoid shape which moved at the same speed as the door to give the illusion that the light was streaming out.

I see no good way to do this using a func entity. So what you might want to do, is make about 10 lights all in the same place at the end of the hall by the elev. and make it gradually birghten at the same rate as the doors open. You will probably have to use a multi-manager or whatever the HL2 equivalent is to turn on one light at a time in a sequence corresponding to the opening of the doors. So that as the doors open wider, the light in the hall at that end get's brighter.

[addsig]




Quote
Re: how to block light?
Posted by Rof on Mon Dec 20th at 6:01pm 2004


I was thinking something like that would work for the elevator effect - maybe have no light inside the elevator except for a (wide) point_spotlight, and set the doors to enable shadowing. Then when they open, the shadow should move away and light up the corridor outside.

The fan would be similar, except that you'd need to set the enable shadows flag on the func_rotating making up the fan. Maybe I'll take a look at de_prodigy and see how they did it.

I haven't actually tried any of this yet, so I don't if or how well it works.




Quote
Re: how to block light?
Posted by Nickelplate on Mon Dec 20th at 6:02pm 2004


erm, with the FAN issue...

I know it's possible bcause the same effect is in HL2 in ravenholm with the propeller on the engine trap. I am not sure how that heppened. I will figure it out and write a tutorial schnellfalls.

[addsig]




Quote
Re: how to block light?
Posted by Tracer Bullet on Mon Dec 20th at 6:08pm 2004


I'll bet you that all of this is easily possible if you use the light_dynamic entity. Try it. [addsig]



Quote
Re: how to block light?
Posted by Vahn on Mon Dec 20th at 9:32pm 2004


Its impossible to achieve a nice effect with dynamic lights... that i found out in the last hours
But i got it nice with a point_spotlight entity and a normal light entity ... both inside the elevator .... i was fooling around with up to 8 point_spotlights ... but in the end 1 just looked fine ... but im tweaking some more... ill post a screenshot when im satisfied
but anyhow why is there a block light texture in /tools ?
there must be a way to block light somehow... if anyone knows plz post




Quote
Re: how to block light?
Posted by Tracer Bullet on Mon Dec 20th at 10:51pm 2004


You might also try messing with areaportals to see what you can achieve that way. They allow you to dynamically control visibility, and I presume that also means lighting.

http://www.valve-erc.com/srcsdk/Levels/performance_and_visibility.html

[addsig]




Quote
Re: how to block light?
Posted by oetroc on Tue Dec 21st at 12:11am 2004


I would like to thank all of u for ur input on the subject, it is greatly appreciated. I already have looked at the flags and made sure that the "disable shadows" (or anything regarding shadows) were set to the proper setting. I am not using the fan from prodigy, I made my own, if that helps u at all.

Also, if u ever make that tutorial, Nickelplate, I'll be the first to read it.

Thanks again to all.





Quote
Re: how to block light?
Posted by Murkrow on Sun Feb 20th at 3:03pm 2005


use tools/toolsblocklight texture


if doesen't work, i dunno
[addsig]




Quote
Re: how to block light?
Posted by iceman on Sun Feb 20th at 10:44pm 2005


in my map i have several cars made with brushes tied to entities func_physbox they cast a shadow on the ground so maybe they would work
by tieing a physbox to your elevator doors?





Post Reply