Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. SceneGraph for Qt3D in C++

SceneGraph for Qt3D in C++

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 3.1k 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.
  • F Offline
    F Offline
    fireking
    wrote on last edited by
    #1

    I want to make a scenegraph with 3D primitive objects in C++ and OpenGL. I'm new to Qt, can I use QGLAbstractScene and programatically add a bunch of object on the fly to QGLSceneNode. I can't find any examples of 3D C++ scenegraphs in Qt anywhere.

    I'm confused by the documentation which covers 2D Scenegraphs and Qt Quick Scenegraphs, but I don't want to use QML and I don't want to just do 2D graphics.

    If I can avoid another learning curve with Open Scenegraph, that would also help!

    Thanks,
    Fireking.

    1 Reply Last reply
    0
    • B Offline
      B Offline
      belab
      wrote on last edited by
      #2

      How about this:
      http://doc-snapshot.qt-project.org/qt3d-1.0/qt3d-examples.html

      1 Reply Last reply
      0
      • F Offline
        F Offline
        fireking
        wrote on last edited by
        #3

        Thanks,
        I looked at them, no scenegraphs used.

        However, just looking at Qt Creator 'Boxes' example and it uses a scene derived from QGraphicsScene and is happily rendering a 3D scene. The online Docs for QGraphicsScene only mention 2D graphics...

        Fireking.

        1 Reply Last reply
        0
        • F Offline
          F Offline
          fireking
          wrote on last edited by
          #4

          Compiled Qt3D and have it working in my projects. Now I can use QGLSceneNode and QGLBuilder happily in my projects and build my scene.

          Problem I have now on the Mac - the viewport within the main Window is only using the bottom left quarter of the whole main window. How do I make the viewport use the whole window?

          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