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