导出 3D 场景

概览

In Godot, it is possible to export 3D scenes as a glTF 2.0 file. You can export as a glTF binary (.glb file) or glTF embedded with textures (gltf + .bin + textures). This allows you to create scenes in Godot, such as a CSG mesh blockout for a level, export it to clean it up in a program such as Blender, and then bring it back into Godot.

备注

只有 Blender 2.83 及之后的版本才能导入由 Godot 导出的 glTF 文件。

To export a scene in the editor go to Scene > Export As… > glTF 2.0 Scene…

../../_images/gltf_godot_export.png

限制

glTF 导出有一些限制。

  • 不支持导出粒子,因为不同的引擎对粒子的实现是不同的。

  • 无法导出 ShaderMaterial。

  • 不支持导出 2D 场景。

参见

3D scenes can be saved at runtime using runtime file loading and saving, including from an exported project.

Previous Next


© 版权所有 2014-present Juan Linietsky, Ariel Manzur and the Godot community (CC BY 3.0). Revision b1c660f7.

Built with Sphinx using a theme provided by Read the Docs.