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

Render2d not working on rectangular selection #14

Open
arthurpdesimone opened this issue Aug 29, 2021 · 1 comment
Open

Render2d not working on rectangular selection #14

arthurpdesimone opened this issue Aug 29, 2021 · 1 comment

Comments

@arthurpdesimone
Copy link

Hello, I'm struggling to find out how to make a working rectangular selection using QPanda3D, the library is great and I don't wanna abandon my project. Any thoughts would be great
Panda topic

@ParisNeo
Copy link
Owner

Hi and sorry for being so late. I am very buzzy these days.
So QPanda3D is a simple wrapper to Panda3D meant to make it possible to put QPanda3D stuff inside a pyqt5.

Technically, any thing possible with Panda3D, should be possible with QPanda3D. I didn't really think about rectangular selection, but I am sure that someone has done this using panda3d.

It possible that the fact that QPanda3D renders an image using panda3d then sends it to pyQT to be displayed on a QPanda3DWidget widget and overrides pyqt mouse down/move and release methods by sending messages to Panda3D may have included an offset somehow.

So I have upgraded the code so that the PyQt part sends the actual position of the mouse as well as the wheel delta to the Panda3D as event parameters. Please read the new readme. I added a section about this and an example.

I hope this could help you and others.

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