Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. Custom QSGGeometryNode Scene blending issue
Forum Updated to NodeBB v4.3 + New Features

Custom QSGGeometryNode Scene blending issue

Scheduled Pinned Locked Moved Unsolved Game Development
1 Posts 1 Posters 591 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.
  • C Offline
    C Offline
    che1404
    wrote on last edited by
    #1

    Hi all!
    We have a custom QQuickItem which in turn creates a custom QSGGeometryNode. We reimplement the QSGGeometryNode's preprocess() method in order to draw our scene to a FrameBufferObject with a texture attached. This OpenGL texture ID is shared with the QSGGeometryNode's material. This way, we can render our custom OpenGL scene into a QML item. So far, so good.

    However, we want to use alpha blending on some parts of our scene, in order to let the user see the QML items behind our custom item. Something similar to what Item::opacity value is doing, but only for a specific area of our Item. It's like having a hole inside our Item that allows the user to see what's behind.

    I've been trying to find out what Qt is doing in order to change the opacity of a QML item, with no luck.

    Any idea on how can we achieve this effect, with our Item/Node configuration?
    Thanks in advance,
    Robert.

    1 Reply Last reply
    0

    • Login

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