[article] Sharp light from windows
Post Reply
Quote
Re: [article] Sharp light from windows
Posted by DrGlass on Thu May 26th at 8:04am 2005



This is a discussion topic for the article "Sharp light from windows" by DrGlass which can be found here

Article description:

Create a beam of light from a window






Quote
Re: [article] Sharp light from windows
Posted by ReNo on Thu May 26th at 12:43pm 2005


Simple premise but not doubt something a lot of people have been wondering how to achieve. By the way, your windows don't need to be opaque to make use of this effect - you can quite happily build a skybox in the shape of your "light tunnel" and it will look normal in game while still giving this lighting effect.



Quote
Re: [article] Sharp light from windows
Posted by habboi on Thu May 26th at 1:29pm 2005


Ah finally I see how you created this effect!
Thanks because now I won't have to use that static model in the effects folder.




Quote
Re: [article] Sharp light from windows
Posted by ReNo on Thu May 26th at 2:02pm 2005


Well to be fair that is actually used to create a different effect. This tutorial explains how to get realistically shaped light spots from a window or other opening. The prop you are talking about is used to create visible "beams" of light. These two could easily be used together if the situation calls for it.



Quote
Re: [article] Sharp light from windows
Posted by satchmo on Thu May 26th at 4:28pm 2005


Nice tutorial. Concise yet detailed enough to be easily understood. The illustration is well done.



Quote
Re: [article] Sharp light from windows
Posted by DrGlass on Thu May 26th at 11:00pm 2005


ReNo is right Habboi, this is used to create a light shape one the floor, though you could also use dustmolts to help with a beam affect.



Quote
Re: [article] Sharp light from windows
Posted by XenNetwork on Fri May 27th at 3:48am 2005


Your little example is sorta confusing like the func_brush part it looks like a whole bunch of dffrent brushes(hence all the white lines) and it dosent work for me either



Quote
Re: [article] Sharp light from windows
Posted by DrGlass on Fri May 27th at 6:45am 2005


I"ll update the pic to make it more clear. You need to make a hole in your wall where you want your window to go, then place a 5 sided box against the hole in your wall. Then fill your hole with a func_brush, this will be your window. Hope this clears things up.



Quote
Re: [article] Sharp light from windows
Posted by RabidMonkey777 on Fri May 27th at 11:17pm 2005


It might be good to make the lightmap scale on nearby faces (floor for example) to 4 scale so the lines are sharper if you desire.

Otherwise, nice smiley




Quote
Re: [article] Sharp light from windows
Posted by XenNetwork on Sun May 29th at 1:17am 2005


Ok its a little bit clearer now what you mean but whats it mean by nodraw, do i put a nodraw brush/texture?



Quote
Re: [article] Sharp light from windows
Posted by DrGlass on Sun May 29th at 6:09am 2005


Nodraw is a texture, you place it on a brush face that the play wont be able to see, so the engin doesn't draw the face and add to negative FPS (ever so slightly)



Quote
Re: [article] Sharp light from windows
Posted by Andrei on Sun May 29th at 9:48am 2005


It's an interesting idea but i think i've got a better idea on how to do this: just put the spotlight inside the hall, right off the side of the window and place a func_illusionary rail wrapped in a texture with the rendernt 0 in the middle of tha hall, so that the light_spot shines on the it. You should obtain the same effect.



Quote
Re: [article] Sharp light from windows
Posted by DrGlass on Sun May 29th at 9:56am 2005


Not quite sure what you mean, if you use just a spot light for the light-thru-window affect then you wont get the shape on the floor.

If you mean to use the rail to cast the shadow, that would work... BUT you have no controle over how the shadow will be cast and the block light can be made to fit the window style.




Quote
Re: [article] Sharp light from windows
Posted by Leperous on Mon May 30th at 1:07pm 2005


It's not hard: you put a light_spot behind your window, which is a func_brush, and you make extra brushes where the beams/bars are meant to be in the window using the BLOCKLIGHT texture (which will thus cause shadows to be cast properly on the floor). Of course, you don't need this angled NODRAW/SKYBOX box behind it- a square block will do just fine.



Quote
Re: [article] Sharp light from windows
Posted by DrGlass on Mon May 30th at 10:32pm 2005


True... you could just make a large box outside of the window, but if you had multible windows you'd need more than one box or the lighting wouldn't work.




Post Reply