COZY Documentation
  • Welcome!
    • πŸ‘‹Hello!
    • πŸ—ΊοΈRoadmap
    • πŸ†˜Support & Community
    • πŸŽ“Changelog
  • Getting Started
    • πŸ”ŒInstallation
    • πŸ› οΈSetting Up Your Project
    • 🌐Creating a New Scene
    • πŸ“¦COZY Samples
  • How it works
    • βš™οΈThe System Perspective
    • ⏱️Meridiem Time
    • 🌈Gradients & Curves
    • βš–οΈWeighted Random Chance (WRC)
    • πŸ§‘β€πŸ«Weather Selection & Forecasting
    • The Weather Sphere
      • 🌌The Sky Dome
      • ☁️The Cloud Dome
        • COZY Desktop Clouds
        • COZY Mobile Clouds
        • Soft Clouds
        • Painted Skies
        • Ghibli Desktop & Mobile Clouds
        • Single Texture Clouds
        • Luxury Clouds
      • 🌫️The Fog Dome
    • Modules
      • 🌌Atmosphere Module
      • πŸ•‘Time Module
      • 🌦️Weather Module
      • πŸƒAmbience Module
      • 🌑️Climate Module
      • ⚑Events Module
      • 🎨Interactions Module
      • ☁️Buto Module
      • 🌎MicroSplat Module
      • 🌳The Vegetation Engine (TVE) Module
      • πŸͺžReflections Module
      • πŸŒ™Satellite Module
      • πŸ—ƒοΈSave & Load Module
      • πŸŒ„Transit Module
      • πŸ’¨Wind Module
      • πŸ•‘System Time Module
      • πŸ›Debug Module
      • ☁️Plume Module
      • πŸŒ‡Blocks Module
      • πŸŒ‘Eclipse Module
      • πŸ“†Habits Module
      • 🎼ReSound Module
      • πŸ”—Link Module
    • Profiles
      • Ambience Profile
      • Atmosphere Profile
      • Forecast Profile
      • Perennial Profile
      • Satellite Profile
      • Material Profile
      • Weather Profile
      • FX Profiles
        • Audio FX
        • Climate FX
        • Cloud FX
        • Event FX
        • Filter FX
        • Multi FX
        • Particle FX
        • Precipitation FX
        • Thunder FX
        • Visual FX
        • Wind FX
      • Climate Profile
    • Biomes
    • Settings
  • Extending COZY
    • Stopping Indoor FX
    • Developing the Render Queue
    • Utilities
  • Integrations
    • Crest Water 4 (URP Only)
    • Crest Water 5
    • Stylized Water 2
    • KWS Water System
    • Generic Shader Graph
    • The Vegetation Engine
    • MicroSplat
  • Appendix
    • Frequently Asked Questions (FAQs)
    • Improving Performance With COZY 3
Powered by GitBook
On this page
  • Why Gradients & Curves
  • Using Gradients & Curves Practically in COZY Weather

Was this helpful?

  1. How it works

Gradients & Curves

Interpolation based maths and how they apply in COZY

PreviousMeridiem TimeNextWeighted Random Chance (WRC)

Last updated 7 months ago

Was this helpful?

Many things that move/change color in COZY Weather use gradients and curves to allow for easy and intuitive editing. As it turns out, unless you have a thorough understanding of both COZY and interpolation based mathematics, gradients & curves are slightly less intuitive than one would hope. This article aims to remedy this problem and should make your transition into the COZY system even easier.

Why Gradients & Curves

Curves are useful because they store information in a Two Dimensional method instead of a One Dimensional vector. Now that I've cleared this up sufficiently.......I'm kidding.

Curves are essentially just like floats. The only difference is that they store interpolated versions of the float data type. In more simple language, a curve stores a series of floats along with a key for each that determines where on the curve this data is placed (more practically known as the time). Along with this data, the rest of the curve is filled in with interpolations between the keys so that your curve is completely filled with data. This curve can then be evaluated from 0-1 and the value of the curve at that time is returned.

For more information on how animation curves work, please read this by & .

Using Gradients & Curves Practically in COZY Weather

In practicality, this is an incredibly helpful tool to use within COZY's editor. Due to the property of Meridiem Time that allows it to condense to a single 0-1 float, the time of day will perfectly match up to a curve.

If you think of both ends of the curve as midnight, the sun will rise at values around 0.25, noon will fall around 0.5, the sun will set again around 0.75, and the cycle repeats with midnight at values of 1.

🌈
blog post
Eduardo Oriz
Christo Nobbs