- Sceneform SDK for Android was open sourced and archived (github.com/google-ar/sceneform-android-sdk) with version 1.16.0.
- This site (developers.google.com/sceneform) serves as the documentation archive for the previous version, Sceneform SDK for Android 1.15.0.
- Do not use version 1.17.0 of the Sceneform Maven artifacts.
- The 1.17.1 Maven artifacts can be used. Other than the version, however, the 1.17.1 artifacts are identical to the 1.15.0 artifacts.
Animation for Sceneform quickstart
Stay organized with collections
Save and categorize content based on your preferences.
Get started with Sceneform animation. This guide shows you how to:
- Set up your development environment to support animation
- Loading and running an animation in the sample app
This guide assumes that you have already installed and configured the Sceneform
SDK for Android. If not, see the Quickstart for Android
for installation and setup steps.
If you are new to working with skeletal animation, see
Model animation concepts
for an introduction.
Set up your development environment
Build and run the sample app
To build and run the Animation sample app:
Import the Animation sample
into Android Studio. This is located at samples/animation
folder in the
Sceneform SDK.
To look at the animation assets in Android Studio, navigate to
app/sampledata/models
. These assets are:
andy_dance.fbx
. Primary dancing Andy animation model.
andy_wave_l.fbx
. Andy waving left animation data.
andy_wave_r.fbx
. Andy waving right animation data.
baseball_cap.fbx
. Andy's baseball cap.
In Android Studio, click Run
.
Choose your device as the deployment target, and click OK to launch the
sample app.
As part of the build process, Android Studio compiles the assets into an
*.sfb
format file.
On your device, grant camera access for the Animation sample app. Then
try out these steps:
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-06-26 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-06-26 UTC."],[[["This guide explains how to set up your development environment for Sceneform animation and run a sample app demonstrating animation."],["You will need Android Studio 3.1 or higher, Android SDK Platform 7.1 or higher, and the Google Sceneform Tools (Beta) plugin installed."],["The sample app allows you to add an animated Andy Android model to an AR scene, trigger animations, and add/remove a hat."],["The provided sample assets include a primary dancing animation, waving animations, and a baseball cap model."],["You can build and run the Animation sample app by importing it into Android Studio and deploying it to a supported ARCore device."]]],["To set up animation development, install Android Studio 3.1+ with Android SDK 7.1+ and the Sceneform Tools plugin. Ensure an Android device is connected. To run the sample app, import the Animation sample from the Sceneform SDK into Android Studio. The app contains animation assets: `andy_dance.fbx`, `andy_wave_l.fbx`, `andy_wave_r.fbx`, and `baseball_cap.fbx`. After building, grant camera access to the app, then tap a plane to add a dancing Andy and use the menu to animate and add/remove a hat.\n"]]