Keyframe problem

Irrlicht.Net is no longer developed or supported, Irrlicht.Net Cross Platform is a much more complete wrapper. Please ask your C# related questions on their forums first.
Locked
Duke Of Doom
Posts: 1
Joined: Sat Oct 20, 2007 5:19 pm

Keyframe problem

Post 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]
Silbermünze
Posts: 34
Joined: Thu Sep 15, 2005 12:27 pm
Location: Stuttgart, Germany

Post 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
Locked