Env_sun + shadows? What is wrong?

Avatar
beecake
484 Posts
Posted Oct 19, 2011
I am making a map where i in one of the rooms want to have a white sky, with a sun above me.
The sun should make the the props, i have placed, cast shadows.

I have made the sky with the skybox but the sun is not visual!
img

It does not cast shadows at the floor
img

Before i got the white sky, i managed to make a sun. On the pictures above i have done excactly the same as here
img

What i am using:

A 3D-skybox with the white skybox-texture

An info_target called "target"

An env_sun pointing at "target"

A light_enviroment pointing at "target"

Props to cast the shadows

What do i do wrong?

Advertisement
Registered users don’t see ads! Register now!
Avatar
Vordwann
767 Posts
Posted Oct 19, 2011
Replied 1 hour later
Why do you need a 3d skybox?
Avatar
beecake
484 Posts
Posted Oct 19, 2011
Replied 1 hour later

Vordwann wrote:
Why do you need a 3d skybox?

I dont? I've searched around the net to find a tutorial, and in every tutorial they use a 3D-skybox... Can you give me a quick tutorial without 3D Skybox?

Avatar
iWork925
1,080 Posts
Posted Oct 19, 2011
Replied 5 minutes later
Um wtf? Delete sun. That shit looks stupid. Make an env_projectedtexture and point it downwards. Better yet decompile the second valve SP map and steal they're one. Looks like a gel sprayer thingy just below the skybox.
Avatar
beecake
484 Posts
Posted Oct 19, 2011
Replied 1 minutes later

iWork925 wrote:
Um wtf? Delete sun. That shit looks stupid. Make an env_projectedtexture and point it downwards. Better yet decompile the second valve SP map and steal they're one. Looks like a gel sprayer thingy just below the skybox.

Nice thank you... I'll check it out right away!

Avatar
Rubrica
305 Posts
Posted Oct 19, 2011
Replied 50 minutes later
Actually, the way vVave maps do it is by using a light_environment; look them up on the VDC or find my tutorial thread (it should be buried somewhere around here, I might find it for you in a minute).
Avatar
beecake
484 Posts
Posted Oct 19, 2011
Replied 11 minutes later

Rubrica wrote:
Actually, the way vVave maps do it is by using a light_environment; look them up on the VDC or find my tutorial thread (it should be buried somewhere around here, I might find it for you in a minute).

It would help me alot! :thumbup:

Avatar
iWork925
1,080 Posts
Posted Oct 19, 2011
Replied 7 minutes later

Rubrica wrote:
Actually, the way vVave maps do it is by using a light_environment; look them up on the VDC or find my tutorial thread (it should be buried somewhere around here, I might find it for you in a minute).

Um, no. If you ACTUALLY look (and by actually I mean ACTUALLY!) at an early Valve map. They use projected texture as well as the light_environment. The projectedtexture casts those hard raytraced shadows which live update. Looks awesome.

You wont achieve much with just a light_environment.

Avatar
spongylover123
944 Posts
Posted Oct 19, 2011
Replied 22 minutes later
Actually, in some of their maps, they use both a light environment and a sun, though some don't depends on the map and the mapper
Avatar
beecake
484 Posts
Posted Oct 19, 2011
Replied 3 minutes later

spongylover123 wrote:
Actually, in some of their maps, they use both a light environment and a sun, though some don't depends on the map and the mapper

Instead of discussing what Valve are using, could you then tell me how to make the sun effect? I think its very cool but i remake it! Please.

Avatar
iWork925
1,080 Posts
Posted Oct 19, 2011
Replied 8 minutes later
Maybe a sprite would look better.
Avatar
spongylover123
944 Posts
Posted Oct 19, 2011
Replied 7 minutes later
Yes, env_sprite, that's what the use underground to give light from the roof and other places
Avatar
Skotty
671 Posts
Posted Oct 19, 2011
Replied 1 hour later
Env_sun has just effect to the player if you can actually see a sky, not a white or black background.
If everything is already white, you couldn't localizie the sun.
Imagine you are in a dark room with just a small window and outside its very bright, like a hot summer day. If you just see "white" how should you be able to see the sun if already "everything" is the sun?
Avatar
beecake
484 Posts
Posted Oct 20, 2011
Replied 9 hours later

Skotty wrote:
Env_sun has just effect to the player if you can actually see a sky, not a white or black background.
If everything is already white, you couldn't localizie the sun.
Imagine you are in a dark room with just a small window and outside its very bright, like a hot summer day. If you just see "white" how should you be able to see the sun if already "everything" is the sun?

You've got a point, bit i've Aldi tried other types of skybox, like a nightsky with Stars. Can you tell me, d? i have to have a 3D-skybox to make the player get a visual Sun?

Advertisement
Registered users don’t see ads! Register now!
Avatar
Skotty
671 Posts
Posted Oct 20, 2011
Replied 3 hours later
No, you just need a env_sun and a skybox texture anywhere where you want to see the sun.