Skip to content

Instantly share code, notes, and snippets.

@donmccurdy
Last active June 24, 2017 22:41
Show Gist options
  • Save donmccurdy/0a996e3e07310ed36b97e0e72f2ccf8f to your computer and use it in GitHub Desktop.
Save donmccurdy/0a996e3e07310ed36b97e0e72f2ccf8f to your computer and use it in GitHub Desktop.
Creating glTF assets in Maya LT and Substance Painter

In Maya LT:

  1. Merge geometries.
  2. Map UVs (automatic is pretty good).
  3. Clean up geometry.
  4. Export to FBX, for Substance Painter.
  5. Export to OBJ, for conversion to glTF.

In obj2gltf stable (not the online version, which drops UVs), convert to glTF.

Import FBX to Substance Painter.

  1. Set shaders to OpenGL.
  2. Set texture resolution to anything, probably 512–2048.
  3. Export textures with UE4 OcclusionRoughnessMetallic configuration, changing from DirectX to OpenGL normals in Config.

Manually add samplers, textures, images, and update materials in the glTF file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment