3D Skybox on Godot 4

Godot Version

Godot 4.7.1

Question

Any way i could make a 3D Skybox to load on Godot 4?

Define “3D Skybox”.

by “3D Skybox”, i mean a skybox that ISN’T Static like an Image skybox.

There are procedural sky features in Godot, but that’s very vague still

Depending on what you want to move there - you can use a sky shader. If you need something rendered in real time, you could render a cubemap using 6 cameras into subviewports and read that in the sky shader. That’d be a bit more involved. You can also just render some far away geometry, either into subviewport or simply into the main scene.

Describe what exactly you want to do, maybe show some mockups or an example from an existing game.

Well, by 3D Skybox, an example could be the Cliffside Skybox on Half-Life: Source.
That’s the best example i could get.

“Sky box” generally means “the sky is a mesh that is rendered behind the rest of the scene”. A totally different approach than using a sky shader.

Yes, this is possible. I remember a tutorial using render layers to always render the weapons in a first person games in front of the walls, regardless of their position in the game world. The same technique can be used to always render the sky behind the rest of the scene, regardless of its position in the game world.

In video game context “skybox” usually means a full 360 environment texture, most commonly in cubemap or equirectangular projection. The “box” part is a remnant from pre-shader era where cubemap was predominantly used, mapped onto an actual cube geometry. Today you can just project anything onto a backdrop plane from a shader.

That’s why I asked the OP to define what they mean, since people may have different ideas of what “skybox” is.

Can you post a video that shows it in action?

In general you can use any 3d scene as a backdrop via a sky shader. Copy main camera’s properties to backdrop scene’s camera on every frame, render backdrop scene to subviewport and just read the subviewport texture in the sky shader using screen uv coordinates. If you don’t want to use sky shaders for some reason, you can map it to enclosing geometry from a regular shader in exactly the same way. Doing it from a sky shader is a bit more elegant though.