Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-130711

QTexture3D depth no respected

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.8.0
    • Qt3D
    • None
    • Linux/Wayland, Linux/X11, macOS

    Description

      I'm trying to use QTexture3D on PySide6. I'm creating a simple numpy uint16 array. I created a QTextureImageDataGenerator and QAbstractTextureImage subclasses to upload the numpy  array as a texture. I configured the QTextureImageData as Target3D, R16_UNorm, Uint16 and Red. And also set width, height and depth based on numpy array shape. I created sphere shape with the texture coordinates (UVW). When I run the code I see just some part of mesh is being textured. I used renderdoc to understand what is happening and I saw that the texture has size 100x100x1 (I image above, I highlighted with green this info)  but it should have 100x100x100. I connected to the QTexture3D.statusChanged and I see there is a error but I can't see the error. So something is happening and not uploading the whole texture. I uploaded here a sample code. Unfortunately the code is big because is necessary to create and subclass a lot of classes. Thanks.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            seanharmer Sean Harmer
            manuelo Thiago Moraes
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes