Hello,
I am testing with Qt 3D trying to load an obj model. I have two issues.
- The model loads fine on Linux but I get the following error on Android.
W linker : /data/data/com.yourcompany.wizardEVAP.Helio/qt-reserved-files/plugins/sceneparsers/libgltfsceneimport.so: unused DT entry: type 0x1d arg 0x3860
W linker : /data/data/com.yourcompany.wizardEVAP.Helio/qt-reserved-files/plugins/sceneparsers/libgltfsceneimport.so: unsupported flags DT_FLAGS_1=0x81
W Adreno-EGL: <qeglDrvAPI_eglCreateContext:2529>: EGL_BAD_CONTEXT
W helio : Qt3DCore::QEntity* Qt3DRender::Render::LoadSceneJob::tryLoadScene(Qt3DRender::Render::Scene*, Qt3DRender::QSceneLoader::Status&, const QStringList&, const std::function<void(Qt3DRender::QSceneImporter*)>&) Found not suitable importer plugin for QUrl("assets:/assets/3D_model/prueba.obj")
- The textures, in a mtl file, are not loaded. Am I missing something? This is the code.
readonly property string modelFilename: "../assets/3D_model/prueba.obj"
Scene3D
{
anchors.fill: parent
aspects: ["input", "render", "logic"]
cameraAspectRatioMode: Scene3D.AutomaticAspectRatio
Entity
{
id: sceneRoot
Camera
{
id: camera
projectionType: CameraLens.PerspectiveProjection
fieldOfView: 30
aspectRatio: 16/9
nearPlane : 0.1
farPlane : 100000.0
position: Qt.vector3d( 0.0, 0.0, -40.0 )
upVector: Qt.vector3d( 0.0, 1.0, 0.0 )
viewCenter: Qt.vector3d( 0.0, 0.0, 0.0 )
}
OrbitCameraController
{
camera: camera
linearSpeed: 5000
lookSpeed: 100
}
components: [
RenderSettings
{
activeFrameGraph: ForwardRenderer
{
clearColor: Qt.rgba(0, 0.5, 1, 1)
camera: camera
}
},
InputSettings
{
}
]
Entity
{
id: monkeyEntity
components: [
SceneLoader
{
id: sceneLoader
source: modelFilename
}
]
}
}
}
Thanks!