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. Draw lines with shader program using the new Rendering Hardware Interface
Forum Updated to NodeBB v4.3 + New Features

Draw lines with shader program using the new Rendering Hardware Interface

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 418 Views 2 Watching
  • 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.
  • T Offline
    T Offline
    Thinium
    wrote on 26 Jun 2020, 14:28 last edited by Thinium
    #1

    Hi!

    In Qt5.14 there is the Rendering Hardware interface (Rhi) for .QtQuick.

    I would like to use Rhi to draw lines with a Shader program similar to what's shown in this OpenGL example:
    https://doc.qt.io/qt-5/qtgui-openglwindow-example.html
    In the example, each vertices has its own color and it uses glDrawArrays(GL_TRIANGLES, 0, 3) to draw those vertices (surely Rhi has a generic function other than calling an OpenGL function).

    I've been looking around and was unable to navigate an example or a starting point. Does anyone know where to look into to learn to achieve the above example using Rhi?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 26 Jun 2020, 14:40 last edited by
      #2

      Hi,

      This blog page provide some links to a demo project. It might be what you are looking for.

      Hope it helps

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      1/2

      26 Jun 2020, 14:28

      • Login

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