This article was converted from a previous version of TWHL and may need to be reviewed
- The formatting may be incorrect due to differences in the WikiCode processing engine, it needs to be revised and reformatted
- Some information may be out of date
- After the article is re-formatted and updated, remove this notice and the Review Required category.
- Some older tutorials are no longer useful, or they duplicate information from other tutorials and entity guides. In this case, delete the page after merging any relevant information into other pages. Contact an admin to delete a page.
Ever wondered how to do the lighting effect at the end of the tunnels in the coast levels? Actually it's really simple - I'll be showing one way to achive the same effect.
Ok, in my example map, I have a basic tunnel with a road in the middle.
The basic tunnel. First, make a box that covers the entire opening of your tunnel. I suggest making it 1 unit thick. Make this box a
func_areaportalwindowAdding an area portal Open up the properties folder. Inside I set these settings:
Rendered Window:
bright1Fade Start Distance:
512Fade End Distance:
1772Translucency Limit:
0Fade Start Distance controls the distance that the white out effect begins to appear. Fade End Distance is when the outside of the tunnel is completely whited out.
Next, make a box surrounding the areaportal window. I made mine 3 units thick. Make it a func_illusionary and set these settings:
Name:
bright1Disable Shadows:
YesDisable Recieving Shadows:
Yes[p]This
func_illusionary acts as the actual blinding light. It slowly appears in based on how far away you are from the
areaportal_window.
Now, texture the
func_illusionary with
tools/nodraw on all sides. Then texture only the side that is facing the inside of the tunnel with
skybox/sky_fake_white. Heres a example:
Creating a pure white wall Almost done, now we need to add a light to the end of the tunnel to add realism to the effect. Add a simple light entity and set the brightness to
255 255 255 500.
Note: For more realism add an
env_lightglow at the edge of the
func_areaportal.
That should do it! Add an
info_player_start and check it out.
My eyes!