Tutorial 3
Tutorial 3
CREATING ANIMATED
TIKTOK EFFECTS
Enhance your TikTok effects with animated textures.
Structure
Introduction & Overview
Set Up
Your Project
Open Spark AR and create a new project. Let’s name it ‘ANIMATED Effect.’
Introduction &
Overview
Structure
Understanding Animated Textures.
Applying Animated Textures.
Creating an Interactive Randomizer Effect.
Importing Animated Textures from the Asset Library.
Wrap-Up & Next Steps.
Understanding
Animated Textures
Overview
Animated textures are widely used in popular effects like randomizers to enhance
engagement. They provide dynamic visuals that can be controlled using visual
scripting.
Applying to a 3D Object
Add an Image object from the Hierarchy panel (Add [+] > 3D > Image).
Assign the animated texture to its Texture field in the Inspector panel.
Attach a Head Tracker (Add [+] > AR Tracking > Head Tracker).
Parent the Image object to the Head Tracker, allowing it to move with the user’s
head.
Applying to a Material
Add a 3D Face object (Add [+] > Face Effects > 3D Face).
Select Face Paint under the Materials folder in the Assets panel.
Assign the animated texture to the Base Property component’s Texture field.
The animation will now play on the model’s face.
Creating an Interactive
Randomizer Effect
Setup
Activate the Head Tracker object in the Hierarchy panel.
Select the Animated Texture in the Assets panel.
In the Inspector panel, click + Add Interaction.
Enhancing Interactivity
Open the Tap Screen To Play Animated Texture Then Delay Pause subgraph.
Open the Event Trigger: Touch subgraph.
Add a Gesture Detection node.
Set the Gesture to Open Palm.
Connect the node’s outputs to the Output node’s inputs.
Change preview media to a hand opening gesture.
Importing Animated Textures
From the Asset Library
Next Steps
Experiment with different animation speeds and loop counts.
Try applying animated textures to multiple objects simultaneously.
Explore advanced visual scripting interactions for unique effects.