Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt 5.15.1 breaks camera/view centering in qt3d
Forum Updated to NodeBB v4.3 + New Features

Qt 5.15.1 breaks camera/view centering in qt3d

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 342 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.
  • F Offline
    F Offline
    Finn
    wrote on last edited by Finn
    #1

    I switched from Qt 5.15.0 to 5.15.1 on macOS Mojave.
    Now, the origin/center of the coordinate system is somehow placed in the top right corner of the Qt3dWindow whereas my camera is placed somewhere else:

    I am setting the camera up like this:

    qt3DWindow_->camera()->setViewCenter({0,0,0});
    qt3DWindow_->camera()->setUpVector({1,0,0});
    qt3DWindow_->camera()->setPosition({0,1,0});
    qt3DWindow_->camera()->viewSphere({0, 0, 0}, defaultCameraRadius_);
    qt3DWindow_->camera()->panAboutViewCenter(float(pan_->value()));
    qt3DWindow_->camera()->tiltAboutViewCenter(float(tilt_->value()));
    qt3DWindow_->camera()->rollAboutViewCenter(float(roll_->value()));
    

    and I control it using the QOrbitCameraController.

    broken camera/view in Qt 5.15.1:
    broken (5.15.1)

    how it (approximately) looked before in Qt 5.15.0:
    how it approximately looked before (5.15.0)

    The arrows in red, green, and blue correspond to the x,y, and z axis. (The arrows have unit length and are placed in the origin {0,0,0}).

    jsulmJ 1 Reply Last reply
    0
    • F Finn

      I switched from Qt 5.15.0 to 5.15.1 on macOS Mojave.
      Now, the origin/center of the coordinate system is somehow placed in the top right corner of the Qt3dWindow whereas my camera is placed somewhere else:

      I am setting the camera up like this:

      qt3DWindow_->camera()->setViewCenter({0,0,0});
      qt3DWindow_->camera()->setUpVector({1,0,0});
      qt3DWindow_->camera()->setPosition({0,1,0});
      qt3DWindow_->camera()->viewSphere({0, 0, 0}, defaultCameraRadius_);
      qt3DWindow_->camera()->panAboutViewCenter(float(pan_->value()));
      qt3DWindow_->camera()->tiltAboutViewCenter(float(tilt_->value()));
      qt3DWindow_->camera()->rollAboutViewCenter(float(roll_->value()));
      

      and I control it using the QOrbitCameraController.

      broken camera/view in Qt 5.15.1:
      broken (5.15.1)

      how it (approximately) looked before in Qt 5.15.0:
      how it approximately looked before (5.15.0)

      The arrows in red, green, and blue correspond to the x,y, and z axis. (The arrows have unit length and are placed in the origin {0,0,0}).

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Finn said in Qt 5.15.1 breaks camera/view centering in qt3d:

      Another comment directed to the people responsible for the homebrew package

      This is not the right place to ask this as this is Qt user forum, not homebrew project forum (which is completely unrelated to Qt).

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      F 1 Reply Last reply
      1
      • jsulmJ jsulm

        @Finn said in Qt 5.15.1 breaks camera/view centering in qt3d:

        Another comment directed to the people responsible for the homebrew package

        This is not the right place to ask this as this is Qt user forum, not homebrew project forum (which is completely unrelated to Qt).

        F Offline
        F Offline
        Finn
        wrote on last edited by Finn
        #3

        @jsulm I agree, my frustration with homebrew has nothing to do with the problem and I will remove it from the question. However, my question is about the problem with the camera/view.

        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