Page MenuHome

Nishita sky: Increase max elevation to 360°
AbandonedPublic

Authored by Clément Foucault (fclem) on Jan 4 2022, 11:02 AM.

Details

Summary

The Nishita sky texture currently only allows moving the sun to the zenith. The problem is if you want to animate the passing of a full night-day-night cycle. Currently it's not easy to do due to this limitation.

The patch makes it so users can easily animate the sun moving from sunrise to sunset by expanding the max sun elevation to go 360° instead of 90°.

Diff Detail

Repository
rB Blender

Event Timeline

William Reynish (billreynish) requested review of this revision.Jan 4 2022, 11:02 AM
William Reynish (billreynish) created this revision.
Clément Foucault (fclem) requested changes to this revision.Jul 11 2022, 2:38 PM

I would allow [-π, +π] range for the UI but unlock the range to any angle for animation.

This revision now requires changes to proceed.Jul 11 2022, 2:38 PM
This revision now requires review to proceed.Jul 19 2022, 4:35 PM
This revision was not accepted when it landed; it landed in state Needs Review.Jul 19 2022, 4:36 PM
This revision was automatically updated to reflect the committed changes.

Using negative values on the Nishita sky texture elevation produces a weird-looking sun disc.
The bug:


Expected result:

Using negative values on the Nishita sky texture elevation produces a weird-looking sun disc.
The bug:


Expected result:

Thanks, this was fixed in rB46dbfce7fc59.

However, next time you encounter a bug, please fill a bug report. It makes it easier to track and avoid the issue going unnoticed.