Is there a way to diagnose why SceneLoader
in QML (Qt 5.8) might appear not to work?
In my current project, there's one (3DS) model that SceneLoader
will show (and this worked first try), but I replace it with any other models.
I run qgltf
on the models, load in their resource file, etc.. basically set everything up the same, but never models won't show.
My sceneloader status is also set to ready
, as opposed to error
when it cannot find the file.
I've noticed that if I don't scale my objects, it will appear as if their not showing, but nothing I do to the newer models (either scaling them in Blender or in a QML Transform
) has any impact.
I once saw an app for preparing models for Qt, but I think it was discontinued, in any case I'm not able to find it now.
Is there some vertex limit? Some other limit? I can't find anything in the docs about why it mightn't work.
Code:
Entity {
property SceneLoader shipObjSmall: SceneLoader {
id: shipObjSmall
source: "qrc:/models/tugboat-small.qgltf"
// code to print status on onStatusChanged
}
components: [shipObjSmall]
}