Clear
Back

Simple Shadows

Use the simple shadows action to add a shadow to a 3D object. It’s a good idea to add simple shadows to 3D objects in world effects, to make them look more realistic.

You can actions to add common features and techniques to your project in just one or 2 clicks. Learn more about other actions available in Spark AR Studio.

Adding a shadow

To add a shadow to a 3D object:

  1. Select the 3D object in the Scene panel.
  2. In the Inspector, select Actions.
  3. Select Add Simple Shadow.

In the Viewport and Simulator a shadow will be visible under the object.

By default the size of the shadow will reflect the size of the object.

How the shadow is created

When a shadow is added, a block is added to the Assets panel and instantiated in the scene. In the Scene panel it’s a child of the 3D object you’ve added the simple shadow for. It’s labeled Shadow - [3D object].

The block is made of objects and settings that render, position and size the shadow in relation to the object. It contains:

  • A plane with a material applied, creates the appearance of a shadow.
  • A patch graph, which uses the Bounding Box patch to controls the size of the shadow in relation to the object.

Editing the shadow

To edit the shadow, adjust the properties of the block in the Inspector.

Transformations

Adjust the Position, Scale and Rotation values to position, resize and rotate the shadow.

Enable for

Set which cameras the shadow is visible in, and whether it’s visible during preview, capture or both.

Inputs

Min Position and Max Position

Patches representing these properties are connected to the Bounding Box patch in the Patch Editor. As a result the shadow never appears too small or too big for the object.

Color

Change the color of the shadow.

Opacity

Change how transparent or opaque the shadow appears.

Falloff

How hard or soft the edge of the shadow appears. When the value is bigger, the edges will be softer.

Square

Make the shadow into a square shape.

Y Position

Change the vertical position of the shadow.

Join the Spark AR Creator's community

Find inspiration, see examples, get support, and share your work with a network of creators.

Join Community

Join the Spark AR Creator's community

Find inspiration, see examples, get support, and share your work with a network of creators.

Join Community

Frequently asked questions

Have a specific question? Maybe it's been answered.


Read FAQs
Was this document helpful?