Table of Contents

This page provides information on the LightMix, its settings and usage.

 

Overview


Interactive LightMix is unique to Corona Renderer and lets you adjust the intensity and color of your lights and light-emitting materials during and after render – perfect for anything from subtle adjustments to turning day into night directly from the Corona VFB. LightMix can be used on Corona EXR files outside of any 3D software using the Corona Image Editor.

 


Where to find the LightMix?


LightMix can be set up either automatically, or manually.

Set up LightMix automatically

Simply go to Render Setup > Scene and under General Settings press the Setup Interactive LightMix button. Corona Interactive LightMix Setup dialog will then pop up, allowing you to:

  • Choose the way lights are grouped - based on instances, groups, or individual lights.
  • See how much RAM is used by each LightMix layer (calculated depending on the resolution of the final render).
  • Decide whether hidden lights should be also considered by the LightMix setup.
  • Decide whether denoising should be applied to all LightMix and LightSelect render elements.

 

The available options for the automatic LightMix setup are:

  • Instanced lights If there are instanced lights in the scene, each group has its separate channel. All unique lights in the scene are stored in their individual render channels.
  • Individual lightsLighting information of each light is stored in a separate channel.
  • Grouped lights Lighting information of each group of lights is placed in a separate channel. All lights that are not attached to any group in the scene are stored in their individual render channels.
  • Layers Lighting information for each layer is stored in a separate channel.
 

 


 

Once the settings are confirmed with the Generate button:

  • One CShading_LightMix element is automatically added to enable LightMix option in the VFB
  • One CShading_LightSelect element is added with the environment lighting included - this allows changing the color and intensity of the scene environment
  • Multiple CShading_LightSelect elements are automatically added - this allows changing the color and intensity of each scene light

 

 


 

After using this one-click solution, you can simply start rendering the scene (both regular and interactive rendering will work), and then go to LightMix tab in the Corona VFB to change intensity and color of each light.

 

 


 

Set up LightMix manually

  1. Go to Render Setup > Render Elements, and then:
  2. Add at least one CShading_LightMix render element - this is required to enable the LightMix option in the VFB.
  3. Add at least one CShading_LightSelect render element - this is required to be able to control a scene light, or scene environment.

Each light that you wish to control should be added to Included light sources list in each CShading_LightSelect render element. You can add one or more lights to each LightSelect element. Additionally, you can enable the Include Environment Light checkbox to control environment lighting.

Objects that use CoronalightMtl with Emit light being disabled, cannot be added or selected for the CShading_Lightselect element. Equally, the same applies to objects with self-illuminated materials.

 

LightMix and Denoising


You can decide whether denoising should be applied to each LightSelect render element. To denoise the whole LightMix output, you must turn on the denoising option for all LightSelect elements.

Denoising can be enabled manually for each of the LightSelect elements.


 

 


 

Denoising can be also enabled automatically for all LightSelect elements using the included in denoising checkbox in the Corona Interactive LightMix Setup dialog.

Denoising can be enabled automatically for all of the LightSelect elements.


 

 


 

"Rest (unassigned)" LightMix item can be denoised and saved just like any other render element. 

This is achieved by allowing any LightSelect render element to act as the Rest (unassigned) render element by enabling the appropriate option (Include lights not assigned to other LightSelect elements) for the LightSelect element.

Turning on Include lights not assigned to other LightSelect elements allows saving and denoising the LightMix pass with lights not included in other LightSelect render elements. This render element can and will be denoised just like other LightSelect render elements as long as the Apply denoising also to this render element option is enabled.

If any lights are left unassigned to any LightSelect render elements and no LightSelect render element has the Include lights not assigned to other LightSelect elements option enabled, these lights will still end up in the Rest (unassigned) section but you will not be able to denoise the render element or save it.

 


Usage Workflow


After setting up LightMix (either automatically, or manually), the color and intensity of each light can be changed in the VFB. Simply go to LightMix tab in Corona VFB and change the desired parameters - this can be done during, or after rendering, for both regular and interactive rendering. You can also use additional buttons below the lights list:

Scene - Bakes all LightMix colors and intensities into the scene lights. After clicking this and confirming, the image displayed in the VFB will be temporarily changed to the non-LightMix version, and you will need to re-render it to get the desired result. Lights which are instanced will become unique in case some of them were separately altered using the LightMix.

Save... / Load... - Saves a LightMix preset as a .conf file. Useful, for example, when creating day and night versions of a scene. It is also possible to load a preset after a camera is changed and a different view is rendered. The .conf files can be also loaded into the Corona Image Editor.

Toggle all - This enables or disables all lights in the LightMix list.

All 1.0 - Reverts all LightMix layers' intensities to 1.0, which means the values set in the scene are used - this will NOT make all lights equally bright if they have different intensities set in the scene.

All white - Simply reverts the colors of all LightMix layers to pure white, which results in having the initial colors of scene lights used.

You can right-click on the light names on the LightMix list in the Corona VFB to select a specific light in the scene, add that light to the current selection, or remove that light from the current selection.

 

 

Compositing LightMix layers in other applications


To compose different LightMix layers (LightSelect render elements) so that the final image looks the same as in the Corona VFB open the layers in the application of your choice, and stack them on each other in any order using the add blending operation. In Adobe Photoshop it is called Linear Dodge (Add).

 

 

Using LightMix with multiple suns and environments


It is possible to add multiple suns and environment maps to your scene, and then control their appearance with LightMix. This means that you can render just once, and pick between completely different lighting conditions, adjust sun and environment intensity and color, and even have two or more suns illuminate your scene at a time. No re-rendering needed!

Check here: Using Multiple Corona Skies and Corona Suns in a Single Scene