为 Sceneform 创建动画
如需在 Sceneform 中实现动画,您需要具有动画数据的模型。这些模型由艺术家使用 3D 建模和动画软件提前创建。这些动画必须导出为 *.fbx
文件,然后导入到 *.sfb
文件中,以便在 Sceneform 中使用。
为了确保文件与 ARCore 兼容,应使用支持的设置保存 *.fbx
文件。然后,您可以将这些文件作为 *.sfb
文件导入项目中。
对于从建模和动画软件导出的 *.fbx
文件,我们建议并支持以下设置。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2022-09-26。
[null,null,["最后更新时间 (UTC):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"]]