Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. OpenGL Under QML - depth issue
Forum Updated to NodeBB v4.3 + New Features

OpenGL Under QML - depth issue

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 173 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.
  • J Offline
    J Offline
    Jhalter2
    wrote on last edited by
    #1

    I'm using OpenGL to render a scene underneath my QML UI. I've attached my C++ render() call to my QQuickWindow::beforeRenderPassRecording() call to make sure it renders underneath the UI.

    I'm rendering models underneath my UI and noticed that when zooming in close to a model, it begins to be rendered over the UI. I've been trying to solve this by disabling depth both through my OpenGL commands and through the SceneEnvironment QML type in my QML code, but neither are affecting the depth testing. All of my OpenGL render commands are being recorded between my window's beginExternalCommands() and endExternalCommands() calls.

    Is there a way for me to completely disable depth testing for the QML UI and my OpenGL render while rendering with OpenGL?

    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