장면 양식 빠른 시작을 위한 애니메이션
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
장면 양식 애니메이션 시작하기 이 가이드에서는 다음을 수행하는 방법을 설명합니다.
- 애니메이션을 지원하도록 개발 환경 설정
- 샘플 앱에서 애니메이션 로드 및 실행
이 가이드에서는 개발자가 이미 Android용 Sceneform SDK를 설치하고 구성했다고 가정합니다. 그렇지 않은 경우 Android 빠른 시작에서 설치 및 설정 단계를 참고하세요.
골격 애니메이션을 처음 사용한다면 모델 애니메이션 개념을 참조하세요.
개발 환경 설정
샘플 앱 빌드 및 실행
Animation 샘플 앱을 빌드하고 실행하려면 다음 안내를 따르세요.
애니메이션 샘플을 Android 스튜디오로 가져옵니다. 이 파일은 장면 양식 SDK의 samples/animation
폴더에 있습니다.
Android 스튜디오에서 애니메이션 애셋을 보려면 app/sampledata/models
로 이동합니다. 이러한 애셋은 다음과 같습니다.
andy_dance.fbx
. 기본 댄싱 앤디 애니메이션 모델입니다.
andy_wave_l.fbx
. 왼쪽 애니메이션 데이터를 흔드는 앤디.
andy_wave_r.fbx
. 앤디가 올바른 애니메이션 데이터를 흔듭니다.
baseball_cap.fbx
. 앤디의 야구 모자.
Android 스튜디오에서 Run
을 클릭합니다.
기기를 배포 대상으로 선택하고 OK를 클릭하여 샘플 앱을 실행합니다.
빌드 프로세스의 일부로 Android 스튜디오는 애셋을 *.sfb
형식 파일로 컴파일합니다.
기기에서 애니메이션 샘플 앱의 카메라 액세스 권한을 부여합니다. 그런 다음 다음 단계를 시도해 보세요.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2022-09-26(UTC)
[null,null,["최종 업데이트: 2022-09-26(UTC)"],[[["\u003cp\u003eThis guide explains how to set up your development environment for Sceneform animation and run a sample app demonstrating animation.\u003c/p\u003e\n"],["\u003cp\u003eYou will need Android Studio 3.1 or higher, Android SDK Platform 7.1 or higher, and the Google Sceneform Tools (Beta) plugin installed.\u003c/p\u003e\n"],["\u003cp\u003eThe sample app allows you to add an animated Andy Android model to an AR scene, trigger animations, and add/remove a hat.\u003c/p\u003e\n"],["\u003cp\u003eThe provided sample assets include a primary dancing animation, waving animations, and a baseball cap model.\u003c/p\u003e\n"],["\u003cp\u003eYou can build and run the Animation sample app by importing it into Android Studio and deploying it to a supported ARCore device.\u003c/p\u003e\n"]]],["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"],null,["# Animation for Sceneform quickstart\n\nGet started with Sceneform animation. This guide shows you how to:\n\n- Set up your development environment to support animation\n- Loading and running an animation in the sample app\n\nThis guide assumes that you have already installed and configured the Sceneform\nSDK for Android. If not, see the [Quickstart for Android](/sceneform/develop/android-quickstart)\nfor installation and setup steps.\n\nIf you are new to working with skeletal animation, see\n[Model animation concepts](/sceneform/develop/animation#model-concepts)\nfor an introduction.\n\nSet up your development environment\n-----------------------------------\n\n- Install [Android Studio](//developer.android.com/studio/) version 3.1 or higher with Android SDK Platform version 7.1 (API level 24) or higher, and make sure you've also installed the [Google Sceneform Tools (Beta) plugin](/sceneform/develop/getting-started#import-sceneform-plugin).\n- Make sure that your Android device is connected to the development machine via USB. See ARCore [Supported devices](/ar/discover/supported-devices) for detailed information.\n\nBuild and run the sample app\n----------------------------\n\nTo build and run the **Animation** sample app:\n\n1. Import the [Animation sample](//github.com/google-ar/sceneform-android-sdk/tree/v1.15.0/samples/animation)\n into Android Studio. This is located at `samples/animation` folder in the\n Sceneform SDK.\n\n2. To look at the animation assets in Android Studio, navigate to\n `app/sampledata/models`. These assets are:\n\n - `andy_dance.fbx`. Primary dancing Andy animation model.\n - `andy_wave_l.fbx`. Andy waving left animation data.\n - `andy_wave_r.fbx`. Andy waving right animation data.\n - `baseball_cap.fbx`. Andy's baseball cap.\n3. In Android Studio, click **Run** .\n\n4. Choose your device as the deployment target, and click **OK** to launch the\n sample app.\n\n As part of the build process, Android Studio compiles the assets into an\n `*.sfb` format file.\n5. On your device, grant camera access for the **Animation** sample app. Then\n try out these steps:\n\n - Find a plane, then tap anywhere on the plane to add dancing Andy to the scene.\n - To begin animating dancing Andy, tap the menu.\n - To add or remove the baseball hat from Andy's head, tap the hat icon."]]