need assistance with evn_sun

  • If you're asking a question make sure to set the thread type to be a question!

Gigins

L1: Registered
Oct 5, 2008
38
0
Hello!

Once again I pledge for your assistance. I'm trying to put a sun effect in my map but apparently I cant get it to work. Can you please explain how exactly do I make the sun?

Gigins
 

Gigins

L1: Registered
Oct 5, 2008
38
0
I sure did. Kinda did it all like it's written there. Just don't know what am I doing wrong. xD
 

Armadillo of Doom

Group Founder, Lover of Pie
aa
Oct 25, 2007
949
1,228
For starters, you'll have to be more specific. Is the sun not showing up at all, in the wrong place, too dark or what? When dealing w/ troublesome entities, posting your keyvalues and flags is a good idea as well.
 

Gigins

L1: Registered
Oct 5, 2008
38
0
Ok, I put the evn_sun in the map, change it's color to yellow. When it didn't work, I played around with pitch and size. env_sun doesn't do/show anything. I think I'm just missing something. Sorry for my ignorance about this.
 

Armadillo of Doom

Group Founder, Lover of Pie
aa
Oct 25, 2007
949
1,228
Silly question, but you do have a proper light_environment, yes? And I mean changing the skybox texture in the map properties of Hammer as well. Make sure your pitch is between -90 and 0. To get the light really shining down on the map, I usually set it to -45. Pitch and Yaw settings should be the same for both entities. And if that doesn't work, some pics would be nice.
 

Gigins

L1: Registered
Oct 5, 2008
38
0
Ok, I do have light_environment and skybox set to sky_hydro_01. Pitch in both entities is -85, I need it so high because of the map structure. It doesn't do anything at all, the sky is clear as it is without the evn_sun. Maybe you could post a screeshot of how it should look?
 

Shaar

L3: Junior Member<BR>toboruin
Aug 7, 2008
231
206
when compiling the map, what are the settings your compiling it with?

if you compile it with VIS and RAD off, you aren't gonna get any shadows, and therefore, your not gonna see the effect of the sun. you need to run VIS and RAD on fast if you wanna see the sort of effect you'd get.
 

Gigins

L1: Registered
Oct 5, 2008
38
0
I'm compiling with full VIS and RAD when testing lightning. Really, I'm probably missing something simple as always. xD
 

Gigins

L1: Registered
Oct 5, 2008
38
0
It's just clear sky, like the env_sun wouldn't be there. here are the screenies, I took them from different angles.
ss3xd9.jpg

ss2hj1.jpg

ss1bm4.jpg


Maybe someone could just post a step-by-step instruction. I know I'm asking much, bet I looks like I'm not getting this to work on my own. xD
 

YM

LVL100 YM
aa
Dec 5, 2007
7,135
6,056
post all the keyvalues from your env_sun as well as all the flags you've got checked
 

Gadget

aa
Mar 10, 2008
531
527
here's what you need for the env_sun:

Pitch Yaw Roll (Y Z X): 0 xx 0 (where xx is the angle of your light_env)
UseAngles: Yes
Pitch: same pitch as your light_env (has to be negative)
Sun Color: 254 226 186 (default from badwater)
Overlay Color: 0 0 0 (default from badwater)
Size: 16
Overlay Size: -1
Material Name: sprites/light_glow02_add_noz
Overlay Material Name: sprites/light_glow02_add_noz
HDR color scale: 1.0

env_sun has got no flags to check.

An additional suggestion: use the sky_tf2_04 so you can see the sun easier
 

Gigins

L1: Registered
Oct 5, 2008
38
0
Yea thanks it worked now. But also made a problem. Now everything reflecting on the map is totally white, even things inside the buildings, although they have their own cubemaps. xD