This article shows how to illuminate a scene with Corona Sky map, its setting and examples of usage.

Overview


Corona Sky is a procedural texture that can be used to illuminate your scene with a realistic skylight. By default, it is visible directly, in reflections, and in refractions, it casts light onto the scene objects and bounces around producing global illumination, just like in real life.

Once a combination of Corona Sky and Corona Sun is used, the sky appearance will be automatically updated based on the sun position, for example casting warmer light when the sun is closer to the horizon, and cooler light if the sun is in the zenith position.

By default, Corona Sky and Corona Sun simulate perfectly clear daylight with no clouds layer which in real life would make the lighting softer. This is why the result you get out of the box may appear too bright and with overly sharp shadows. We will explore ways to control these features of the scene lighting further in this guide. 


 

 

Settings


Corona Sky Texmap

 

Sky model – Defines which sky model to use. The default choise of PRG Clear Sky model is the most physically accurate and works best in most scenes. There are 3 more different Sky models: Preetham et.al, Rawa-Fake, Hosek & Wilkie.

Intensity – Overall intensity multiplier of the sky. Default value of 1.0 produces physically accurate result.

Turbidity – The amount of pollutants (smog) in the atmosphere. Increasing the value makes the sky more hazy, while decreasing it makes the sky clearer.

"PRG Clear Sky" model has a valid range of turbidity between 1.81 and 4.89 (values outside of this interval are clamped).

Fake horizon blur – How much the sharp horizon line is bluerred. This simulates aerial perspective.

There is no need to use this fake blur with the PRG Clear Sky model, since it already has physically correct blur, which can be controlled by the altitude parameter.

Improved model

Altitude – Observer altitude in meters. With higher values the sky gets clearer and the horizon line less sharp.

Volume effect – Enables volumetric effect based on the atmospheric settings from this sky map.

Scale – Scales the atmospheric volume effect. Increasing this value will lead to the increase of density of the volume and thus to more pronounced volume effect.

Only the value of 1 is realistic in a scene with correct scale.

Only one such atmospheric volumetric effect will be used at any given time, even if multiple sky maps are present in the scene.

Alpha mode – Specifies how the volume effect is visible in the alpha channel. Available modes are:

Default – This is the default mode. In this mode, the volume effect alpha value is derived from its opacity.
Always black – In this mode, the volume effect alpha value is black (it shows as transparent).
Always white – In this mode, the volume effect alpha value is white (it shows as opaque).

Sun Selection Allows to select which mode to use:

Automatic – To compute sky texture value, we need to know the sun's position in the sky. Automatic mode selects the sun object in the scene automatically. Manual mode allows the user to selects the sun object in the scene automatically.

ManualAllows the user to select the sun object manually.

Ground

Color – The constant color used for the ground under the sky. The sky itself is affected by this value near the horizon.

Affected by sky – When enabled, the ground color is assumed to be the input diffuse color of the ground material, which is multiplied by the sky irradiance. When diasabled, the ground color is the final color returned by the texture for low angles, regardless of the sky.

 

Usage Workflow


To add a Corona Sky to your scene:

  1. Create a new Corona Sky node in the material editor.
  2. Drag and drop your Corona Sky into the 3ds Max Environment slot.
    (or into Render Setup > Scene > Scene Environment >Single map slot - it works exactly the same way)
  3. If you render your image now, you will already see the effect of Corona Sky illuminating your scene.
  4. Optionally: add a Corona Sun object - it will be automatically connected with your Corona Sky.

Once this is done, you can use interactive rendering to preview your Sun and Sky and see your changes and how they affect the scene in real-time (for example if you move the sun or change the parameters of the Sky). 

You can also click on the "empty" slot in the 3ds Max Environment dialog to add a new Corona Sky map. The workflow is up to you, and the main goal is to place the Corona Sky map in the environment slot. 

 

 

Corona Sky and Corona Sun Intensity and Shadow Sharpness


The default result you get when using the Corona Sky and Corona Sun simulates perfectly clear weather with no clouds or haze.

The scene rendered with the default values of Sky intensity 1 and Sun intensity 1:

 

 


 

You can simulate an overcast sky or other atmospheric phenomena, that make lighting less intensive in real life, using the built-in Corona Sky and Corona Sun controls.

To make the overall environment lighting intensity lower - lower the intensity of your Sky and Sun.

In this case, the intensity of the Sky is lowered to 0.5 and the intensity of the Sun is lowered to 0.2:

 

 


 

