what is framecount?

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
NewerCookie
Posts: 20
Joined: Sat Jan 10, 2009 12:53 pm

what is framecount?

Post by NewerCookie »

i animated skinning model that is b3d format on irrlicht 1.5
it seems not smooth because endframe skipped
model was made by 3ds max that has 20frame animation
i think.. all framecount must be 21(0~20)
i checked "PositionKeys.used" has 21

Code: Select all

u32 CSkinnedMesh::getFrameCount() const
{
	return core::floor32(AnimationFrames);
}
seems like CSkinnedMesh::getFrameCount() function returns 'all framecount'


then.. i have been confuse this line( CSkinnedMesh.cpp,793 )

Code: Select all

AnimationFrames=AllJoints[i]->UseAnimationFrom->PositionKeys.getLast().frame;
AllJoints->UseAnimationFrom->PositionKeys.getLast().frame returns 20.
ok. lastframe is 20, right.
but, it means framenumber? framecount is different from framenumber?

please, answer me..
I hope you understand my poor english.
If i used wrong sentence, notify me.
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

We have a bug open against frame counts. Hopefully hybrid has made some progress in figuring it out - I'm fairly clueless about these new-fangled "animated" models. ;)
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
hybrid
Admin
Posts: 14144
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

I hope this bugtracker is assigned to Luke, because I'm not much into animated meshes either. I just write the loaders, but if my intuition and the values I pass are correct is not clear...
NewerCookie
Posts: 20
Joined: Sat Jan 10, 2009 12:53 pm

Post by NewerCookie »

thanks answers.
I made makeshift

CAnimatedMeshSceneNode.cpp, 519Line

Code: Select all

const s32 maxFrameCount = Mesh->getFrameCount() - 1;

Code: Select all

const s32 maxFrameCount = Mesh->getFrameCount();
it's temporary repair endframe skipping problem..
I hope you understand my poor english.
If i used wrong sentence, notify me.
fmx

Post by fmx »

I noticed this problem too, exporting out .X files from Max.
Instead of messing with the numbers Irrlicht gave me, I just exported out an additional frame at the end.
Maybe its something weird with Max? Might be worth experimenting with Blender or other programs to see if irrlicht gets it right or not.
NewerCookie
Posts: 20
Joined: Sat Jan 10, 2009 12:53 pm

Post by NewerCookie »

I just exported out an additional frame at the end
Oh, i used that but maybe artist hate..
I had rather fix engine than.. :D
I hope you understand my poor english.
If i used wrong sentence, notify me.
Post Reply