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 / Replacement for GetGlobalFromDefaultTake() in FBX SDK 2011.2
  RSS 2.0 ATOM  

Replacement for GetGlobalFromDefaultTake() in FBX SDK 2011.2
Rate this thread
 
43840
 
Permlink of this thread  
avatar
  • Total Posts: 38
  • Joined: 05 February 2009 04:40 AM

Hi All,

I need to get the global transformation for the node in the scene, outside of any animation curves. In the past SDK I would use GetGlobalFromDefaultTake() method, however it is deprecated now.

The new way is to use KFbxEvaluator::GetNodeGlobalTransform(...). However, KFbxEvaluator works in context of a animation stack, and I need the global transform outside of animation context.

How do I do that? Thanks,

—Matt



Replies: 3
/userdata/avatar/vx3501hqr_small.jpg

Hi, Matt,
You can simply call GetNodeGlobalTransform(lNode), just let other parameters use their default value, especially the pTime, when it is equal to KTIME_INFINITE, no animstack will be taken into consideration to compute global transform.

Hope this helps.

Author: Jiayang Xu

Replied: 01 June 2010 03:53 PM  
/img/forum/dark/default_avatar.png

This does help, thanks!

Do I even need to SetContext() on evaluator, or is it optional if I am evaluation with KTIME_INFINITE?

Author: quarterdome

Replied: 02 June 2010 06:59 AM  
/userdata/avatar/vx3501hqr_small.jpg

Hi, matt, if you always evaluate global transform outside of animation context, yes, you do not even need to SetContext(), but as long as you need to evaluate at any time other than KTIME_INFINITE, then you have to be aware of your current context.  :)

Author: Jiayang Xu

Replied: 02 June 2010 02:33 PM