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. Looking for a 3D OpenGL example in qml
Forum Updated to NodeBB v4.3 + New Features

Looking for a 3D OpenGL example in qml

Scheduled Pinned Locked Moved QML and Qt Quick
7 Posts 5 Posters 2.0k Views 1 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.
  • S Offline
    S Offline
    sheepy
    wrote on last edited by
    #1

    Hello,
    for my next project I'm lokking for an similar example like the "Cube OpenGL ES 2.0 example" project for QT Quick (maybe a custom QQUickItem).

    I want to create a 3D-Space, where the user can rotate the camera around a object, like a cube (for example like this: !http://www.hcubesys.com/wp-content/uploads/2014/03/4698-colored-cubes-1920x1080-3d-wallpaper.jpg(cube)!)

    Can I realize this with a QQuickItem?

    thank you

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dasRicardo
      wrote on last edited by
      #2

      A simple search in this forum and you get "this ":http://qt-project.org/forums/viewthread/47187 or with google "this":http://doc.qt.io/qt-5/qtquick-scenegraph-openglunderqml-example.html or "this":http://doc.qt.digia.com/qt-quick3d-snapshot/qml-item3d.html. There are a lot of possible ways to do what you want depends on your needs

      **Sorry for my english :)

      PLEASE ADD [SOLVED] TO YOUR THREAD TITLE IF IT'S SOLVED.**

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sgrahovac
        wrote on last edited by
        #3

        I also struggled with perspective based OpenGL using QML as it seems like there is almost no examples availables.

        Here is a link to a thread I started with a similar question:

        http://qt-project.org/forums/viewthread/47187/#193920

        In this thread, I was able to rotate a simple square using a perspective projection.

        There is a Qt3d project that has been underway to include in the standard Qt5 since the beginning for Qt5 development but not released yet. Perhaps they will finally release it for Qt 5.5.

        1 Reply Last reply
        0
        • Z Offline
          Z Offline
          ZapB
          wrote on last edited by
          #4

          Render your OpenGL scene into a framebuffer object and use that to implement a custom Qt Quick 2 item. See the QQuickFramebufferObject documentation and linked examples.

          Qt3D will provide a simple QML wrapper around OpenGL. It is already usable for your needs but you do need to build it from git at present.

          Nokia Certified Qt Specialist
          Interested in hearing about Qt related work

          1 Reply Last reply
          0
          • J Offline
            J Offline
            jiangcaiyang
            wrote on last edited by
            #5

            Here my approach towards Qt Quick and OpenGL.
            It's simple but indicative.
            http://blog.csdn.net/gamesdev/article/details/38024327

            1 Reply Last reply
            0
            • Z Offline
              Z Offline
              ZapB
              wrote on last edited by
              #6

              Yup that's another valid approach. Many ways to skin the same cat :)

              Nokia Certified Qt Specialist
              Interested in hearing about Qt related work

              1 Reply Last reply
              0
              • D Offline
                D Offline
                dasRicardo
                wrote on last edited by
                #7

                So please add [SOLVED] to your thread title if the problem is solved so other forum members can quickly see if this thread helped or not.

                **Sorry for my english :)

                PLEASE ADD [SOLVED] TO YOUR THREAD TITLE IF IT'S SOLVED.**

                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