[Solved] Ogremax only retains 5 mesh animations?

The place for artists, modellers, level designers et al to discuss their approaches for creating content for OGRE.
User avatar
WingnutWilson
Halfling
Posts: 74
Joined: Tue Feb 14, 2012 3:13 pm
Location: Ireland

[Solved] Ogremax only retains 5 mesh animations?

Post by WingnutWilson »

Hi, I have a question about ogremax that I really can't figure out. It seems to me that ogremax only retains the first 5 mesh animations of the .mesh/.skeleton file for some reason. Is this correct? I have an animated character, with the following animations:
Image
The "wiggle" animation (the 6th one), will not run, I get a "No state found for animation "wiggle....." error. If I remove one of the other animations, then it finds the wiggle! Here is the animation code, anyone know what could cause this?

Code: Select all

	
     // Setup animation defaults
    Animation::setDefaultInterpolationMode(Animation::IM_LINEAR);
    Animation::setDefaultRotationInterpolationMode(Animation::RIM_LINEAR);

	// load each mesh with non-default hardware buffer usage options
	MeshPtr mesh = MeshManager::getSingleton().load("penguin..mesh", ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME,
		HardwareBuffer::HBU_DYNAMIC_WRITE_ONLY);
	Entity *animatedPlayerEntity = m_pSceneMgr->createEntity(mesh->getName(), mesh->getName());
	unsigned short src, dest;
	
	if (!mesh->suggestTangentVectorBuildParams(VES_TANGENT, src, dest))
	 {
		 mesh->buildTangentVectors(VES_TANGENT, src, dest);
	 }

	animatedPlayerEntity->setMaterialName( "PlainTexture" );

	// Create a scene node and add the entity to it        
	SceneNode *m_pCharSceneNode = m_pSceneMgr->getRootSceneNode()->createChildSceneNode();       
	m_pCharSceneNode->attachObject(animatedPlayerEntity);
	m_pCharSceneNode->yaw(Degree(-90));
	
	m_pCharAnimState = animatedPlayerEntity->getAnimationState("wiggle");
	m_pCharAnimState->setEnabled(true);
	m_pCharAnimState->setLoop(true);
Last edited by WingnutWilson on Tue Mar 13, 2012 2:43 pm, edited 1 time in total.
User avatar
Zonder
Ogre Magi
Posts: 1173
Joined: Mon Aug 04, 2008 7:51 pm
Location: Manchester - England
x 76

Re: Ogremax only retains 5 mesh animations?

Post by Zonder »

That is correct only 5 in the free version. To do more you need to get the commercial one

Check here for licensing info and restrictions with the free version http://www.ogremax.com/downloads
There are 10 types of people in the world: Those who understand binary, and those who don't...
User avatar
WingnutWilson
Halfling
Posts: 74
Joined: Tue Feb 14, 2012 3:13 pm
Location: Ireland

Re: Ogremax only retains 5 mesh animations?

Post by WingnutWilson »

Damn I didn't even think of that sorry, I totally forgot there was a commercial version :oops:
User avatar
Kojack
OGRE Moderator
OGRE Moderator
Posts: 7157
Joined: Sun Jan 25, 2004 7:35 am
Location: Brisbane, Australia
x 535

Re: [Solved] Ogremax only retains 5 mesh animations?

Post by Kojack »

The mesh and node animation limit is recent, it was only added as an extra restriction to the free version last year. Before that the only limits were the texture unit and uv coordinate set limits.
User avatar
Zonder
Ogre Magi
Posts: 1173
Joined: Mon Aug 04, 2008 7:51 pm
Location: Manchester - England
x 76

Re: [Solved] Ogremax only retains 5 mesh animations?

Post by Zonder »

You could always give this exporter a try if you can't get the commercial version

http://www.ogre3d.org/forums/viewtopic.php?f=8&t=68688
There are 10 types of people in the world: Those who understand binary, and those who don't...