my application uses an ImageOverlay over a map in order to show a real-time image coming from a video source. For the most of the time things work well and I see the current image properly rendered over the map.
However, randomly, I get a strange behavior where the ImageOverlay node is draped "under" the map: I can see the image if I manipulate the camera to be under the mountains. In this cases I can see the ImageOverlay only if I place the camera at very high altitudes while, at lower altitudes
the near-most part of the ImageOverlay node is partially occluded by something (I don't known what it is), while the far-most one is still visible. Then, descreasing the camera distance will occlude the whole ImageOverlay node that is placed "under" the map.
I've not managed to create a simple code to replicate this problem since it happens randomly, also in consecutive runs of my application. Maybe there is something uninitialized...but I don't know what.
I've tried adding the ImageOverlay before and after the image layers of the MapNode...but the random behavior still happens.
Do you have any idea of what's wrong in the configuration of the ImageOverlay node that may cause that random behavior?
Hi Andrea. The ImageOverlay uses a projected texture to render on top of the terrain, so in theory it should not be possible for it to appear underneath. Anyway, some screenshots or a video or a code snippet might help explain what you are seeing.
Can you please post an earth file with an image overlay that demonstrates the issue?
Take a look at the annotation.earth example, wherein you will find an <imageoverlay> block showing how to make one. Thanks!