Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. SkyboxCubeMap rotation?
Forum Updated to NodeBB v4.3 + New Features

SkyboxCubeMap rotation?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 86 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DigitalArtifex
    wrote on last edited by DigitalArtifex
    #1

    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 was PerspectiveCamera with the same result

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved