Documentation

Support

Asset Transformer SDK


User Manual

Python API

C# API

Changelog

Discussions

Asset Transformer SDK

Combine materials

Use this feature along with scene.mergePartOccurrences to combine part occurrences and their assigned materials.
Read time 1 minuteLast updated 21 hours ago

API function: algo.combineMeshes Use this feature along with scene.mergePartOccurrences to combine part occurrences and their assigned materials. The result is a similar looking model, but the number of draw calls is reduced.
These operations are performed:
  • Geometries are merged, but they aren't modified.
  • Texture coordinates are combined and repacked into a single atlas.
  • Material information is transferred to a single set of textures. This set is used by a single material that's applied to the combined mesh.
You can regenerate texture coordinates. This feature bakes these maps:
  • Albedo
  • Normals
  • Opacity
  • Roughness
  • Specular
  • Metallic
  • Ambient occlusion
The output material contains the packed textures atlas: