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. How to limit the tilt angle to 180 deg in QML?
Forum Updated to NodeBB v4.3 + New Features

How to limit the tilt angle to 180 deg in QML?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 324 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.
  • L Offline
    L Offline
    lakshmanGiri
    wrote on last edited by
    #1

    I have rendered a 3D model and have used orbitcontrollercamera to rotate the object. With the help of this reference https://github.com/Match-Yang/SOrbitCameraController, I was able to accomplish the rotation. The rotation (pan) in X-axis is rotating in 360-degree view which is fine. But, the rotation (tilt) in Y-axis is also rotating in 360 degrees which I wanted to limit to 180 degrees.

    How to accomplish this function?. Thanks in advance.

    kshegunovK 1 Reply Last reply
    0
    • L lakshmanGiri

      I have rendered a 3D model and have used orbitcontrollercamera to rotate the object. With the help of this reference https://github.com/Match-Yang/SOrbitCameraController, I was able to accomplish the rotation. The rotation (pan) in X-axis is rotating in 360-degree view which is fine. But, the rotation (tilt) in Y-axis is also rotating in 360 degrees which I wanted to limit to 180 degrees.

      How to accomplish this function?. Thanks in advance.

      kshegunovK Offline
      kshegunovK Offline
      kshegunov
      Moderators
      wrote on last edited by
      #2

      You don't. Write your own camera controller and handle the transformation yourself.

      Read and abide by the Qt Code of Conduct

      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