To make the Corona Sky less intensive relative to the Corona Sun - lower the Sky intensity and leave the Sun intensity at the default value. In this case, the Sky intensity is lowered to a very low value of 0.05 to demonstrate the effect:

 

 


 

To make the Corona Sun less intensive relative to the Corona Sky, you can also lower the Sun intensity while leaving the Sky intensity at the default value of 1. In this case, the Sun intensity was lowered to a very low value of 0.1 to demonstrate the effect:

 

 

Sharpness of Shadows


By default, Corona Sun casts sharp shadows because it is not "blurred" by any layer of clouds or haze that would exist in the real world. To get softer shadows, you can simulate the sunlight being scattered over a larger surface of the sky dome by increasing the sun size:

 

 

Sun size 1 (the default value)

Sun size 4

Sun size 16

 

 


You can also control your scene exposure globally to make the overall image brighter or darker:

 

 

Exposure -2
Exposure -4

 

 

Sky Models and Parameters


PRG Clear Sky Model

The PRG Clear Sky Model was introduced in Corona Renderer 6. It provides greater accuracy, and most importantly, the sky continues to be accurately illuminated when the sun is below the horizon, down to as low as -2.85 degrees (or, approximately 5.4 sun diameters below the horizon), which enables dawn and twilight effects. You can see the difference with the sun below the horizon in the comparison below:

 

 

Before
After

 

 


The PRG Clear Sky Model also removes a greenish tint that was cast into the scene when using the legacy Hosek & Wilkie Sky Model:

 

 

Hosek&Wilkie
New Improved Sky Model

 

 

PRG Clear Sky Model - Horizon Blur


 

 

Horizon blur 0

Horizon blur 0.1 (default setting)

Horizon blur 0.5

 


PRG Clear Sky Model - Ground Color


 

 

Ground color set to black
Default Ground color "Affected by sky" disabled

 

 


 

 

Turbidity

Turbidity defines the number of pollutants(smog) in the atmosphere. Increasing the value makes the sky hazier while decreasing it makes the sky clearer.

"PRG Clear Sky" model has a valid range of turbidity between 1.81 and 4.89. Values outside of this interval are clamped.


 

 

Volume Effect

Volume Effect is based on the atmospheric settings from the CoronaSky.

Only one atmospheric volumetric effect will be used at any given time, even if multiple sky maps are present in the scene.

 

Turbidity 1.7

Turbidity 2.5

Turbidity 5

Turbidity 10

Volume Effect 0.5

Volume Effect 1

Volume Effect 10

Volume Effect 50

 


 

 

Altitude

With higher values, the sky gets clearer and the horizon line less sharp.

 

 

Preetham et. al. Sky Model

Preetham et. al. Sky Model is one of the legacy physical sky models. It is less realistic than the PRG Clear Sky Model. 

 

Altitude 0

Altitude 100

Altitude 5000

Altitude 10000

Preetham et.al. Sky Model -Turbidity 1.7

Preetham et.al. Sky Model Default settings

Preetham et.al. Sky Model - Turbidity 5

 

Rawa-fake


Rawa-fake is a "fake" (non-physical) sky model, which allows for easier customization (the Zenith color, Horizon color, Sundisk glow, and Sun colorbleed values can be changed under "Rawafake model parameters" once this model is selected).

 

 

Default settings
Adjusted Zenith and Horizon color

 

 

Hosek & Wilkie


Hosek & Wilkie was the previous recommended and most realistic sky model (in Corona Renderer 5 and older). It produces realistic results, however it has some disadvantages compared to the PRG Clear Sky Model - for example, it does not allow rendering of the sundisk below the horizon and casts a greenish hue into the scene - see the description at the top of this "Sky models and parameters" section)

 

 

Hosek & Wilkie - Turbidity 1.7

Hosek & Wilkie - Default settings

Hosek & Wilkie - Turbidity 5

 


Using Multiple Corona Skies and Corona Suns in a Single Scene


In Corona Renderer it is possible to set up an environment with multiple suns and skies, which will illuminate the scene.


Multiple Suns

To add multiple suns to your scene, simply create multiple Corona Sun objects.

In a case like this, where there is only a single sky and two suns, the sky will only react to one of the suns by creating a realistic halo effect around it. It is not possible to link more than one sun to a single sky.

 

 

Multiple Suns and Skies


It is also possible to add more than one sky to a scene. In this example there are two suns, and each sun is linked to its own separate sky. This way the two skies are each affected by its own sun creating realistic atmospheric effects. 

 

 

 

How to do add multiple suns and skies

 1. Create multiple suns by adding more than one Corona Sun object into the scene

 

2. Create more than one Corona Sky map in the material editor

 

 

