Results 1 to 3 of 3

Thread: Q3DCamera Y axis rotation limit

  1. #1
    Join Date
    Aug 2007
    Posts
    275
    Thanks
    28
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Q3DCamera Y axis rotation limit

    I am using Q3DSurface and found that Y rotation is limited to 0 - 90 degrees while X can go from 0 - 380. How can I get my Y rotation to 0- 360 so I can spin my surface in any direction my user wants. I thought this will be some limit in Q3DCamera assigned to Q3DSurface. I can not find the limits though. Anybody?

  2. #2
    Join Date
    Jan 2021
    Posts
    3
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Q3DCamera Y axis rotation limit

    Hi,

    I had the same trouble, the settings of the Y rotation is private so I couldn't get free movement with my Q3DSurface.
    But the Q3DScatter allows this full movement ! So I just had to :
    - create a Q3DScatter,
    - permute the camera between the Q3DScatter and my Q3DSurface,
    - delete the Q3DScatter.

    Qt Code:
    1. Q3DScatter *myQ3DScatter = new Q3DScatter();
    2. Q3DSurface *myQ3DSurface = new Q3DSurface();
    3. Q3DCamera *cameraFromQ3DSurface = myQ3DSurface->scene()->activeCamera();
    4. myQ3DSurface->scene()->setActiveCamera( myQ3DScatter->scene()->activeCamera() );
    5. myQ3DScatter->scene()->setActiveCamera( cameraFromQ3DSurface );
    6. delete myQ3DScatter;
    To copy to clipboard, switch view to plain text mode 

    That works just fine for me

    Regards,

  3. The following user says thank you to sd for this useful post:

    baray98 (16th November 2023)

  4. #3
    Join Date
    Aug 2007
    Posts
    275
    Thanks
    28
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Q3DCamera Y axis rotation limit

    Kinda hacky but it work thanks this may help somebody else too

Similar Threads

  1. Replies: 0
    Last Post: 23rd January 2017, 12:55
  2. Axis Title to axis label alignment
    By ROCKSTAR in forum Qwt
    Replies: 0
    Last Post: 5th February 2014, 13:47
  3. Rotation along the Y-axis
    By 2lights in forum Qt Programming
    Replies: 3
    Last Post: 16th August 2013, 08:37
  4. Replies: 9
    Last Post: 3rd May 2011, 22:21
  5. Replies: 0
    Last Post: 9th August 2010, 11:46

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.