Announcements

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

About FBXSDK export with both Color and Texture

Anonymous

About FBXSDK export with both Color and Texture

Anonymous
Not applicable

Hi

 

We are trying to export mesh from other application, and we follow the offical "ExportScene03" sample, everything goes well, but when we use texture connection to the Diffuse channel like 

lMaterial2->Diffuse.ConnectSrcObject(lTexture);

the previous color setting with Diffuse.set(FbxDouble3(0.8, 0, 0)) will not work any more. Who can help us to solve this issue, please do us a favor. Thanks!

0 Likes
Reply
270 Views
1 Reply
Reply (1)

regalir
Autodesk
Autodesk

Not sure exactly what is your setup and the workflow. In the FBX file, the DiffuseColor property maintains the value that you set even if a texture is connected. However, how the two attributes are handled depends on the application that read (and eventually renders) the FBX scene. Autodesk prducts typically give precedence to the texture and, thus, ignore the DiffuseColor value.

 

Also, make sure that the texture files have the correct filepath defined in the FBX file so the applications can find them.

0 Likes