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 / FBX exporter
  RSS 2.0 ATOM  

FBX exporter
Rate this thread
 
50764
 
Permlink of this thread  
avatar
  • erdooom
  • Posted: 26 December 2010 11:30 PM
  • Total Posts: 17
  • Joined: 17 August 2010 08:33 AM

Hi,

I am writing an fbx expoter, now im trying to export cgfx attributes. I can’t find any documantation or example on how to do this. I found how to add the root binding table. But now im running into problems adding entries to the table. Here is my current test code:

KFbxBindingTableEntry newEntry lRootTable->AddNewEntry();

 
newEntry.SetEntryType("Integer",1);
 
newEntry.SetDestination("dest_test");
 
newEntry.SetDestination("src_test");
 
int test 3454;
 
newEntry.SetUserDataPtr(&test);

What i get is:

Entry: “”, “FbxUnknownEntry”, “”, “FbxUnknownEntry”

Thanks



Replies: 0
avatar
  • nian.wu
  • Posted: 28 December 2010 08:56 PM

The declaration of AddNewEntry is:
KFbxBindingTableEntry& AddNewEntry();
Please change your code to:
KFbxBindingTableEntry& newEntry = lRootTable->AddNewEntry();



Nian Wu
AutoDesk FBX Team

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

Thanks ! worked, any chance you can point me at a code sample of exporting a cgfx shader with fbx ? I saw in the Import scene sample some complicated code handling the different cases of parameters for the shader. But there is no sample for exporting such prams.

Thanks again

Eri

Author: erdooom

Replied: 28 December 2010 09:15 PM  
/img/forum/dark/default_avatar.png

deleted double submit

Author: erdooom

Replied: 28 December 2010 09:52 PM  
/userdata/avatar/46bb5886n_car2.JPG

I am not familiar with cgfx shader. You can open a new thread to ask this question.

Author: nian.wu

Replied: 29 December 2010 04:59 PM