CesiumGS / CesiumGS/cesium

Day-night lighting for models

Open
#6,437 2 comments 0 reactions 0 assignees View on GitHub
category - 3d tiles category - lighting category - model/gltf theme - visual quality type - enhancement
Dominant language
JavaScript
Stars
15.7k
Forks
3.9k
Avg merge
4d 6h
Merged PRs (30d)
34

Description

Models are lit based on the sun direction but there's no recognition of a day-night cycle. Two of the problems are:

* The sun basically shines through the ground during night, lighting the bottom-facing part of the model
* The ambient lighting doesn't adjust to time of day.

Should there be a day-night lighting option on Models/3D Tiles?

Requested on the forum: https://groups.google.com/forum/#!topic/cesium-dev/8Y2lHMgJZVM.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the Models and 3D Tiles lighting behavior described in the issue, along with the linked forum request. Determine how sun direction and ambient lighting currently respond to time of day, then define what a day-night lighting option should cover, including preventing sunlight from lighting bottom-facing surfaces at night. Done means the scope and expected lighting behavior are specified and implemented for the relevant model types.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
computer-graphics
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.