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. Need to port OGRE render window inside MDI Application
QtWS25 Last Chance

Need to port OGRE render window inside MDI Application

Scheduled Pinned Locked Moved Solved General and Desktop
9 Posts 4 Posters 2.4k 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.
  • aventaA Offline
    aventaA Offline
    aventa
    wrote on last edited by
    #1

    I'm building a multiple document interface application. Inside that I need to show a window which is contain render output from OGRE. Anybody done anything similar to this? I'm looking for suggestion and feasibility?
    Thank you.

    kshegunovK 1 Reply Last reply
    0
    • aventaA aventa

      I'm building a multiple document interface application. Inside that I need to show a window which is contain render output from OGRE. Anybody done anything similar to this? I'm looking for suggestion and feasibility?
      Thank you.

      kshegunovK Offline
      kshegunovK Offline
      kshegunov
      Moderators
      wrote on last edited by
      #2

      @aventa said in Need to port OGRE render window inside MDI Application:

      I'm building a multiple document interface application. Inside that I need to show a window which is contain render output from OGRE. Anybody done anything similar to this? I'm looking for suggestion and feasibility?

      I have about a year ago. Don't do it, it'll make you pull your hair out ... OGRE is notoriously badly designed API wise and on top of that fights with Qt for the event loop if you use the standard way of rendering. It's possible in principle, in practice ... not so much ...

      Read and abide by the Qt Code of Conduct

      1 Reply Last reply
      2
      • aventaA Offline
        aventaA Offline
        aventa
        wrote on last edited by
        #3

        @kshegunov I'm in a situation to render some motion captured data in real time. That's why I took ORGE but there are some requirement for other things like plotting and some other components. Qt is perfect for the rest for rendering part I have to bring some render engine. Do you have any suggestion for this than OGRE. Looking for some open source solution.

        kshegunovK 1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #4

          Hi! The first things I'd look at were the QMdiSubWindow Class documentation and this article on Integrating Ogre into Qt 5, which is mainly about using a QWindow. As QMdiSubWindow inherits from QWidget the article Embedding Ogre Into a Qt Application might be of great interest, too. Also note that there is QWidget::createWindowContainer, so if you'll find integrating OGRE into a QWidget much harder than integrating it into a QWindow then createWindowContainer() might provide a shortcut to initially get things to work.

          1 Reply Last reply
          1
          • aventaA aventa

            @kshegunov I'm in a situation to render some motion captured data in real time. That's why I took ORGE but there are some requirement for other things like plotting and some other components. Qt is perfect for the rest for rendering part I have to bring some render engine. Do you have any suggestion for this than OGRE. Looking for some open source solution.

            kshegunovK Offline
            kshegunovK Offline
            kshegunov
            Moderators
            wrote on last edited by kshegunov
            #5

            @aventa said in Need to port OGRE render window inside MDI Application:

            Do you have any suggestion for this than OGRE.

            Qt3D might be a consideration, but its docs are ... iffy ... to say the least ... I'm sure @Wieland could suggest some, I'm not much into 3D. I did the integration only as a proof-of-concept to evaluate the viability of OGRE for game development with Qt. I still have the repo on bitbucket and can put a license file and open it to the public (it's currently private) if that's of interest to you and you decide you want to go with OGRE; just let me know. I say, however, that the usual warnings apply - I give no guarantees whatsoever for that code, use at your own risk.

            @Wieland said in Need to port OGRE render window inside MDI Application:

            Integrating Ogre into Qt 5, which is mainly about using a QWindow. As QMdiSubWindow inherits from QWidget the article Embedding Ogre Into a Qt Application

            Well, that's only half the story ... as I said OGRE's API is badly designed, it's full of singletons and there's requirement to initialization order ... so you can imagine the mess ...

            Read and abide by the Qt Code of Conduct

            aventaA 1 Reply Last reply
            1
            • mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by mrjj
              #6

              Hi
              In case you keep ORGRE
              http://www.ogre3d.org/tikiwiki/tiki-index.php?page=Integrating+Ogre+into+QT5
              ( whoops as @Wieland already posted)

              Its hard to recommend other engines as its we dont know what you need from it.

              I have heard many good things about
              http://www.openscenegraph.org/
              http://bastian.rieck.ru/blog/posts/2014/qt_and_openscenegraph/

              There is also a plain opengl option
              http://doc.qt.io/qt-5/qopenglwidget.html#details

              Its also a common topic for all wanna be games developers
              https://www.reddit.com/r/gamedev/comments/1lhr2w/need_a_lightweight_3d_c_engine/

              So plenty to choose from but hard to recommend as it depends on your requirements for that part of the app :)

              1 Reply Last reply
              2
              • kshegunovK kshegunov

                @aventa said in Need to port OGRE render window inside MDI Application:

                Do you have any suggestion for this than OGRE.

                Qt3D might be a consideration, but its docs are ... iffy ... to say the least ... I'm sure @Wieland could suggest some, I'm not much into 3D. I did the integration only as a proof-of-concept to evaluate the viability of OGRE for game development with Qt. I still have the repo on bitbucket and can put a license file and open it to the public (it's currently private) if that's of interest to you and you decide you want to go with OGRE; just let me know. I say, however, that the usual warnings apply - I give no guarantees whatsoever for that code, use at your own risk.

                @Wieland said in Need to port OGRE render window inside MDI Application:

                Integrating Ogre into Qt 5, which is mainly about using a QWindow. As QMdiSubWindow inherits from QWidget the article Embedding Ogre Into a Qt Application

                Well, that's only half the story ... as I said OGRE's API is badly designed, it's full of singletons and there's requirement to initialization order ... so you can imagine the mess ...

                aventaA Offline
                aventaA Offline
                aventa
                wrote on last edited by aventa
                #7

                @Wieland @mrjj @kshegunov Thank you for the reply. I like to keep with the OGRE for now. I'm going to build a prototype for now. Let me try something basic. We have a concern about the performance also. Let's see.. I think integrating in the window container is enough suitable.

                kshegunovK 1 Reply Last reply
                2
                • aventaA aventa

                  @Wieland @mrjj @kshegunov Thank you for the reply. I like to keep with the OGRE for now. I'm going to build a prototype for now. Let me try something basic. We have a concern about the performance also. Let's see.. I think integrating in the window container is enough suitable.

                  kshegunovK Offline
                  kshegunovK Offline
                  kshegunov
                  Moderators
                  wrote on last edited by kshegunov
                  #8

                  Okay. Here you go a wrapper library and example project. I hope that helps.

                  Kind regards.

                  Read and abide by the Qt Code of Conduct

                  aventaA 1 Reply Last reply
                  3
                  • kshegunovK kshegunov

                    Okay. Here you go a wrapper library and example project. I hope that helps.

                    Kind regards.

                    aventaA Offline
                    aventaA Offline
                    aventa
                    wrote on last edited by
                    #9

                    @kshegunov Thank you. Kind Regards.

                    1 Reply Last reply
                    1

                    • Login

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