|
|
Using Env_sun to Add sunlight Difficulty: Intermediate |
| Category: CS:S > Mapping | Author(s): SGT_kick_ur_ass |

Welcome to another one of my tutorials. In this tutorial I will teach you how to use the entity env_sun in your map so you can achieve a cool sunlight effect like I used in this map:

Let's Get Started- First, open up your map and place the following entities:
Env_sun Light_environment info_target
- Now, move the Env_sun and the light_environment near the skybox where you want the Sun to shine from. Make sure that both entities are as close as possible.

- Now select info_target that you placed, and move it to where you want the env_sun to point at. In this map, I placed the info_target inside the barn, so that the env_sun would shine through the hole in the roof.

- Open up the info_target properties box, and give the entity a name. I called mine sun_target.

- Now go back to the Env_sun and open up its properties window. Set the Viewer Entity to the name of the info_target.

Now all you have to do is try to set the light_environment to point the same direction as the env_sun.
- Double click on the light_environment entity and press the Point at button.

- Once you do that, you should notice that your cursor has turned into a crosshair. Go to where you placed the info_target and click it with your cursor.
- Once you do that, you should notice that the numbers in the Pitch Yaw Roll(YZX) field have changed. That means that the light_environment is now pointing at the entity you clicked on.

- Now, you can edit the color and brightness of the Env_sun and the light_environment. Here are the settings I used for my map Fy_barnyard
Light_environment
Brightness: 235 155 71 999 Ambient: 105 142 165 120 Brightness HDR: -1 -1 -1 1 AmbientHDR: -1 -1 -1 1
Env_sun
Use Angles: No Pitch: 0 Sun Color(R G B): 176 88 0 Overlay Color: 0 0 0 Size: 20 Overlay Size: -1 Material Name: sprites/light_glow02_add_noz Overlay Material Name: sprites/light_glow02_add_noz HDR Color Scale: 1.0
- The last thing to do is Compile your map and test it out, then adjust the settings to your liking.
Thank you for reading my tutorial, if you have any questions, please do not hesitate to PM me or leave a comment.
Half Life Storm
-SGT_kick_ur_ass
|
| Added: 1 year ago | Tags: using, env_sun, mapping, sunlight, sgt_kick_ur_ass |
 Add Feedback Provide constructive feedback. What is "constructive"?You cannot post yet!Get involved on FPSB by posting your thoughts. Give authors your feedback to help them develop. To post in this submission register or login. |
 You cannot assess yet!Moderating FPSB is in your hands - when you assess a submission your vote determines its success or failure. To vote on this submission register or login. This Tutorial in a nutshell... Helpful & Useful 8 x Helpful 8 x Useful 5 x Well Written 4 x Informative 4 x Handy 3 x Detailed 1 x Concise 1 x Comprehensive You cannot stamp yet!Stamps let you apply characteristics to submissions to help others understand them. To stamp this submission register or login.
 |
Half Life Storm The Mappers Corner! |
| Membership: On Request |
| Primary Skills: Compiling, Mapping, Modelling, Motion Graphics, Texturing, UV Mapping |
| Inception: 3 years ago |
Want more? Find related tuts. |