The Blender Addon

Exporting: The Basics

The Blender addon includes Bevy Component data when exporting to glTF. There are two forms of glTF data Blender can export. .glb and .gltf.

  • .glb is the binary form of the data, its the same data as the .gltf but wrapped up for production use cases.
  • .gltf is a JSON file with a sidecar binary blob that contains vertex and other data.

Assuming we've set up Scenes in Blender, we'll export a single glTF file.

Exporting glTF

In the file menu choose gltf from the Export menu

Export glTF

If you want to look at the output, the pick .gltf. For production you'll want .glb.

glTF or glb

The exported data

Assuming we inserted a Component named Character structured like this

struct Character {
    name: String
}

Then the exported .gltf file with one Component that was applied to a Blender Empty Object would look like this:

{
  "asset": {
    "generator": "Khronos glTF Blender I/O v4.2.57",
    "version": "2.0"
  },
  "scene": 0,
  "scenes": [
    {
      "name": "Scene",
      "nodes": [0]
    }
  ],
  "nodes": [
    {
      "extras": {
        "skein": [
          {
            "event_ordering::Character": {
              "name": "Hollow Knight"
            }
          }
        ]
      },
      "name": "Empty"
    }
  ]
}
Previous
Collection Instances and Library Overrides