SkyboxCubeMap rotation?
-
How are you supposed to rotate the SkyboxCubeMap of a View3D environment? I assumed it would be by rotating the camera (like all other cubemaps), but it is always the same static image no matter what I set the camera rotation and position to. Qt 6.9.1
View3D { anchors.fill: parent environment: SceneEnvironment { antialiasingMode: SceneEnvironment.MSAA backgroundMode: SceneEnvironment.SkyBoxCubeMap skyBoxCubeMap: CubeMapTexture { source: channel.source + "/%p.jpg" } } Node { id: node DirectionalLight { ambientColor: Qt.rgba(1.0, 1.0, 1.0, 1.0) } FrustumCamera { id: camera position.z: 0 rotation.x: 80 rotation.y: 80 } } camera: camera }
Edit:
FrustumCamera
is just the result of testing if I was using the wrong camera type. It wasPerspectiveCamera
with the same result