Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2902

QTexture3D depth no respected

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 6.8.0.1
    • PySide
    • None
    • Python 3.12 (PySide6 and Numpy installed)
      Linux Fedora 41
      Gnome (Wayland)
      NVIDIA GeForce RTX 4070 (proprietary driver installed working well).
    • 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

            crmaurei Cristian Maureira-Fredes
            manuelo Thiago Moraes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes