Skip to main content

Baked Shadows

Description

This chapter describes the baked shadow technique supported by Candera.

Chapters



Introduction 

Baked shadows

Baking shadows is a method of generating shadows which can be used for scenes where the lights and the objects which cast shadows are not moved with respect to each other.

Because the shadows are pre-computed and integrated into the textures the polygon count is decreased and the time needed for rendering the scene is significantly reduced. As a drawback, if the textures resulted after the baking are large, the memory can be intensive so the rendering becomes slow. Also, for complex scenes, this way of generating shadows might be too laborious to be considered as an option.[1]


drawing-4-1677222224.png

Back to the menu


Workflow 

Create Models and Textures

The following steps should be performed in any 3D modeling tool that is able to bake shadows (Blender, Maya, 3D Studio Max ...):

  • create a 3D scene that contains some models and at least one source of light
    drawing-4-1677224453.png

  • join the models which casts shadows with the models on which the shadow is projected on
  • unwrap the 3D models
    drawing-4-1677224479.png

  • create a new image that will be used then as the texture containing the shadows
  • set the image as texture for the models
  • render the scene and bake the shadows into the texture
    drawing-4-1677224537.png

  • export the texture in any image format supported by Candera and also export the 3D models in FBX format
  • If needed, refine the baked image with an image editor
Asset Library Generation

Use SceneComposer to generate the asset library:

  • import the FBX and the image texture in SceneComposer
  • from the Imports panel add the light and the node in a 3D scene
  • set the imported image as texture for the node
  • export the asset library

Back to the menu


Example 

The example shows a 3D node textured with an image containing baked shadows.[2]

drawing-4-1677224574.png

Back to the menu


References 

The pictures and the models from this tutorial where obtained from the following sources:

[1] http://apricot.blender.org/wp-content/uploads/2008/06/sbake1.jpg
[2] http://thefree3dmodels.com/stuff/furniture/statue/12-1-0-4447

Back to the menu