Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.8.0
-
None
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.