Hi,

I am trying to build cycles scene from fbx file using fbx sdk.

This is how I am calculating the Cycles transform from a FbxNode.

The meshes are not positioned properly they are displayed as if they are thrown a part in different directions.

Any idea what I am doing wrong?

Can someone help me?

Thanks in advance.

```
FbxAMatrix& fbx_transform = CalculateGlobalTransform(fbx_node);
Transform& cycles_transform = fbx_matrix_to_cycles_transform(&fbx_transform );
FbxAMatrix CalculateGlobalTransform(FbxNode *pNode)
{
FbxAMatrix &lGlobalTransform = pNode->EvaluateGlobalTransform();
return lGlobalTransform;
}
Transform fbx_matrix_to_cycles_transform(const FbxAMatrix &matrix)
{
FbxVector4 &translation = matrix.GetT();
FbxVector4 &rotation = matrix.GetR();
FbxVector4 &scale = matrix.GetS();
Transform &transform = transform_euler(make_float3(rotation.mData[0], rotation.mData[1], rotation.mData[2]));
transform.x.x = scale.mData[0];
transform.x.w = translation.mData[0];
transform.y.y = scale.mData[1];
transform.y.w = translation.mData[1];
transform.z.z = scale.mData[2];
transform.z.w = translation.mData[2];
return transform;
}
```