problem loading model

maxdelphi

04-02-2012 16:15:03

Hi, i am new in mogre, i am trying load a model, but i have a problem, i see the log file and i found it:

22:16:51: Mesh: Loading mariofbx2009.fbx
22:16:51: OGRE EXCEPTION(2:InvalidParametersException): Header chunk didn't match either endian: Corrupted stream? in Serializer::determineEndianness at ..\..\ogre\OgreMain\src\OgreSerializer.cpp (line 89)

i export from 3ds max with FBX 2009 and 2011 (both testing), and both say the problem....i cant solve it, can you help me plz?, thanks.

my code:


using Mogre.TutorialFramework;
using Mogre;
...

public static void Main()
{
new Tutorial().Go();
}

protected override void CreateScene()
{
Entity mario = mSceneMgr.CreateEntity("mario", "mariofbx2009.fbx");
SceneNode nodo = mSceneMgr.RootSceneNode.CreateChildSceneNode("nodo");
nodo.AttachObject(mario);
}


i am inexpert in 3ds max, i download a model with animation, and i export it without cameras and lights.....appear warning when i export it:

The plug-in has detected one or more animation controllers that cannot be directly supported. Using the Bake Animation option may better address these limitations. The following nodes are affected:
-Point01
-Mario_Character
-Mario_All_Root
-Mario_Center_dummy
-Mario_Center
-Mario_JointRoot_dummy
-Mario_JointRoot
-Mario_Hip_dummy
-Mario_Hip
-Mario_LegL1_dummy
-Mario_LegL1
-Mario_LegL2_dummy
-Mario_LegL2
-Mario_FootL_dummy
-Mario_LegR1_dummy
-Mario_LegR1
-Mario_LegR2_dummy
-Mario_LegR2
-Mario_FootR_dummy
-Mario_Spine1_dummy
-Mario_Spine1
-Mario_Spine2_dummy
-Mario_Spine2
-Mario_Head_dummy
-Mario_Head
-Mario_CapPosition_dummy
-Mario_CapPosition
-Mario_Cap0_dummy
-Mario_EyePosition_dummy
-Mario_EyePosition
-Mario_Eye0_dummy
-Mario_FacePosition_dummy
-Mario_FacePosition
-Mario_Face0_dummy
-Mario_ShoulderL_dummy
-Mario_ShoulderL
-Mario_ArmL1_dummy
-Mario_ArmL1
-Mario_ArmL2_dummy
-Mario_ArmL2
-Mario_HandL_dummy
-Mario_HandL
-Mario_HandL0_dummy
-Mario_ShoulderR_dummy
-Mario_ShoulderR
-Mario_ArmR1_dummy
-Mario_ArmR1
-Mario_ArmR2_dummy
-Mario_ArmR2
-Mario_HandR_dummy
-Mario_HandR
-Mario_HandR0_dummy
-Mario_PartsControl_dummy

with fbx 2011

zarfius

05-02-2012 00:00:04

22:16:51: Mesh: Loading mariofbx2009.fbx
Ogre and Mogre only load .mesh files for optimised performance. You'll need to open your .fbx file in a modelling application and export it as a mesh file first.

Have a look on the wiki here:
http://www.ogre3d.org/tikiwiki/OGRE+Exporters

and here:
http://www.ogre3d.org/tikiwiki/DCC+Tools

maxdelphi

05-02-2012 00:18:13

thanks, but now i have other error:

21:14:42: Mesh: Loading mario.mesh.
21:14:42: OGRE EXCEPTION(7:InternalErrorException): Cannot find serializer implementation for current version [MeshSerializer_v1.8] in MeshSerializer::importMesh at ..\..\ogre\OgreMain\src\OgreMeshSerializer.cpp (line 118)

what happen?

thanks

zarfius

05-02-2012 01:52:30

Not sure about that one. It looks like the a version issue between the mesh loader and the mesh exporter. Post your issue on the Ogre Help forum, I'm sure you'll get a better answer there.
http://www.ogre3d.org/forums/viewforum.php?f=2

Pyritie

08-02-2012 17:53:51

thanks, but now i have other error:

21:14:42: Mesh: Loading mario.mesh.
21:14:42: OGRE EXCEPTION(7:InternalErrorException): Cannot find serializer implementation for current version [MeshSerializer_v1.8] in MeshSerializer::importMesh at ..\..\ogre\OgreMain\src\OgreMeshSerializer.cpp (line 118)

what happen?

thanks

you're using a mesh generated for ogre 1.8, but mogre's only on 1.6