Skip to content
Rustle3D
Get started

Export your garment to Blender, Godot or Unity

Export the draped garment to glTF or OBJ, with or without the body, prepare it for a game engine (levels of detail, skinning), and export the pattern.

Beginner10 minUpdated

Rustle3D only writes open formats. Once a garment is draped, you can take it into Blender, a game engine or any 3D tool that reads glTF or OBJ.

1. Drape first

Exports use the drape you see. Open your project and press Simulate (Space), then let the garment settle.

2. Export from the app

Open the Export menu:

  • Garment in 3D, glTF (.glb): the garment alone.
  • Garment and body in 3D, glTF (.glb): with the body, to check the fit in another tool.
  • Garment in 3D, OBJ: for tools that do not read glTF.

The app tells you where the file was written.

3. What is inside

  • One named node per piece: each pattern piece stays a separate object.
  • UVs from the pattern: a texture follows the flat pattern pieces, as a printed fabric would.
  • Fabric materials: PBR materials with a sheen (KHR_materials_sheen), the soft highlight of cloth.
  • The print, if the garment has one: inside the GLB file, or for OBJ as a material file (.mtl) with the print's image next to it.

Every template's export passes the Khronos glTF Validator.

4. Open it

  • Blender: File › Import › glTF 2.0 (.glb/.gltf).
  • Godot: drop the .glb file into the project's FileSystem dock, then drag it into a scene.
  • Unity: install a glTF importer package (such as glTFast), then drop the .glb into your Assets.
  • Unreal Engine: import the .glb with the glTF importer plugin.

5. For a game engine

Export › Garment for a game engine (glTF)… opens a window that prepares the garment for a game, in one GLB file:

  • Engine: Generic, Godot, Unity or Unreal. It fills the other settings with what suits that engine.
  • Levels of detail: lighter copies of the garment for when it is far away, as percentages of its triangles, for example 100, 50, 20. The edges of the pieces never move, so seams stay closed.
  • Normal map: the full garment's wrinkles baked into an image for each lighter level, so they still look wrinkled.
  • Back faces: Double-sided, or Thickness for engines that hide back faces.
  • Skin to the body's skeleton: the garment follows the body's bones, with the walk, turn and raise-arms motions as animations.

Each level is a mesh of its own, named Shirt_LOD0, Shirt_LOD1… In Godot, open the .glb: the skeleton, the meshes and an AnimationPlayer with walk, turn and raise_arms are there. In Unity, put the _LOD meshes in a LOD Group. In Unreal, the garment comes in as a skeletal mesh with its animations.

From the command line:

r3d export ./MySkirt.r3d --format game --preset godot

6. From the command line

r3d, shipped next to the app, does the same without a window, which is handy in a pipeline:

r3d simulate ./MySkirt.r3d --frames 180
r3d export ./MySkirt.r3d --format glb --avatar
r3d export ./MySkirt.r3d --format obj

Files go to the project's exports/ folder unless you pass --out.

7. The pattern, for sewing

The pattern exports too, at 1:1 scale with a 100 mm test square:

r3d export ./MySkirt.r3d --format svg
r3d export ./MySkirt.r3d --format pdf --paper a4

--paper takes a4 or letter (tiled pages to tape together) or single (one large page, for a plotter or a copy shop). In the app, Export offers the same: Pattern, SVG at 1:1, Pattern, PDF on A4 pages and Pattern, PDF on one page, plus Pattern, DXF-AAMA (pattern software) for pattern-making and cutting programs.