transparency of objects in 3D Space
in
Core Library Questions
•
2 months ago
Hello,
I have a problem with simple 3D Objects like 'box' or 'sphere' that I put into a 3D scene with either OPENGL or P3D enabled. When I use 'fill' to colorize the objects and add a value for transparency only some objects seeme to be able to be seen through transparent objects. others just completly disappear behing transparent objects.
I read somewhere that it has to do with the order in which the objects are drawn but I can´t find more info on this. When I add 'hint(DISABLE_DEPTH_TEST);' all objects become transparent but they are drawn in order they appear in the sketch and an object that is drawn last in the sketch but is acutally behind another object in 3D space as seen from the camera appears in front of everything else. How can I order the objects?
1