Search
Username:
Password:

Register or Reset Password

SUBMISSIONS
Counter Strike
   New Maps
   New Tutorials
   New Skins
   New GUI's
   New Sounds
   New Threads
Other
   Media
   Gamers
   Clans
   Studios
Using Env_sun to Add sunlight
Difficulty: Intermediate
Category: CS:S > MappingAuthor(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
  1. First, open up your map and place the following entities:
  2. Env_sun
    Light_environment

    info_target

  3. 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.



  4. 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.



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



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



  7. Now all you have to do is try to set the light_environment to point the same direction as the env_sun.

  8. Double click on the light_environment entity and press the Point at button.



  9. 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.

  10. 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.



  11. 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

  12. 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

  13. 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 agoTags: using, env_sun, mapping, sunlight, sgt_kick_ur_ass
Feedback (33)
Page of 4   1 2 3 4 Next Page
travnasty .
BananiteY2M
Posted 6 days ago
Posted by seancool161

My maps comes out all dark...
no light
i can see the sun, and all but no light...
=\


If you add any light to your map you have to light the rest of it as well.
- Bananite
.
Beginner MapperY2M
Posted 2 months ago
My maps comes out all dark...
no light
i can see the sun, and all but no light...
=\
Mikeyspike .
Finialy got to Clvl1 =DY2M
Posted 3 months ago
Pros: Great tutorial, Easy to read and .. well just nice and simply put
Cons: none
Improvements: none
Notes: Your work is just amazing. Keep making these sort of tuts please! there great! :D
ReDuX .
GuNs ArE hErE tO sAvE lIvEsY2M
Posted 4 months ago
I have a question, as soon as I add light to the map she gets dark??
paprika_killer .
If you were a paprika, I'd eat you raw.Y2M
Posted 4 months ago
Posted by drice27

10/10 awesome man, somebody should add a color tut with images so we can see how the sun is with different brightness, hint hint ;)


I do not know one with screenshots, but for TF2 there is one that give the optimal settings for each TF skybox.
- If you were a paprika, I'd eat you raw.
.
>Thumb Up My Friend, Thumb UpY2M
Posted 5 months ago
10/10 awesome man, somebody should add a color tut with images so we can see how the sun is with different brightness, hint hint ;)
.
>Thumb Up My Friend, Thumb UpY2M
Posted 5 months ago
Call me stupid please, never mind my other post.

stupid me!!
.
>Thumb Up My Friend, Thumb UpY2M
Posted 5 months ago
Cant find "point at" button
paprika_killer .
If you were a paprika, I'd eat you raw.Y2M
Posted 5 months ago
Wow, that's all I have to say.
simple tutorial, with amazing results.
- If you were a paprika, I'd eat you raw.
Assass1n .
Joe Shitz: "Yes I am fucking poor"Y2M
Posted 6 months ago
What was your skybox texture?

Nvm, don't both replying its sky_day01_08 for anyone who didn't know.
- Joe Shitz: "Yes I am fucking poor"
Page of 4   1 2 3 4 Next Page
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.
Assessment
The community's verdict.
User Rating [+]
9.8/10
bScore
9.8/10
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.
Stamps
This Tutorial in a nutshell...
Helpful & Useful
You cannot stamp yet!
Stamps let you apply characteristics to submissions to help others understand them.

To stamp this submission register or login.

Brought to you by...
Half Life Storm
The Mappers Corner!
Membership: On Request
Primary Skills: Compiling, Mapping, Modelling, Motion Graphics, Texturing, UV Mapping
Inception: 3 years ago
Vote for Studio
Like this tut? Vote Half Life Storm for one or more monthly awards.
You must login or register to access this!
Related Tutorials