Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
brupelo opened this issue Oct 29, 2022 · 1 comment

Comments

@brupelo
Copy link

brupelo commented Oct 29, 2022

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
Copy link
Contributor

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants