![]() ![]() Normal2: X: 0.246448 Y: 0.378525 Z: -0.892179 W: 1Īs seen above - a unit sphere in bind pose should have Normals close to that of the Position X/Y/Z - where above normals are just flat out wrong. Here is output: Vertex Count: 0 Vertex Index: 20 Importer->Initialize("C:\\Projects\\FbxSamples\\SphereWithBones.fbx", -1, sdkManager->GetIOSettings()) Īuto fbxScene = FbxScene::Create(sdkManager, "Scene") Ios->SetBoolProp(IMP_FBX_GLOBAL_SETTINGS, true) Īuto importer = FbxImporter::Create(sdkManager, "") Ios->SetBoolProp(IMP_FBX_ANIMATION, true) ![]() Ios->SetBoolProp(IMP_FBX_MATERIAL, true) Int id = normals->GetIndexArray().GetAt(vertexCount) įbxMesh->GetPolygonVertexNormal(polygonId, j, normal2) įbxManager* sdkManager = FbxManager::Create() įBXSDK_printf("Error: Unable to create FBX Manager!\n") įBXSDK_printf("Autodesk FBX SDK version %s\n", sdkManager->GetVersion()) įbxIOSettings* ios = FbxIOSettings::Create(sdkManager, IOSROOT) Normal = normals->GetDirectArray().GetAt(vertexCount) Normal = normals->GetDirectArray().GetAt(id) Ĭase FbxGeometryElement::eByPolygonVertex: Int id = normals->GetIndexArray().GetAt(vertexIndex) Normal = normals->GetDirectArray().GetAt(vertexIndex) Int meshControlPointsCount = fbxMesh->GetControlPointsCount() Īuto normals = fbxMesh->GetElementNormal() įor (int polygonId = 0 polygonId GetPolygonSize(polygonId) įor (int j = 0 j GetPolygonVertex(polygonId, j) Īuto position = meshControlPoints Ĭase FbxGeometryElement::eB圜ontrolPoint: Int triangleCount = fbxMesh->GetPolygonCount() Īuto meshControlPoints = fbxMesh->GetControlPoints() Void FbxSample::ImportMesh(FbxNode
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |