Got a weird mesh issue.
I export my mesh successfully and load it into my game...suddenly my framerate drops to ~7 (I get 300 normally).
This mesh only has 353 polys and a skeleton of roughly 25 bones (I counted, but wasn't very careful and might've missed a couple).
I did notice in the OgreXMLConverter.log file
23:23:40: Skeleton: Loading Rat.skeleton
23:23:40: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Rat.skeleton in resource group General or any other group. in ResourceGroupManager::openResource at ..\src\OgreResourceGroupManager.cpp (line 604)
23:23:40: Unable to load skeleton Rat.skeleton for Mesh conversion. This Mesh will not be animated. You can ignore this message if you are using an offline tool.
23:23:40: XMLMeshSerializer import successful.
No errors or warnings in ogre.log
Mesh creation code is normal
Code: Select all
SceneNode* levelNode = mSceneMgr->getRootSceneNode()->createChildSceneNode("levelNode");
Entity* ent = mSceneMgr->createEntity( "myRat", "Rat.mesh" );
levelNode->attachObject( ent );
I haven't tried to animate it, move it or anything...simply load and display it.
If I don't attach it, I get ~300FPS. If I attach it, I get ~7. The mesh exporter I'm using was one from a few pages back, but I updated to the one above by Wasted, and no change.
Any ideas?
EDIT: randomly - instead of going down to 7, it'll only go down to 12 instead...but it won't display the texture on some of my other meshes.
EDIT2: if the event I just mentioned occurs, the framerate doesn't matter whether the rat is on-screen or not - framerate is still low. If the texture does render, the framerate will be 7...but only if the rat is on-screen. Additionally, I coded in for my rat to use one of my animations...it animated.
I'm at a total loss.