Issue with multiple 32bit float geotiff layers and transparency #2002
Unanswered
mikebrose
asked this question in
Support Q&A
Replies: 1 comment
-
Can you reproduce this with a simple earth file that your post? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I realize that osgearth does not provide full support for 32bit float images.
I have two image layers using driver="gdal".
Both layers are 32bit float geotiffs with data only in the red channel.
I have an upper layer that is elevated to an altitude via vertex shader in the .earth file.
I also have a 32bit float ground geotiff.
My problem:
If I explicity set the upper layer's alpha value via frag shader in the .earth file to a value like .5, I cannot view the ground geotiff through it.
If I also include a ready map visual imagery layer:
http://readymap.org/readymap/tiles/1.0.0/7/ driver="tms"
This is viewable through the upper geotiff.
Why is the upper layer geotiff completely obscuring the ground geotiff even with alpha .5, but appropriately blending with the readymap visual imagery.
In the attached screenshot, the perspective is down towards the earth and slightly angled to the left, peeking around the right edge of the upper layer. The upper layer is farthest left, semi transparent, and elevated. The ground geotiff is darker red and black, in the middle, and the readymap visual imagery is everywhere else. This screenshot shows the upper layer obscuring the ground geotiff, but not the readymap.
Appreciate any advice or thoughts on this. I can paste the shader if I need to. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions