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?
Thank you.@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 ...
-
@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.
-
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
. AsQMdiSubWindow
inherits fromQWidget
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 aQWidget
much harder than integrating it into aQWindow
thencreateWindowContainer()
might provide a shortcut to initially get things to work. -
@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.
@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 ...
-
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#detailsIts 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 :)
-
@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 ...
@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.
-
@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.
Okay. Here you go a wrapper library and example project. I hope that helps.
Kind regards.
-
Okay. Here you go a wrapper library and example project. I hope that helps.
Kind regards.
@kshegunov Thank you. Kind Regards.