Qt 6.11 is out! See what's new in the release
blog
How to create Qt3DRender.QTexture1D from a Numpy array
-
Hi all,
I'm trying to create a
Qt3DRender.QTexture1Dfrom 1D Numpy array. My idea is to useQt3DRender.QTexture1Das a colormap in a shader. I tried to create a class that inherits fromQt3DRender.QAbstractTextureImagebut it was not possible, maybe because missing part in PySide6 wrapper [1]. I think the same is happening withQTexture2DandQTexture3D. My idea is to create volume rendering with QT3D, so I need to create aQTexture3Dto upload the 3D texture to the GPU andQTexture1Dfor 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