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 / How to create display layers?
  RSS 2.0 ATOM  

How to create display layers?
Rate this thread
 
49096
 
Permlink of this thread  
avatar
  • Lyrik
  • Posted: 04 November 2010 04:06 AM
  • Total Posts: 12
  • Joined: 05 October 2010 06:15 AM

Hello,

I’d like to use KFbxDisplayLayer class to create multiple layers, but I have no idea how to create it. The constructor is protected and KFbxSdkManager and KFbxScene don’t have any methods to create it. Did I miss something? Some short code sample would be very helpful. :-)

Thank you.
Regards,

Tomas Rejhons.



Replies: 1
/userdata/avatar/avatar_274393.png

To create a object of KFbxDisplayLayer, call KFbxDisplayLayer::Create(...). It’s defined through some macros… It’s the conventional way to create objects in FBX SDK. You’ll see many KFbxBlaBla::Create(...) in the samples of FBX SDK.
The display layer concept is as the same as layers in 3ds max. Here’s some explanation in 3dsmax help:
http://docs.autodesk.com/3DSMAX/...ef003112a1ce9423-7eec.htm

Liang

Author: Liang.Ma

Replied: 04 November 2010 09:45 PM  
avatar

Hi Tomas,

I am not sure what you want to do. If you want to layer textures, maybe KFbxLayeredTexture is the class you are looking for?

Viviane
Maya Data Platform
Autodesk



Viviane Rochon
Maya Data Platform
Autodesk

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

Hi Viviane,

I know how to layer textures, but I want to create display layers for usage in 3DS Max layer system. I think Liang’s reply solves my problem.

Regards,

Tomas Rejhons.

Author: Lyrik

Replied: 05 November 2010 11:27 PM