Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.14.2, 5.15.2, 6.1.0
-
None
Description
QPickingSettings are set on the QRenderSettings which can occur only once according to the documentation. Picking settings should be settable for each QObjectPicker individually.
I'm currently implementing 3D gizmo to control rotation and translation of objects. The transform handles are drawn on top of the actual scene. Now, when parts of the handles are actually behind an object, QObjectPicker doesn't pick it, even though it's visible. Setting the pickResultMode works in allowing to pick "hidden" handles, but now this also applies to objects which I don't want to be able to pick, since they are behind other objects.
So, I would need one picking settings for the gizmo, and another for the actual objects.
Note: All versions since the introduction of the new Qt3D are affected.
Edit: I realized that the same applies for `QRayCaster` because you can only set globally whether to perform e.g. line, point or triangle picking but maybe you need different modes.