overte
overte copied to clipboard
glTF file shows too many verticies
The offending file is here: Mountains_2.glb.zip
As far as I know, it was created by Blender.
Screenshot of the issue:
Yes, the way verticies are counted is weird to say the least.
I had an issue for this on Vircadia, but basicly because it has so many materials (700) it just adds them up somehow. https://github.com/vircadia/vircadia-native-core/issues/1581
Unfortunately, the script I used to get a more accurate count, crashes Overte if I click on your example model, it's just too powerful:
[06/27 00:00:18] [CRITICAL] [overte.scriptengine.v8] Method scriptable::ScriptableMesh :: "getMeshPointer" has QMetaType::UnknownType return value
[06/27 00:00:18] [CRITICAL] [overte.scriptengine.v8] Method scriptable::ScriptableMesh :: "getModelProviderPointer" has QMetaType::UnknownType return value
[06/27 00:00:18] [CRITICAL] [overte.scriptengine.v8] Method scriptable::ScriptableMesh :: "getModelBasePointer" has QMetaType::UnknownType return value
A slightly better version of the script: https://silverfish-freestuff.s3.amazonaws.com/TestStuff/modelPropertiesdebug.js (writes mesh stats to log)