I am working on the 2Dtexture animation in ogre . As in sample texture_FX. I followed the same, But images is nor displaying for me .
1) I added the .zip file under the packs folder
2) i have the in Example.material
Code: Select all
material Examples/Heart
{
technique
{
pass
{
lighting off
scene_blend alpha_blend
cull_hardware none
cull_software none
texture_unit
{
anim_texture heart.png 4 2.5
filtering none
}
}
}
}Code: Select all
Ogre::Entity* ent = scene->createEntity("Plane" , Ogre::SceneManager::PT_PLANE);
// attach it to a node, scale it, and position appropriately
Ogre::SceneNode* node = scene->getRootSceneNode()->createChildSceneNode();
node->setPosition(0,0,0);
node->setScale(0.25, 0.25, 0.25);
node->attachObject(ent);
ent->setMaterialName("Examples/Heart");Error loading texture heart_0.png. Texture layer will be blank. Loading the texture failed with the following exception: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource heart_0.png in resource group General or any other group. in ResourceGroupManager::openResource at /Users/davidrogers/Documents/Ogre/ogre-v1-7/OgreMain/src/OgreResourceGroupManager.cpp (line 753)
5)and instead of required image .. image is not displaying properly . But for sample it is running properly
Plz help me it is urgent for me ..