Dark image in egui app #323
-
|
When rendering tiles in egui app I see that images are darker than they are. It looks nice with OSM but too dark when rendering satellite maps. I checked cached tiles and they are not shadowed. Web-example also has the same problem. I tried I could not find any settings that are responsible for brightness. Is it possible to somehow show original tile without shadowing? Original tile https://www.openstreetmap.org/#map=8/37.165/126.623:
Rendered by https://maximkaaa.github.io/galileo/web_examples/raster_tiles/
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
|
I found out that replacing this line with: format: TextureFormat::Rgba8Unorm,fixes the problem. |
Beta Was this translation helpful? Give feedback.
-
|
Yeah, this was not done intentionally. I actually wondered myself, why OSM looks like that, but I assumed they changed styling for better contrast or something. Turns out it was just my mistake. I've fixed it in #324 . Thank for noting this. |
Beta Was this translation helpful? Give feedback.


I missed a couple of places, where srgb was set, that's why rendering to file worked wrong. Fixed again. As to weather we should provide an option for this. This might be worth it, but needs some research and consideration. First, I don't think any of tile services encode tiles as srgb, that would be a little unexpected. But if there are such services, we definitely can add an option to the tile layer. For the output format, it might be an option of the renderer. But probably it would be easier to just use
new_with_device_and_surfacemethod if customizations of the target surface are needed. By default we want Galileo to render layers exactly the same way as they are rendered natively. So…