Qt Quick 3D - Exemplo de auxiliar de nível de detalhe
Demonstra o uso do auxiliar de nível de detalhe.

Este exemplo demonstra o uso do auxiliar LODManager. O LODManager funciona alterando a visibilidade de seus nós filhos com base na distância até a câmera especificada. A propriedade distances é uma lista de limites de distância que determinam quando a visibilidade de um nó filho é alterada. O primeiro nó filho é exibido quando estiver mais próximo e o último, quando estiver mais distante.
LodManager {
camera: camera
distances: [100, 140, 180]
fadeDistance: 10
Model {
scale: Qt.vector3d(100, 100, 100);
source: "meshes/marble_bust_01_LOD_0.mesh"
materials: [ marbleMaterial ]
}
Model {
scale: Qt.vector3d(100, 100, 100);
source: "meshes/marble_bust_01_LOD_1.mesh"
materials: [ marbleMaterial ]
}
Model {
scale: Qt.vector3d(100, 100, 100);
source: "meshes/marble_bust_01_LOD_2.mesh"
materials: [ marbleMaterial ]
}
Model {
scale: Qt.vector3d(100, 100, 100);
source: "meshes/marble_bust_01_LOD_3.mesh"
materials: [ marbleMaterial ]
}
}© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.