Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding ability to get vertex count and triangle count from model load #500

Merged
merged 2 commits into from Oct 7, 2019

Conversation

blgrossMS
Copy link

  • Vertex count and triangle count not gotten after load from Statistics on GLTFSceneImporter
  • TriangleCount only accurate for meshes that have indices and a triangle topology

Copy link

@RickyRoeslerMS RickyRoeslerMS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. The Import Statistics could easily be expanded, if needed, in future changes. BabylonJS, for example, exposes counts for Materials, Textures, Bones, and numerous other statistics. If there was a need someone could expand Import Statistics to include that type of information.

@blgrossMS blgrossMS merged commit 8caea32 into master Oct 7, 2019
@blgrossMS blgrossMS deleted the u/blake/add_import_settings branch October 7, 2019 21:26
github-actions bot pushed a commit to Rhinox-Training/UnityGLTF that referenced this pull request Nov 9, 2022
…KhronosGroup#500)

* adding statistics on import to be able to see vert count and tri count

* added statistics to model loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants