This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes
Godot version 3.2.3
in Engine by (599 points)

3 Answers

0 votes

As a simplest option, draw skybox in painting application (with panoramic projection) and use it in Environment - background - sky - panorama.

by (1,646 points)

The problem with that though is that it creates a massive line in the sky. Do you know how to write a shader for the sky maybe?

Can you take a screenshot of the line in the sky, upload it to a website like Imgur and paste the link as a comment here?

Do you know how to write a shader for the sky maybe?

Sky shaders will only be supported in Godot 4.0, not Godot 3.x.

0 votes

Create a WorldEnvironment node, set property Background - Sky - Sky Material = PanoramaSkyMaterial

Then set property PanoramaSkyMaterial - panorama = GradientTexture2D, set your custom gradient, finished.

As for stars, i think you can draw some animated sprites, then place several animated sprites on high pos with billboard shader.

Version: v4.0.rc2.official [d2699dc7a]

Gradient Sky

by (14 points)
0 votes

To create the panorama sky texture without any stretching at the top or bottom or any seams, you can create it procedurally in blender using the shader node editor and apply it to a sphere then render it in cycles using a panoramic camera of type equirectangular to an output image with an aspect ratio of 2:1, like 2048*1024.

If anyone is interested in this workflow and need full explanation, comment below.

by (2,018 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.