简体   繁体   English

导入到 Assimp 中的 3D 对象真的有多个网格吗?

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

In Assimp API aiNode can be linked with multiple meshes.在 Assimp API 中, aiNode可以链接多个网格。

    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.我尝试创建此类文件 (FBX/OBJ/DAE) 以用于测试目的,但未成功。 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? FBX/OBJ/DAE 或此功能是否可以为其他 3D 格式实现? For example in Blender there no possibility (as far as I know) to put multiple meshes into one object.例如在 Blender 中(据我所知)不可能将多个网格放入一个对象中。

Blender搅拌机

You can use our test data, this file could be interesting for you I guess Testmodel .你可以使用我们的测试数据,这个文件可能对你很有趣,我猜Testmodel

In Assimp we are using multiple meshes to manage different materials and animations.在 Assimp 中,我们使用多个网格来管理不同的材质和动画。 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.每个节点都有一个分配给它的专用网格。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM