In the sample project Sample_V2Mesh of Ogre 2.1 has the following code
Code: Select all
//Load the v1 mesh. Notice the v1 namespace
//Also notice the HBU_STATIC flag; since the HBU_WRITE_ONLY
//bit would prohibit us from reading the data for importing.
v1Mesh = Ogre::v1::MeshManager::getSingleton().load(
"athene.mesh", Ogre::ResourceGroupManager::AUTODETECT_RESOURCE_GROUP_NAME,
Ogre::v1::HardwareBuffer::HBU_STATIC, Ogre::v1::HardwareBuffer::HBU_STATIC);
I try to re-create the sample project Sample_V2Mesh from scratch, but when I come to that code, OGRE said he can't find "athene.mesh". I have put the file "athene.mesh" into DebugPack.zip. I have added the 'models' folder which contains the file "athene.mesh" and put the path inside the file resources2.cfg.
Code: Select all
[Essential]
Zip=../Data/DebugPack.zip
[Popular]
FileSystem=../Data
FileSystem=../Data/Materials/Common
FileSystem=../Data/Materials/Common/GLSL
FileSystem=../Data/Materials/Common/HLSL
FileSystem=../Data/Materials/Common/Metal
FileSystem=../Data/models
# Do not load this as a resource. It's here merely to tell the code where
# the Hlms templates are located
[Hlms]
DoNotUseAsResource=../Data
Code: Select all
OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource athene.mesh in resource group Autodetect or any other group. in ResourceGroupManager::openResource at E:\\Source\\OgreSDK\\OgreMain\\src\\Ogr...
Thanks for reading.