為場景建立動畫
如要在場景中實作動畫,您必須使用有動畫資料的模型。這些模型是利用演出者使用 3D 模型和動畫軟體預先建立。這些動畫必須匯出為 *.fbx
檔案,然後匯入到 *.sfb
檔案中使用,以便在場景中使用。
為確保與 ARCore 相容,請使用支援的設定儲存 *.fbx
檔案。您可以將這些檔案匯入為 *.sfb
檔案。
我們建議您為支援的模型和動畫軟體匯出的 *.fbx
檔案提供下列設定。
檔案格式:FBX 2016/2017 以上版本
軸度轉換:上軸是 Y
縮放比例係數:Centimeters
必要的幾何圖形設定:
建議的幾何圖形設定:
動畫:已啟用
去識別化模型設定:
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2022-09-26 (世界標準時間)。
[null,null,["上次更新時間:2022-09-26 (世界標準時間)。"],[[["Sceneform utilizes pre-made 3D models with animation data, created by artists and exported as *.fbx files."],["These *.fbx files must be converted to *.sfb files for use in Sceneform and should adhere to specific settings for ARCore compatibility, such as FBX 2016/2017 or later format, Y-up axis, and centimeter scaling."],["Models should include geometry settings like smoothing groups, smooth mesh, and referenced asset content for optimal performance, with tangents, binormals, triangulation, and NURBS recommended for enhanced visuals."],["Animation should be enabled during export, and deformed models settings, including skins, should be included for models with complex movements or deformations."]]],["3D models with animation data, created externally, are required for Sceneform animation. These must be exported as `*.fbx` files, adhering to specific settings like FBX 2016/2017 or later format, Y-axis up, and centimeter scaling. Essential geometry settings include smoothing groups and smooth mesh; animation and deformed models must be enabled. The validated `*.fbx` files are then imported into `*.sfb` files for use in Sceneform.\n"]]