meshcolladafbxassimp

Does it really happen that an 3D object imported into Assimp has multiple meshes?


In Assimp API aiNode can be linked with multiple meshes.

    for (int i = 0; i < node->mNumMeshes; ++i)
    {
        auto j = node->mMeshes[i];
        aiMesh *mesh = scene->mMeshes[j];
    }

I unsuccessfully tried to create such file (FBX/OBJ/DAE) for testing purposes. Can you please provide example of such file where some object linked with multiple meshes. Is it ever possible for FBX/OBJ/DAE or this feature implemented for other 3D formats? For example in Blender there no possibility (as far as I know) to put multiple meshes into one object.

Blender


Solution

  • You can use our test data, this file could be interesting for you I guess Testmodel.

    In Assimp we are using multiple meshes to manage different materials and animations. At this moment each mesh has one material assigned. Other topics are skeletal-based animations: we are modeling the skeleton via instances of scene-nodes. And each node has a dedicated mesh assigned to it.