Peace. I have a problem and need some help. What I am trying to do is to call getFrameNr() , and getEndFrame() in an if statement to determine when both numbers are the same so that I can call a different method. What happens is that the numbers are continually the same –1.
Do you think that it does not work because I load my textures with an ISceneNodeAnimator in the following way:
To solve the problem I have (a) read through the forums on as many threads that seemed relevant that addressed “getFrameNr()and getEndFrame(), ” (b) re-did how I pased in the IanimatedMeshSceneNode, and (c) looked at sample code that hd somewhat of a similar use.scene::ISceneNodeAnimator* ScreenAnimator = m_pSceneManager->createTextureAnimator(adventureOneTexture,4000, false);
Following is the code for how I have set it up:
For the creation of the texture
Code: Select all
// load textures
irr::core::array<irr::video::ITexture*> adventureOneTexture;
adventureOneTexture.push_back(m_pDriver->getTexture("../../media/adventureOneImage2.jpg"));
adventureOneTexture.push_back(m_pDriver->getTexture("../../media/adventureOneImage3.jpg"));
etc…
I read there was a class for call back, but prefer to use this method. Thank you for any help.
Peace.