Ogre Version: latest
Operating System: macOS 10.15.5
Render System: OpenGL 3+
I have transparent contents inside transparent containers. Each of the contents are implemented as a Mesh/Entity, separate from the container's Mesh/Entity, but on the same SceneNode. Sometimes when I run the program the contents appear very transparent and other times very opaque:
As I understand, when multiple transparent objects are drawn, they need to be sorted by depth, and Ogre automatically does this. I thought the issue might have something to do with that but I noticed a couple peculiarities:
- The transparency/opacity does not change with camera angle or distance. It stays the same for the duration of the program execution.
- The beer in the two glasses are always the same as each other, either both very transparent or both very opaque.
- There are also six beer bottles in a crate. The beer in the six bottles are always the same as each other, but not always the same as the beer in the drinking glasses.
This makes me think that the artifact has to do with the materials (3 of them) rather than the objects (2+2+6+6 of them).
Any ideas? I wanted to try stepping through the depth-sorting code but couldn't even find it.
(I made sure nobody is drinking or diluting the beer!)




