Low priority for now but the code expects us to store tri count for uploaded models:
var gltfFormat = json["formats"].First(x => x["format"].ToString() == "GLTF");
string gltfTriCount = gltfFormat?["formatComplexity"]?["triangleCount"]?.ToString();
if (gltfTriCount == null)
{
Debug.Log($"{m_AssetId} has no tricount");
}
m_GltfTriangleCount = Int32.Parse(gltfTriCount ?? "1");
I can see this being useful metadata in any case - and it's fairly simple to extract from an existing GLTF. For example this file has got 2414688 indices and therefore 804896 triangles.
Low priority for now but the code expects us to store tri count for uploaded models:
I can see this being useful metadata in any case - and it's fairly simple to extract from an existing GLTF. For example this file has got 2414688 indices and therefore 804896 triangles.
I think there should only ever be one entry where name="indices" ( @mikeskydev - does that sound right to you? )