Up to date

This page is up to date for Godot 4.2. If you still find outdated information, please open an issue.

Exportation de scènes 3D

Vue d'ensemble

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.

Note

Seul Blender 2.83 et plus récent peuvent importer des fichiers glTF exportés par Godot.

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

../../_images/gltf_godot_export.png

Limites

Il y a plusieurs limitations à l'exportation glTF.

  • Pas de support pour l'exportation de particules puisque leur implémentation varie selon les moteurs.

  • Les ShaderMaterials ne peuvent pas être exportés.

  • Pas de support pour l'exportation de scènes 2D.

Voir aussi

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