Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. How to create Qt3DRender.QTexture1D from a Numpy array

How to create Qt3DRender.QTexture1D from a Numpy array

Scheduled Pinned Locked Moved Unsolved Qt for Python
pyside
1 Posts 1 Posters 185 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    manuelo
    wrote on 19 Feb 2024, 21:28 last edited by
    #1

    Hi all,

    I'm trying to create a Qt3DRender.QTexture1D from 1D Numpy array. My idea is to use Qt3DRender.QTexture1D as a colormap in a shader. I tried to create a class that inherits from Qt3DRender.QAbstractTextureImage but it was not possible, maybe because missing part in PySide6 wrapper [1]. I think the same is happening with QTexture2D and QTexture3D. My idea is to create volume rendering with QT3D, so I need to create a QTexture3D to upload the 3D texture to the GPU and QTexture1D 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

    1 Reply Last reply
    0

    1/1

    19 Feb 2024, 21:28

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved