Pick up the crowbar of research scientist Gordon Freeman, who finds himself on an alien-infested Earth being picked to the bone, its resources depleted, its populace dwindling. Freeman is thrust into the unenviable role of rescuing the world from the wrong he unleashed back at Black Mesa. And a lot of people, people he cares about, are counting on him.

Report article RSS Feed Grated light effect

A very useful effect that can make your map looks so much more detailed

Posted by Shirk on Jun 18th, 2009
Basic Level Design/Theory.

Here is one of my many tutorials for a very useful effect that can make your map looks so much more detailed.

Light grate effect
In this tutorial I will be showing you how to make something like this


Step 1 create a room with a hole in the floor. make the hole about 32 units deep.


Step 2 Now make brush's 1 unit high and 1 unit wide and as long as you hole long copy and past until you get something like this.


And now just do it for the opposite direction Step 3 now under your grate add light and add another entity called shadow_control click on the textures around your light (not the grate) and change the lightmap scale so it will have a better look(change it below 16) compile your map and you will get something like this if you did it right.

Post comment Comments
Nozzy
Nozzy Jun 18 2009, 11:14pm says:

Spiffy!

+1 vote     reply to comment
JacobRollin
JacobRollin Jun 18 2009, 11:45pm says:

Cool

+1 vote     reply to comment
ausbushman
ausbushman Jun 18 2009, 11:50pm says:

Impressive effect!

Is it better to use brushes or make a model?

+2 votes     reply to comment
Dremth
Dremth Jun 18 2009, 11:55pm replied:

i'm no expert on the source engine, but i would guess it would be better to make a model.

+3 votes     reply to comment
Rayman47
Rayman47 Jun 19 2009, 3:35am replied:

Brushes are better because, the shadows of Models are Transperent

+2 votes     reply to comment
harrisonbrtn
harrisonbrtn Jun 19 2009, 12:02am says:

this is not the right method for doing this, its called the block light texture

youre method would not be good for fps

+4 votes     reply to comment
Shirk
Shirk Jun 20 2009, 1:35pm replied:

this works better then block light texture because its a brush thats casting the shadow not an invisable block

+1 vote     reply to comment
awesomepossum
awesomepossum Jun 20 2009, 4:51pm replied:

I don't know why you deleted my other comment, it was rather helpful to a lot of people, showing there was more than one way to make nice shadows each having a fault at some point.

But the Block light texture would be good to use here, because valve rad compile would use it exactly the same as a regular brush when calculating lighting. Also it would be better than using a brush with a regular texture because then it would not effect the vis portion of compile by cutting up that hallway into tons of tiny vis portals. Which would increase compile times and have a negative effect on fps as well.

+4 votes     reply to comment
FirgofUmbra
FirgofUmbra Nov 7 2009, 10:24am replied:

As long as you make sure that the brushes you've created become func_detail entities then there's little problem with VIS splitting it into thousands of groups.

The best combination would be brushes w/ blocklight that are func_detail entities. The only consideration to have using this technique is that in order to pull it off you're using a substantial number of brushes which increases the polycount on screen and also takes up chunks of the brush limits (you can have only so many brushes, after all). But those issues can be dodged themselves with custom visgroups, design considerations, and fore-planning on the level's design.

+1 vote     reply to comment
SupaNinjaMan
SupaNinjaMan Jun 19 2009, 2:33am says:

also, the orange box engine allows light through the alpha of textures.
Fpsbanana.com

+3 votes     reply to comment
Shirk
Shirk Jun 20 2009, 1:36pm replied:

lol thats my other tutorial look at the authors

+2 votes     reply to comment
SupaNinjaMan
SupaNinjaMan Jul 21 2009, 8:54pm replied:

huh, that is so. . .

+1 vote     reply to comment
Potteh
Potteh Jun 19 2009, 5:00am says:

Pretty neat man, I am one to love lighting :)

+1 vote     reply to comment
Varsity
Varsity Jun 19 2009, 7:47am says:

If you're working with the Orange Box an env_projected_texture is an even better solution, as long as players won't see the effect from afar (as it fades away past certain a distance).

It will shine dynamic, global, per-pixel lighting past objects and through transparent textures. The upshot of which is that not only do you get the effect shown in the tutorial, but *any* dynamic object passing by will cast its own shadow on the scene too.

Developer.valvesoftware.com

+2 votes     reply to comment
Varsity
Varsity Jun 19 2009, 8:04am replied:

Hmm, I take back the part about it casting shadows of transparent textures. It only seems to work with some of them.

In fact I might have to take it back entirely since without some changes to code there's only one such shadow allowed at any time. Here's what it looks like, anyway: Img230.imageshack.us

(The pixellation can be fixed by using a larger shadow texture.)

+1 vote     reply to comment
Jesternz08
Jesternz08 Jun 19 2009, 9:12am says:

simple but effective!

+1 vote     reply to comment
cooldude9509
cooldude9509 Jul 8 2009, 1:17pm says:

Fantastic!! I'm so much gonna try that out! 5/5 :D

+1 vote     reply to comment
harrisonbrtn
harrisonbrtn Jul 9 2009, 9:36pm says:

EDIT: didnt mean to double post

+1 vote     reply to comment
xenbiosis
xenbiosis Aug 4 2009, 10:50pm says:

Thanks for the tutorial! This would be sweet for any Horror game.

+1 vote     reply to comment
Naruto3000
Naruto3000 Sep 18 2009, 8:33am says:

I dont get what you need to do with the walls on the side and how you do it ?! help please !

+1 vote     reply to comment
ScorpionFaiha
ScorpionFaiha Sep 20 2009, 7:07am says:

This doesn't work for hl2 ? or does it??


+1 vote     reply to comment
Shirk
Shirk Oct 7 2009, 4:59pm replied:

It does work for hl2 and all other source games

+1 vote     reply to comment
Shirk
Shirk Oct 7 2009, 4:58pm says:

When selecting the texture and applying it to a wall, by pressing Shift-A there will be a texture options gui. On the top right of that there should be lightmap scale defaulted to 16, change it to what I said.

+1 vote     reply to comment
BrokenGlasses
BrokenGlasses May 9 2010, 2:12pm says:

Does it work for older Source engine (Source Engine 6-10)?

+1 vote     reply to comment
Shirk
Shirk Aug 17 2010, 2:09pm replied:

Works for all source engines

+1 vote     reply to comment
Post a Comment
click to sign in

You are not logged in, your comment will be anonymous unless you join the community today (totally free - or sign in with your social account on the right) which we encourage all contributors to do.

2000 characters limit; HTML formatting and smileys are not supported - text only

Icon
Half-Life 2
Platforms
Windows, PS3, X360, XBOX
Developer & Publisher
Valve
Engine
Source
Contact
Send Message
Official Page
Half-life2.com
Release Date
Released Nov 15, 2004
Game Watch
Track this game
Tutorial
Browse
Tutorials
Report Abuse
Report article
Related Games
Half-Life 2
Half-Life 2 Single & Multiplayer First Person Shooter
Related Engines
Source
Source Commercial Released Oct 31, 2004
Related Groups
Valve
Valve Developer & Publisher