strange mesh loading problem

misterface

24-04-2006 00:16:56

Hi,

I can load every mesh, but with one mesh I get an error!
Very strange because somebody I know can load the mesh perfectly on his OgreNew with the same treeCol (and same version of OgreNew).

The code I use:


bool optimalisatieTreeCollision = false;

Entity* level9Entity = mSceneMgr->createEntity("Level9", "level9.mesh");
SceneNode* level9SceneNode = mSceneMgr->getRootSceneNode()->createChildSceneNode("Level9");
level9SceneNode->attachObject(level9Entity);

OgreNewt::Collision* level9Col = new OgreNewt::CollisionPrimitives::TreeCollision(m_World, level9SceneNode, optimalisatieTreeCollision);
OgreNewt::Body* level9Body = new OgreNewt::Body( m_World, level9Col );
delete level9Col;
level9Body->attachToNode( level9SceneNode );


When I run my prog it crashes, the ogre.log doesn't tell much eighter:


...
00:49:39: Win32Input8: DirectInput Activation Starts
00:49:39: Win32Input8: Establishing keyboard input.
00:49:39: Win32Input8: Keyboard input established.
00:49:39: Win32Input8: Initializing mouse input in immediate mode.
00:49:39: Win32Input8: Mouse input in immediate mode initialized.
00:49:39: Win32Input8: DirectInput OK.
00:49:39: Win32Input8: DirectInput Activation Starts
00:49:39: Win32Input8: Establishing keyboard input.
00:49:39: Win32Input8: Keyboard input established.
00:49:39: Win32Input8: Initializing mouse input in immediate mode.
00:49:39: Win32Input8: Mouse input in immediate mode initialized.
00:49:39: Win32Input8: DirectInput OK.
00:49:39: Win32Input8: DirectInput Activation Starts
00:49:39: Win32Input8: Establishing keyboard input.
00:49:39: Win32Input8: Keyboard input established.
00:49:39: Win32Input8: Establishing mouse input.
00:49:39: Win32Input8: Mouse input established.
00:49:39: Win32Input8: DirectInput OK.
00:49:39: Texture: cloudy_noon_fr.jpg: Loading 1 faces(PF_B8G8R8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
00:49:39: Texture: cloudy_noon_bk.jpg: Loading 1 faces(PF_B8G8R8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
00:49:39: Texture: cloudy_noon_lf.jpg: Loading 1 faces(PF_B8G8R8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
00:49:39: Texture: cloudy_noon_rt.jpg: Loading 1 faces(PF_B8G8R8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
00:49:39: Texture: cloudy_noon_up.jpg: Loading 1 faces(PF_B8G8R8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
00:49:39: Texture: cloudy_noon_dn.jpg: Loading 1 faces(PF_B8G8R8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
00:49:39: Mesh: Loading level9.mesh.
00:49:39: Texture: multicolor.jpg: Loading 1 faces(PF_B8G8R8,512x738x1) with 5 generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x738x1.
00:49:39: Texture: dakstof.jpg: Loading 1 faces(PF_B8G8R8,1024x1024x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,1024x1024x1.
00:49:39: Texture: brokencoursed.jpg: Loading 1 faces(PF_B8G8R8,1024x1024x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,1024x1024x1.
00:49:39: Texture: groen.JPG: Loading 1 faces(PF_B8G8R8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
00:49:39: Texture: cedfence.JPG: Loading 1 faces(PF_B8G8R8,756x512x1) with 5 generated mipmaps from Image. Internal format is PF_X8R8G8B8,756x512x1.
00:49:39: Texture: rood.JPG: Loading 1 faces(PF_B8G8R8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
00:49:39: Texture: galvplat.JPG: Loading 1 faces(PF_B8G8R8,756x512x1) with 5 generated mipmaps from Image. Internal format is PF_X8R8G8B8,756x512x1.
00:49:39: Texture: teak.jpg: Loading 1 faces(PF_B8G8R8,1024x1024x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,1024x1024x1.
00:49:39: Texture: tapijt1.jpg: Loading 1 faces(PF_B8G8R8,879x667x1) with 5 generated mipmaps from Image. Internal format is PF_X8R8G8B8,879x667x1.
00:49:40: Newton Frame Listener... m_elapsed: 0 m_update:0.0166667
00:49:40: Newton updates deze loop: 0
00:49:40: Texture: spot_shadow_fade.png: Loading 1 faces(PF_B8G8R8,128x128x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.