Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OMI_environment_sky #244

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

aaronfranke
Copy link
Member

@aaronfranke aaronfranke commented Jan 16, 2025

Preview: https://github.com/aaronfranke/gltf-extensions/tree/OMI_environment_sky/extensions/2.0/OMI_environment_sky

This is a work-in-progress extension for specifying a skybox in glTF data, allowing for glTF scenes to have skyboxes, and defines how the sky provides environment lighting.

The sky can be a gradient, panorama, physical sky, or plain sky. The sky can be used to light the scene, provide a background, or both. To add suns to the sky, use the KHR_lights_punctual extension to define directional lights.

  • Gradient skies use color gradients to define the sky colors: top, horizon, and bottom colors. The sun angle can be defined, but the sun color comes from the directional light. The blending between these colors is controlled by the curve values. Also, gradient skies can be used for plain color skies when a visual sun is required.
    gradient_sky

  • Physical skies use a physically-based model to simulate the scattering of light in the atmosphere, including rayleigh and mie scattering colors and parameters. The default values are for Earth, and can be tweaked for other planets.
    physical_sky

  • Panorama skies use a texture or set of textures to represent the sky. It can be either a single equirectangular texture (more common, recommended) or a cubemap texture (supported by some engines).
    epic_blue_sunset_equirectangular

  • Plain color skies have the entire skybox as one color. They do not have a sun or any special decorations. Here is a test scene with an aggressively cyan sky as a test.

There is a Godot implementation here: omigroup/omi-godot#15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant