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. Drawing Qt3D objects in the right order depending on current camera view
Qt 6.11 is out! See what's new in the release blog

Drawing Qt3D objects in the right order depending on current camera view

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

    Hello,

    I have a small Qt3D view with a button on the side that will draw some Cuboids when pressed. What I have noticed is that if I rotate my camera view and re-draw them, then the surfaces will not go through a depth test and will usually be drawn in the wrong order. An example can be shown here:

    This View looked from the top:

    https://www.dropbox.com/s/xqc50u9w7c71q8a/Workspaces_issue_1.jpg?dl=0

    Seen from the side (and even if the polygons are generated while looking from the side) is shown like this

    https://www.dropbox.com/s/r24cn4vwopz5w0c/Workspaces_issue_2.jpg?dl=0

    Which is wrong since the shape on the right should be shown first.

    I have tried fooling around with the class QDepthTest but with no luck. Any suggestions or tips ? Thanks in advance.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      chris2401
      wrote on last edited by
      #2

      No hints ? :)

      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