Left 4 Dead 2

Left 4 Dead 2

View Stats:
jad Dec 29, 2024 @ 7:59pm
water renders underneath the world
tried other water textures, yes the texture's only on the top face
tried making a separate map with just the water and some ground, still happens
Originally posted by AlwaysToast:
Ok I was able to reproduce the error (the picture helped a great deal in figuring it out). The water is rendering only when the skybox is behind the water (which creates the illusion that the water is in the skybox), I suspect because the skybox has a default fog value. If the water was in the middle of the map you wouldn’t see it (it would just fail to render). But because you have it on the edge of the skybox, only the water with the skybox behind it will render. The water with any other texture behind it is failing to render due to the env_fog_controller not being setup.

Anyway easy to fix.
Place a point entity env_fog_controller in the map (if you don’t have one).
Open the env_fog_controller
Set
Enable Fog = Yes

Go to the Flags tab of the env_fog_controller.
Click Master to have the check on.

It’s really annoying that the env_fog_Controller has the Enable Fog set to No by default.

You can then set any of the other values as you like, but it won’t work until Enable Fog is set to yes, and you need one master fog on the map.

Recompile the map and the water should be working with any surface water texture.
< >
Showing 1-4 of 4 comments
AlwaysToast Dec 29, 2024 @ 8:37pm 
Water doesn’t render at all if there is no point entity env_fog_controller (turn the master flag on, and set the fog color to something appropriate for your level/sky). You generally want an env_cubmap above the water for reflections. If you made a map with only ground and water, that list lacks an env_fog_controller and an env_cubemap. So add those and see if it fixes the problem.

If that didn't fix it:
Did you put the water texture on a brush that is not a rectangle? It should be on a rectangle.

What do you mean “renders underneath the world”???
Normally if the water doesn't render, the water exists in the location you put it, but you can't see it (usually due to a lack of fog). So I don't understand what you are seeing.

Do you have a leak into the void? (or any other errors in your compile log?) If so fix that.

Which specific water texture are you trying to use?
jad Dec 30, 2024 @ 1:12am 
what i mean is, the water APPEARS, but everything else appears OVER it. like say i have a displacement with a dip in it for a pond. the displacement (and everything else in the map) is rendered over it. if there's a hole that i can see through to the skybox, i can see the water.
if there was a leak, wouldn't the map just... not run at all?
like i said, none of the water textures work. i applied basically all of them and recompiled the map, the problem persisted.
i originally had a cubemap and fog entity in the real map i was making. this changed nothing with or without either.
https://steamuserimages-a.akamaihd.net/ugc/32185871456064237/699F3B03226869C40077A1C973B9D74A804FAB75/?imw=5000&imh=5000&ima=fit&impolicy=Letterbox&imcolor=%23000000&letterbox=false
Last edited by jad; Dec 30, 2024 @ 1:17am
The author of this thread has indicated that this post answers the original topic.
AlwaysToast Dec 30, 2024 @ 10:45am 
Ok I was able to reproduce the error (the picture helped a great deal in figuring it out). The water is rendering only when the skybox is behind the water (which creates the illusion that the water is in the skybox), I suspect because the skybox has a default fog value. If the water was in the middle of the map you wouldn’t see it (it would just fail to render). But because you have it on the edge of the skybox, only the water with the skybox behind it will render. The water with any other texture behind it is failing to render due to the env_fog_controller not being setup.

Anyway easy to fix.
Place a point entity env_fog_controller in the map (if you don’t have one).
Open the env_fog_controller
Set
Enable Fog = Yes

Go to the Flags tab of the env_fog_controller.
Click Master to have the check on.

It’s really annoying that the env_fog_Controller has the Enable Fog set to No by default.

You can then set any of the other values as you like, but it won’t work until Enable Fog is set to yes, and you need one master fog on the map.

Recompile the map and the water should be working with any surface water texture.
jad Jan 1 @ 5:04am 
sweet, also fixed the fog (which also wasn't appearing).
thanks!!!
happy new year too i guess lol
Last edited by jad; Jan 1 @ 5:05am
< >
Showing 1-4 of 4 comments
Per page: 1530 50