harfang3d / tutorials-cpp-hg2

Tutorials for Harfang C++
5 stars 1 forks source link

Is it possible to use harfang3d with external frameworks such as pyqt6/pyside6? #2

Open brupelo opened 1 year ago

brupelo commented 1 year ago

Hi,

First of all, pretty amazing project! I was wondering, would it be possible to use harfang3d python bindings on a pyqt6 or pyside6 widgets and interact with qt events (mouse, keyboard, ...) ?

Also, what about using it on top of pyopengl/glut/freeglut ? Would it be doable?

Thanks!

astrofra commented 1 year ago

Hi ! Thank you for the nice comments. What you are asking is more related to Harfang itself than the C++ tutorials of this very repository :) I just enabled the "discussions" area, so I suggest we can elaborate these different topics here : https://github.com/harfang3d/harfang3d/discussions

About your questions :

Q: use harfang3d python bindings on pyqt6 or pyside6 ? You may of course use Both PyQt and Harfang in the same project and have them run along side, but I understand you want to have a 3D render by Harfang within a Qt window ? A: For this, we need to allow Harfang (and so BGFX) to work in a framebuffer provided by Qt. Could you please post an issue here and/or pursue this discussion here?

Q: what about using it on top of pyopengl/glut/freeglut ? A: What would be the typical use case? The question that comes to mind here is that Harfang can work in DX, Vulkan or GL, so I guess there would be some limitations when having an interop with PyOpengl. Again, feel free to answer here!