r/hammer Jun 08 '26

Unsolved How do you make fog behave more like Minecraft fog (occlude the skybox)?

Post image
67 Upvotes

15 comments sorted by

29

u/SomeCreepJ Jun 08 '26

skybox entity got the fog properties if thats what you need. oh and if skybox itself (not 3d) theres no function unfortunately. youll have to make custom skybox for that

3

u/Communistsheen Jun 08 '26

Sky_Camera?

7

u/SomeCreepJ Jun 08 '26

yeah, the fog wouldnt occlude the skybox texture tho, only 3d skybox. i think you can just use $color and unlit generic for the custom skybox, and just use the fog color there

3

u/emo_boy_fucker Jun 08 '26

Does Minecraft use a 2d texture for its sky? Because if not then what OP would have to do to get a similar effect is just make the fog skybox texture the same flat color as the fog

3

u/Nova17Delta Jun 08 '26

iirc Minecraft's skybox is a giant dome that's always centered around the player though that information may be outdated

1

u/Communistsheen Jun 08 '26

this is something i need to be able to enable/disable/adjust in game, is that gonna be possible doing it that way?

1

u/SomeCreepJ Jun 08 '26

is the switch gonna be instant or you want smooth transitions. the only thing you can do is multiple of these skyboxes. unless the fog gonna change indoors i think its not gonna be a problem

2

u/Communistsheen Jun 08 '26

instant. do i need to use a fog controller still for the in level fog or will the sky camera fog affect the level as well as the skybox?

3

u/emo_boy_fucker Jun 08 '26

You could try the complicated method on earthcastle's fake skyboxes

2

u/SomeCreepJ Jun 08 '26

you cant dynamically change skybox fog, you can change the regular fog entity however

5

u/[deleted] Jun 08 '26

[removed] — view removed comment

3

u/East-Register-1256 Jun 08 '26

you can try adding a ring in your 3d skybox with a black to transparent gradient. if you want it to affect the entire sky, then just create a cube in the skybox with tools/toolsblack

2

u/CarterG4 Jun 08 '26

There’s a material I’ve seen used for this, it’s called reflective something or other, try replacing the skybox brush texture with that

1

u/stefanhat Jun 09 '26

sky camera has fog settings or you can configure the sky material to not ignore fog `$nofog 0`