How to create Qt3DRender.QTexture1D from a Numpy array
Unsolved
Qt for Python
-
Hi all,
I'm trying to create a
Qt3DRender.QTexture1D
from 1D Numpy array. My idea is to useQt3DRender.QTexture1D
as a colormap in a shader. I tried to create a class that inherits fromQt3DRender.QAbstractTextureImage
but it was not possible, maybe because missing part in PySide6 wrapper [1]. I think the same is happening withQTexture2D
andQTexture3D
. My idea is to create volume rendering with QT3D, so I need to create aQTexture3D
to upload the 3D texture to the GPU andQTexture1D
for the colormap.Is there other way to create a QTexture1D from Numpy array?
[1] - I created a bug report to this here https://bugreports.qt.io/browse/PYSIDE-2610