シーンのアニメーションのクイックスタート
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
シーン アニメーションを開始します。このガイドでは、次の方法について説明します。
- アニメーションをサポートする開発環境を設定する
- サンプルアプリでアニメーションを読み込んで実行する
このガイドは、Android 用 Sceneform SDK がすでにインストールされ、構成されていることを前提としています。インストールされていない場合は、Android のクイックスタートでインストールと設定の手順をご覧ください。
スケルタル アニメーションを初めて使用する場合は、モデル アニメーションのコンセプトで概要をご覧ください。
開発環境を設定する
サンプルアプリをビルドして実行する
アニメーション サンプルアプリをビルドして実行するには:
アニメーション サンプルを Android Studio にインポートします。これは、Sceneform SDK の samples/animation
フォルダにあります。
Android Studio でアニメーション アセットを確認するには、app/sampledata/models
に移動します。次のようなアセットがあります。
andy_dance.fbx
。メインのダンス アンディのアンディ アニメーション モデル。
andy_wave_l.fbx
。左のアニメーション データを振っているアンディ。
andy_wave_r.fbx
。正しいアニメーション データを振っているアンディ。
baseball_cap.fbx
。アンディの野球キャップ。
Android Studio で [Run]
をクリックします。
デプロイのターゲットとしてデバイスを選択し、[OK] をクリックしてサンプルアプリを起動します。
Android Studio は、ビルドプロセスの一環として、アセットを *.sfb
形式ファイルにコンパイルします。
デバイスで、アニメーション サンプルアプリのカメラへのアクセスを許可します。その後、次の手順を試してください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2022-09-26 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2022-09-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"]]