NOTE: the following issue is related to the QPanda3D module and I already posted it as an issue on the corresponding github repo:
However, I feel there must be something very basic related Panda3D that I am doing wrong. Thus I thought it might be of interest to the main Panda3D discourse as well.
The issue is this:
I want to use PyQt5 for the GUI instead of DirectGUI. I found that most threads on the topic are rather outdated. The most thoroughly discussed and most recent thread I found was the following:
However, no conclusion was found to have the Panda3D window not appear in addition to Qt’s GL window which panda renders into. Thus I looked further and found the aforementioned QPanda3D module on github and pypy.
Unfortunately, when integrating QPanda3D into my game, I found that some objects were not appearing at all in the scene, or that they would not occlude each other as expected, i.e. an object that should be in front of another object gets rendered as if it were behind it.
I wrote an MWE that showcases the behaviour in both settings:
- Panda3D + PyQt5 (wrong occlusion)
- Panda3D + DirectGUI (correct occlusion)
You can find the MWE here: Objects don't occlude each other as expected · Issue #4 · ParisNeo/QPanda3D · GitHub
I’d really appreciate any pointers as to what might be going wrong in the PyQt5 setting that causes this strange rendering behaviour.