Uploaded image for project: 'Qt 3D Studio'
  1. Qt 3D Studio
  2. QT3DS-3552

Depth not working properly when using custom materials

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • Qt 3D Studio 2.3
    • Editor Application
    • None
    • Windows

    Description

      When a mesh is passing an adjacent or intersecting mesh the order seems to change. 

      Observed:

      • The point of flipping seems to be affected by the camera angle.
        • camera angle close to 0°: Order flips at the middle of the passing object. (like on the screenshots)
        • camera angle close to, but below 45°: Order flips immediately.
      • The issue disappears per axis when using a camera angle > 45°. 

      The provided project has 5 cameras with different angles to make the issue more clear.

       

      On the screenshots:

      • Left side: QT build in material
      • Right side: custom shader (just setting fragOutput to color property, nothing fancy)

      Attachments

        1. depthIssue_01.png
          26 kB
          Peter Michaelsen
        2. depthIssue_02.png
          26 kB
          Peter Michaelsen
        3. depthIssue_03.png
          26 kB
          Peter Michaelsen
        4. depthIssue_04.png
          25 kB
          Peter Michaelsen
        5. depthIssue_05.png
          25 kB
          Peter Michaelsen
        6. QT3D_Sandbox.zip
          47 kB
          Peter Michaelsen
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            tuliniemi Jere Tuliniemi
            petermichaelsen Peter Michaelsen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes