Details
-
Bug
-
Resolution: Invalid
-
P1: Critical
-
QDS 4.5
-
None
-
-
QDS Berlin - 2024 Week 37/38
Description
When trying to export 3D enabled project from QDS to Creator, some 3D meshes are not present.
Reason for this is this:
- QML tries to load assets from:
- source: "../asset_imports/Quick3DAssets/PlanetRings/meshes/planet_Ring1_mesh.mesh"
- CMAKE which includes the meshes gives:
- /qt/qml/asset_imports/Quick3DAssets/PlanetRings/meshes/planet_Ring1_mesh.mesh
- But the file actually is in
- build/Qt_6_8_0_for_macOS-Debug/qml/Quick3DAssets/PlanetRings/meshes/planet_Ring1_mesh.mesh
This is works in the QDS environment as the qmlproject knows where things are found but on the CMAKEs these need to be explicit.
This can be reproduced at least with the new Hyperrreal demo:
Clone: git@git.qt.io:qt-demo-team/hyperreal.git
Steps
- Open the project
- Enable CMake creation
- Triggger file update (edit & save a qml file)
- Close DS
- Open Creator
- Open the project
- Select Qt 6.8 kit
- Compile & run
What happens: Project starts and renders differently than with QDS
Reason: Assets and shaders are not all loaded.