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. Add animation when use camera.roll(real angel)
Qt 6.11 is out! See what's new in the release blog

Add animation when use camera.roll(real angel)

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 268 Views 1 Watching
  • 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.
  • S Offline
    S Offline
    Son Nguyen Ngoc
    wrote on last edited by
    #1

    Hi all,
    I use roll(real angel) method to change roll angel of camera in Qt3d but, i have no idea to add animation to this action. I don't know what property of camera is changed by that method. For example:

    Camera {
    id: camera
    projectionType: CameraLens.PerspectiveProjection
    fieldOfView: 45
    aspectRatio: 4/3
    nearPlane : 0.1
    farPlane : 1000.0
    position: Qt.vector3d(0, -100, 30)
    upVector: Qt.vector3d( 0, 1, 0 )
    viewCenter: Qt.vector3d(0, 0, 0)
    }

    function changeRollAngel(action)
    {
        if(action == 1)
        {
            camera.roll(5)
        }
        else if(action == -1)
        {
            camera.roll(-5)
        }
    }
    
    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