Closed stanislas-brossette closed 5 years ago
Hi,
you hit two points:
a known issue: Rendering transparent object uses a basic node ordering method. This is sufficient to ensure the order between transparent and non-transparent objects. However, undesired occlusion will happen between two transparent objects in a hard to predict way.
Rendering transparent objects is not reliable because GV does not use a depth peeling algorithm. To my best knowledge, it is the only reliable algo for that purpose but it consumes a lot more computing power.
a bug I was not aware of: the object rendering order is only modified by the setAlpha function and not by the setColor function...
Can you try to add a robot.viewer.gui.setFloatProperty("nodename", "Transparency", desiredAlpha)
?
The setFloatProperty method fixed the problem, thank you :)
In next version, "Transparency" will be replaced by "Alpha" to fix the incoherent behavior.
Hello, I'm using gepette-gui to visualize robot trajectories and physical quantities like CoM/CoP/DCM... The issue I'm facing is that when displaying a transparent robot and a sphere representing the CoP, that sphere disappears behind the transparent robot, while the floor is clearly visible behind the robot. Below is the core code that I use for displaying the scene. Am I missing something or is that a bug/shortcoming?