QT3D how to handle this situation that regardless if it is behind another object, the last object will always be drawn on top
-
@jimfar said in QT3D how to handle this situation that regardless if it is behind another object, the last object will always be drawn on top:
regardless if it is behind another object, the last object will always be drawn on top
I cannot make any sense of this: if an object in a 3D scene is behind another object, why would it have to be rendered as it were in front? If you want to have the object behind in the front, then you need to rotate your view to put it in front (from the new point of view)
-
Sounds like you might be running into the same issue here https://forum.qt.io/topic/83435/qt3d-problem-with-transparent-object
What sort of material are you using? If Qt3D thinks it could be transparent (even if Alpha is actually 1.0 everywhere) then it may be drawn without using the Z buffer.