Page 1 of 1

Keyframe problem

Posted: Sat Oct 20, 2007 5:26 pm
by Duke Of Doom
Hallo,
It would be great if someboby could tell me how I can get the total number of frames in a keyframe-Animation. I know it's how to set the current frame so I think it must be possible to get the total nuber of frames.

Code: Select all

engineMesh = smgr.AddAnimatedMeshSceneNode(smgr.GetMesh("animation.x")); 

engineMesh.CurrentFrame = 0;
That's the code I'm working with.

I'm using irrlicht.net cp 8.1-rc1. [/code]

Posted: Mon Oct 22, 2007 12:16 pm
by Silbermünze
As far as I can see(deriving from the Irrlicht doc), the method for retrieving the frame count is to be determined through:

Code: Select all

engineMesh = smgr.AddAnimatedMeshSceneNode(smgr.GetMesh("animation.x")); 

AnimatedMesh am = engineMesh.GetMesh();
int count= am.FrameCount
However the FrameCount property is not yet implemented in Irrlicht.NET CP 0.8.1. So you have no possibility to do it in Irrlicht.NET CP 0.8.1, at the moment.

As 0.8.1 this will likely be part fo the 0.9 release. However, there will be a complete new animation system wrapped with 0.9, as it is going to wrap Irrlicht 1.4.

Thoran