This project is no longer maintained. Please use the official Khronos exporter instead: https://github.com/KhronosGroup/glTF-Blender-IO
Blendergltf is an addon for Blender that adds the ability to export to the glTF format. This addon started its life as part of the Blender Real TimeEngine addon in order to provide a convenient way of streaming scene data to real time engines. As interest has grown in glTF, the glTF exporting code of the Blender Real Time Engine addon was moved into this repository to be used as both a Python module and a Blender addon.
Versions 1.0 and 2.0 of the glTF format are supported. For currently supported extensions, check out the extension settings.
NOTE: Version 1.2.0 of blendergltf is deprecating support for glTF 1.0. The next release of blendergltf will likely remove support for glTF 1.0 entirely. See issue #135 for more information and discussion.
-
Download the blendergltf ZIP file from GitHub: stable, testing, releases
-
Launch Blender, click
File -> User Preferences...
, and click theAdd-ons
tab at the top of the User Preferences dialog. Then, click theInstall from file...
button in the bottom margin of that dialog. Select your ZIP file to complete the install. -
In the left margin there is a
Supported Level
selector, make sure theCommunity
level is selected. To find the addon quicker, you may need to entergltf
into the search box at the top of the left margin. -
You should now see
Import-Export: glTF format
as a block in the body of the preferences dialog. Put a checkmark on this row to activate it. -
Finally, click
Save User Settings
to keep the changes. Note that any other settings changes you have made to Blender may also be saved.
Load a scene you wish to export to glTF, and click File -> Export -> glTF (.gltf)
.
Some glTF export options will appear in the lower-left margin, and a file dialog
will ask for the location to save the exported file.
Up axis of output coordinate system.
Forward axis of output coordinate system.
Export Hidden Objects
Export nodes that are not set to visible.
Only export nodes that are currently selected.
Apply all modifiers to the output mesh data. When this option is disabled, no modifier data is exported.
Store data for each vertex contiguously instead of each vertex property (e.g. position) contiguously. When vertex data is interleaved, all properties share one buffer. Otherwise, each property is stored in a separate buffer. This could give a slight performance improvement to vertex processing, but a lot of importers do not handle interleaved data well. It is not recommended to use this setting unless you are looking for importer bugs.
Export vertex colors with 4 channels instead of 3. The fourth channel is always filled with a value of 1.0. This option needs to be enabled when exporting for Facebook.
Export minimum default materials. Useful when using material extensions. Additional maps are always exported when outputting glTF 2.0.
Embed shader data into the glTF file instead of as a separate file.
- All Eligible Export all actions that can be used by an armature
- Active Export the active action per armature
- All Eligible Export all actions that can be used by a non-armature object
- Active Export the active action per non-armature object
- All Eligible Export all shape key actions that can be used by an object
- Active Export the active shape key action per object
- Embed Embed image data into the glTF file.
- Reference Use the same filepath that Blender uses for images.
- Copy Copy images to output directory and use a relative reference.
Use sRGB texture formats for sRGB textures. This option will produce invalid glTF since the specification currently does not allow for sRGB texture types.
Embed buffer data into the glTF file.
Combine all buffers into a single buffer.
Enable the BLENDER_physics extension to export rigid body physics data.
Enable the KHR_lights extension to export light data.
Enable the KHR_materials_common extension to export Blinn Phong materials.
Enable the KHR_materials_unlit extension to export simplified unlit materials.
Copyright string to include in output file.
The version of the glTF specification to output as.
Export to the binary glTF file format (.glb).
- Web Target WebGL 1.0
- Desktop Target OpenGL and GLSL 1.30. This profile is not explicitly supported by the glTF specification.
Export JSON with indentation and a newline.
Do not export any data-blocks that have no users or references.
The most helpful way to contribute right now is to try and use the output of Blendergltf, and report any issues you find. This will help us identify where work is still needed, and it will help make the addon more robust. If you want to contribute code, there are likely some tasks floating around the issue tracker.