Found no matching material for Group in 3ds file.

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
raojinfeng
Posts: 2
Joined: Wed Jul 25, 2012 1:47 pm

Found no matching material for Group in 3ds file.

Post by raojinfeng »

I encountered this reference : Found no matching material for Group in 3ds file, when I try to run a irrlicht program in visual studio.

Code: Select all

 
        scene::IAnimatedMeshSceneNode* anms =
        smgr->addAnimatedMeshSceneNode(smgr->getMesh("../../media/ballance.3ds"));
 
    if (anms)
    {
        scene::ISceneNodeAnimator* anim =
            smgr->createFlyStraightAnimator(core::vector3df(100,0,60),
            core::vector3df(-100,0,60), 3500, true);
        if (anim)
        {
            anms->addAnimator(anim);
            anim->drop();
        }
 
        anms->setMaterialFlag(video::EMF_LIGHTING, false);
 
        anms->setFrameLoop(0, 13);
        anms->setAnimationSpeed(15);
 
        anms->setScale(core::vector3df(2.f,2.f,2.f));
        anms->setRotation(core::vector3df(0,-90,0));
        anms->setMaterialTexture(0, driver->getTexture("../../media/sydney.bmp"));
 
    }
 
I tried to replace ballance.3ds with another 3ds model like room.3ds, which runs well.
I am a irrlicht beginner. Can you tell my why? I'm so frust confused about it .
Thank you.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: Found no matching material for Group in 3ds file.

Post by hybrid »

Well, this simply means that your 3d file contains either a buggy material definition, or some unsupported type of material that cannot be used together with Irrlicht.
raojinfeng
Posts: 2
Joined: Wed Jul 25, 2012 1:47 pm

Re: Found no matching material for Group in 3ds file.

Post by raojinfeng »

hybrid wrote:Well, this simply means that your 3d file contains either a buggy material definition, or some unsupported type of material that cannot be used together with Irrlicht.
you mean what is the problem? code or 3ds model?

I think the ballance.3ds model may rely on some material which can not found in current directory.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: Found no matching material for Group in 3ds file.

Post by hybrid »

3ds materials are contained in the same file. Otherwise this failure might occur. Or, as I said, an unsupported type of material, which would be kind of a bug in the code (Irrlicht's code to be precise). But in most cases you can safely ignore this, as a standard material should be used. But it might be better to fix the model here, to have predictable results which match closer your inteded results.
Post Reply