3d model details - Poobslag/turbofat GitHub Wiki
Blender
Exporting a 3D Model from Blender
Before exporting a 3D model:
- Apply all transforms. CTRL+A -> Apply All Transforms. If you do not do this step, the model will be oriented incorrectly when imported into Godot.
- Condense duplicate materials. Importing multiple similar models into Blender creates redundant materials with names like
stone.002,stone.003,stone.004. Replace these redundant materials to instead point to the original material,stone. Otherwise those redundant materials will be exported and the glTFs will depend on them.
Export the 3D model in glTF 2.0 (.gltf) format with the following options:
| Option | Value |
|---|---|
| Format | glTF Embedded (.gltf) |
| Include | Selected objects |
| Animation | No animation, no shape keys, no skinning |
| Transform | +Y up |
Mesh Libraries
Exporting a mesh library from Godot
Overwriting a mesh library causes unpredictable behavior in Godot 3.2.1. Models can disappear, lose their textures, or do other unpredictable things. It's recommended instead to do the following:
- Export into a new mesh library file, e.g
nature-library2.tres - Manually modify the project references to use the new library
- Verify the new library works
- Delete the old library
- Rename the new library file, e.g
nature-library.tres