Preserving multiple materials when loading .obj

We are trying to load a .obj/.mtl which has multiple materials(textures) using CapturingReality::ModelTools::Import(…), but the texture count is always 1 using GetLocalTexturesCount(). This causes all the separate UV maps to be overlapping and just produces a mess on one texture when texturing.

Loading the same .obj/.mtl files in the RC gui correctly loads and textures the model. Is there some trick to preserving multiple materials when loading .obj/.mtl in the SDK?

Greetings.

It shall work the same way. Could You, please, give us more input? E.g. something from the following (if possible publicly, otherwise pm me):

  • be more verbose about what happens and what goes wrong
  • show the code used for importing the model
  • share the model data (or mock-up data with the same result, we could debug it)

Thank You.