Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementing Dynamic Range Adjustment using WebGLTileLayer? Need advice and feedback #15678

Open
BeGj opened this issue Mar 27, 2024 · 0 comments

Comments

@BeGj
Copy link

BeGj commented Mar 27, 2024

For some use cases it is necessary to support Dynamic Range Adjustments on pixels on a WebGLTileLayer and GeoTIFFSource. Sometimes automatically recalculating it on every mapMoved event.

Currently as I know, it is only possible by doing calulations using WebGLTileLayer's getData(pixel) method on every extent change. And then updating styleVariables. I believe the first part of this is highly inefficient, so my question is:

  • Is there a better method implemented that is possible to use? Or is it something we can improve or develop on OpenLayers?
  • Do we need to create a custom shader? If so, how do we integrate it, do we need a custom WebGLTileLayer?
  • Is it possible and would it be more efficient to do a single getDataInExtent(extent) for every extent change?v
  • And how do we get to implementing a webgl shader doing everything outside of js? Is it viable?
  • Is it already possible to implement it in a style without updateStyleVariables from the outside?

Advice greatly appreciated.

@BeGj BeGj changed the title How to do ADRA on WebGLTileLayer + GeoTIFFSource (Automatic Dynamic Range Adjustment) GeoTIFFSource Mar 27, 2024
@BeGj BeGj changed the title GeoTIFFSource Implementing (A)DRA (Auto Dynamic Range Adjustment) using WebGLTileLayer? Mar 27, 2024
@BeGj BeGj changed the title Implementing (A)DRA (Auto Dynamic Range Adjustment) using WebGLTileLayer? Implementing (A)DRA (Dynamic Range Adjustment) using WebGLTileLayer? Mar 27, 2024
@BeGj BeGj changed the title Implementing (A)DRA (Dynamic Range Adjustment) using WebGLTileLayer? Implementing Dynamic Range Adjustment using WebGLTileLayer? Need advice and feedback Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant