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 / curve user tangents
  RSS 2.0 ATOM  

curve user tangents
Rate this thread
 
50657
 
Permlink of this thread  
avatar
  • Total Posts: 2
  • Joined: 21 December 2010 07:16 AM

Hi

I am trying to read the FCurve (bezier) for a postion track from motionbuilder into our own code but cannot seem to be able to get the correct info for the user modified tangents.

For intsance if i create a FCurve for the x position of a camera and set a key with user tangent of 45 degrees then read in this key using the sdk i get

(x position goes from 0 to 100 with 3 keys one in middle at 50 with tangent of 45 degrees, other 2 at either end and auto tangents)

KFCurveTangeantInfo RightTangentInfo = FbxCurve->KeyGetRightDerivativeInfo(KeyIndex);

which gives the following values ....

fbxsdk_2011_3::KFCurveTangeantInfo
mDerivative 1045.2800 float
mWeight 0.33333334 float
mVelocity 0.00000000 float
mAuto 986.12756 float
mWeighted false bool
mHasVelocity false bool

I can’t see how i can get from this to the 45 degrees that the user set the tangent to??

S.



Replies: 1
/img/forum/dark/default_avatar.png

Just noticed that the User enetered tangent in motion builder is in view space!!!
So it changes dependent on the view zoom in either direction - no wonder i couldnt get any correlation between entered value and figures stored in the fbx, will look at this again....

Author: shaunthedon

Replied: 21 December 2010 12:51 AM