Community
KFbxGeometryConverter lConverter(pSdkManager)
lConverter.SplitMeshPerMaterial(lMesh)
pNode->GetNodeAttributeCount()
I'm facing a similar problem in FBX SDK 2017.1; I call SplitMeshPerMaterial(). But in the split meshes all my transformations are identity.
So:
converter->SplitMeshPerMaterial(pMesh,false/*replace*/); for(int c = 0; c < pMesh->GetNode()->GetNodeAttributeCount(); ++c) { if(pMesh->GetNode()->GetNodeAttributeByIndex(c)->GetAttributeType() == FbxNodeAttribute::eMesh && pMesh->GetNode()->GetNodeAttributeByIndex(c)!=pMesh) { FbxMesh *mesh=(FbxMesh*)pMesh->GetNode()->GetNodeAttributeByIndex(c)); FbxVector4 trans=mesh->GetNode()->GetGeometricTranslation(FbxNode::eSourcePivot); }
Here, 'trans' is always zeroes. Any idea how I can fix that?
Can't find what you're looking for? Ask the community or share your knowledge.