[2.1] mesh loading issue

Problems building or running the engine, queries about how to use features etc.
Post Reply
xmanneke
Gnoblar
Posts: 14
Joined: Fri Jan 15, 2010 8:31 pm

[2.1] mesh loading issue

Post by xmanneke »

Hi,

When i try to load a mesh in my ogre application i get an error.
Error: OGRE EXCEPTION(7:InternalErrorException): Cannot find serializer implementation for mesh version [MeshSerializer_v2.1 R1] in MeshSerializer::importMesh

This is with the sample Cube_d.mesh from the DebugPack.zip so i know the mesh should be good but it still gives me the issue.
Checked the mesh loading and displaying code with the samples and they seem to match.

anybody has any idea?

Thanks
User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 5299
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 1280
Contact:

Re: [2.1] mesh loading issue

Post by dark_sylinc »

Sounds like you're trying to create a v1 entity for that mesh, which cannot be done with a v2 mesh. You have to create an Item.
xmanneke
Gnoblar
Posts: 14
Joined: Fri Jan 15, 2010 8:31 pm

Re: [2.1] mesh loading issue

Post by xmanneke »

Hi,

You were actually completely correct.
Funny how somebody can stare at something and not see something that easy.

Now when i have created the Ogre::Item and loaded the mesh in that i try to attach it to the scenemanager with a scenenode.
But when i attach the item to the scenenode with ->attachObject(item) it gives an error: argument of type "Ogre::Item *" is incompatible with parameter of type "Ogre::MovableObject *"

any ideas?
User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 5299
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 1280
Contact:

Re: [2.1] mesh loading issue

Post by dark_sylinc »

Sounds like you didn't #include "OgreItem.h"
Post Reply