- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi there
I'm investigating FBX files using vertex cache files from Maya (.mcx) and have a great success on deforming vertices.
Now I'm stuck with the normals. I can't figure out the right mapping compared to the vertices in the same file.
I have a model of a deforming cube made in Maya (attached file) and the number of control points are 8, which matches the number of vertices in the cache file. For indexing these vertices the FbxMesh::GetPolygonVertices() works perfect.
However, when getting the normals from the cache I can't find the right indices for mapping this to the geometry.
The number of normals are 24 (three per control point here) but with a 12 triangle geometry I don't see how I can match the normals to this.
This example, https://help.autodesk.com/view/FBX/2020/ENU/?guid=FBX_Developer_Help_cpp_ref_import_scene_2_display_... states in a comment, that "the normal data is per-polygon per-vertex". That's not what I get from the cache file. I've checked that polygon size is 3 so you would think the number of normals should 36 (12 * 3). This is the case when reading normal information from the geometry in the fbx file but the vertex cache yields different.
I hope somebody is able to point me in the right direction.
Regards, Maiken
Solved! Go to Solution.