What could be the best way to add floating information labels to a skydome like that Sample Tour | Marzipano
I mean that icons with an ‘i’ that open a text/image/whatever with pretty nice styling. I was thinking about using Bootstrap for the labels, text frames and so but I cannot imagine how to place it and move them with the camera rotation.
It could be for some small things but obviously a dedicaded library like bootstrap can make it even easier/better, please do not take this like an attack, I really love Babylon, but obviously you cannot be the best in everything!
Also since Babylon uses a canvas it cannot render regular html with nice css and so (or at least I cannot imagine how).
If you need that the “i” icons be transparent when they are behind something (which was the purpose of the thread), don’t do it as I did, copying the zbuffer is taxing to do each frame.
To sum it up, use two “i” icons, one normal and one with transparency on + depth test false. Both will be drawn on each other. Where parts of the normal icon are not drawn (because behind something), the same part of the transparent one will still be drawn because the depth test is disabled.
It is but you would never be able to hide them (or not easily) if the markers were behind a mesh for instance as they would not be part of the 3d rendering but only display on top of it