Problem with GetPolygonCount giving the incorrect number

Problem with GetPolygonCount giving the incorrect number

peter.neil.nz
Enthusiast Enthusiast
439 Views
1 Reply
Message 1 of 2

Problem with GetPolygonCount giving the incorrect number

peter.neil.nz
Enthusiast
Enthusiast

We have an automatic processing system that triggers a polycount reduction based on the polygon count of the original file.  Our software uses the mesh->GetPolygonCount(); method to get the polygons but for some FBX files the values are less compared to what FBX Review says yet for other files the number is about the same.  In some cases the number is a lot different (6.5m in FBX Review vs 2.5m via SDK).  

We are getting all of the child items in the object hierarchy so we can rule this as the cause.  Any ideas on what might be causing this?  

0 Likes
440 Views
1 Reply
Reply (1)
Message 2 of 2

peter.neil.nz
Enthusiast
Enthusiast

Our bad!  The polycount is working correctly. We had a coding bug that mean't we didn't check children when a node had no mesh.

0 Likes