2017-01-24

Hello,

I have a portable C++ Qt application that does some openGl rendering in a main window. The rendering is currently still plain old OpenGL (not even with shaders), and I feel I need to move one level up by using a third-party library.

I was first thinking about Ogre, but this is heavy, and will need to be updated on a regular basis.

Then I discovered three.js and I am very pleased by the simplicity of everything. The only drawback for me is that it is javascript, but I can handle this.

My question is following:

I imagine using a webbrowser Qt widget as my main window content, so that I can do the display in there via three.js and javascript. The javascript code will read the render data from my C++ application. Is this feasable? And if yes, what kind of interface will I have to use between my C++ code and the javascript code, for fast data transfer and update?

Thanks

Show more