overte-org / overte

Overte open source virtual worlds platform.
https://overte.org/
Other
128 stars 47 forks source link

glTF file shows too many verticies #1045

Open JulianGro opened 1 week ago

JulianGro commented 1 week ago

The offending file is here: Mountains_2.glb.zip As far as I know, it was created by Blender. Screenshot of the issue: Auswahl_187

SilverfishVR commented 5 days ago

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)