3. Go to Render Setup > Scene > Scene Environment and select "Multiple maps (LightMix)". Then click on the "2 maps" button.

 

4. Plug your Corona Sky maps into the slots available in the Corona Multiple Environment Maps Setup dialog. 

If you would like to add more than 2 environments to your scene, this is possible as well. In such case, simply increase the number of maps using the spinner at the top of the window.

 

By default, each Corona Sun will be automatically linked to each corresponding Corona Sky:

 

It is also possible to manually specify which sun should be linked to which sky:

 


Using Corona Sky and Corona Sun with LightMix


Regardless if using a single Corona Sky and Corona Sun or multiple ones, it is possible to control their colors and intensities using LightMix. This can be done using the "Open Corona Interactive LightMix Setupbutton in the Corona Official Toolbar.

In this example, to demonstrate how LightMix can be used with multiple suns and skies, the colors of the first sun and sky were changed to cool blue, and the colors of the second sun and sky were changed to warm orange:

 

 

Adding Clouds


Starting from Chaos Corona 9, there is an option to add Clouds to the Corona Sky map.

Clouds Parameters

Enable clouds:

Amount – The amount of the main clouds (stratus, cumulus, cumulonimbus). A value equal to zero means there will be no such clouds in the sky, while a value equal to 1 means the sky is full of these clouds.

Variety Random changes the appearance of main clouds.

Cirrus amount The amount of cirrus clouds (clouds high in the sky). A value equal to zero means that no cirrus clouds will be visible, while a value equal to one means the maximum amount of cirrus clouds in the sky.

Phase Determines minor perturbation of the clouds to simulate their change in time.

Clouds position

Altitude Controls the altitude (measured from the ground) at which the main cloud starts.

Height Controls the height (thickness) of the main clouds. Increasing this value will lead to heavier clouds while decreasing it will result in lighter (more transparent) clouds.

Offset X Offset in X axis.

Offset Y Offset in Y axis.

Contrails

Plane count – Controls how many planes are simulated to create contrails.

Time – Controls the simulation of time - increasing time moves planes along their travel direction. Increasing this property by larger values can be used as a random seeding of the planes positions.

Strenght – Determines how much are contrails visible in the sky.

Distortion – Determines how much are contrails distorted. Value of zero gives contrail lines without any distortions, while value of one results in a maximum amount of distortion.

Offset X – Offsets the contrails horizontally in the sky.

Offset Y – Offsets the contrails vertically in the sky.

 

 

Tutorial: Procedural Clouds with Chaos Corona for 3ds Max


 

 


 

Clouds amount - 0

Clouds amount - 0.25

Clouds amount - 0.5

Clouds amount - 0.75

Clouds amount - 1

Cirrus amount - 0.25

Cirrus amount - 0.5

Cirrus amount - 0.75

Cirrus amount - 1

 


 

Sun possition 1

Sun possition 2

Sun possition 3

Sun possition 4

Sun Direct Input color - Black

Sun Direct Input color - Purple

Sun Direct Input color - Green

Sun Direct Input color - Pink

 

 


Examples, Tips & Tricks


Corona Sky map - Color Correction

While it's not physically accurate, because the sun and sky model is accurate by default, it is possible to color-correct the Corona Sky map for artistic direction, for example using the Corona Color Correct map

 

Corona Sun direct input color with Sky Cloud Color

If you set Corona Sun color to direct input - clouds will be colored based on the sun's color:

Tone mapping, post-processing, bloom and glare

Post-processing effects, such as bloom and glare greatly affect the appearance of the sun and sky. Even a small change in the sun and sky color or intensity can drastically change the reception of the rendered image:

 

Tone mapping 1

Tone mapping 2

Tone mapping 3

Sun, sky, and caustics

Remember that when caustics are enabled they will be generated by the Corona Sun and Corona Sky as expected:

 

Saving Corona Sky and Corona Sun as a 360 HDRI bitmap

Once Corona Sky and Corona Sun are added into a scene, the resulting render from a 360 panoramic Corona Camera can be saved as a 32-bit file (for example EXR) and can be then re-used as HDRI environment for other scenes. For correct rendering of a spherical panorama, the proportions of the output image should be set to 2:1 (e.g. 2000 x 1000 pixels).

There is virtually no rendering performance difference between rendering a scene with procedural Corona Sky + Corona Sun and using an HDRI environment. Using a Corona Sky + Corona Sun setup allows for better flexibility as the various parameters and sun position can be changed interactively, which is not possible in the case of an HDRI environment

A 360 panorama like this can be used as an environment map for other scenes