Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® FBX® / FBX SDK / KFbxAnimEvaluator returning double property values
  RSS 2.0 ATOM  

KFbxAnimEvaluator returning double property values
Rate this thread
 
51386
 
Permlink of this thread  
avatar
  • Aasimon
  • Posted: 16 January 2011 11:26 PM
  • Total Posts: 8
  • Joined: 29 July 2010 09:59 AM

Hi,

I am using KFbxAnimEvaluator::GetPropertyValue( KFbxNode::Property, Time) to read properties from a camera node.
What I am finding is that some of the node properties are coming out at double the values they should be.

If I use the following I get the correct value:

KFbxTypedPropertyTdata> &Property pFbxNode->Property;
 
Value Property.Get();

But if I use the following I get the double the correct value:

KFbxTypedPropertyTdata> &Property pFbxNode->Property;
 
KFbxAnimCurveNode &FbxAnimCurveNode pFbxEvaluator->GetPropertyValuePropertyTime);
 
Value FbxAnimCurveNode.GetChannelValue0u0);

I have tracked the issue back to properties that have animations on them.
Reading through text based FBX files from Maya, I have determined the properties with animation data on them are wrong.

If I edit the text FBX files so the animtion keys are all set to values of 0 and leave the nodes default value as it is I get the correct values. As I edit/increase the animation keys back towards their original values the values tend back to the double values.

These only seems to affect properties as using GetGlobalTransform() seems to be working correctly!

Can anybody shed some light on what is going on here? And how I can fit it?

Thanks.



Replies: 2
/userdata/avatar/vx3501hqr_small.jpg

Hi, Aasimon,
I can reproduce this problem and already logged it as a bug.
As a workaround, you may get the animcurve from each channel of that property, then call KFbxAnimCurve::Evaluate().

Thank you for the report!

Author: Jiayang Xu

Replied: 19 January 2011 08:44 PM  
/userdata/avatar/vx3501hqr_small.jpg

Hi, Aasimon,
This is already fixed and will be available in the next release :).
Thanks again!

Author: Jiayang Xu

Replied: 27 January 2011 03:33 PM