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

Feature: Data shader + web tooltip and/or map overlays #14

Open
dvdmandt opened this issue Jul 16, 2024 · 0 comments
Open

Feature: Data shader + web tooltip and/or map overlays #14

dvdmandt opened this issue Jul 16, 2024 · 0 comments

Comments

@dvdmandt
Copy link
Collaborator

I want to add a shader that can encode various data into RGB colors. Such values could be biome id, max block height, max block height (3 layers of 'ground' blocks) and GT pollution (logarithmically or exponentially scaled). The idea would be to load this map in the background without rendering it, and sample pixels from it which can be decoded client side to create a nice tooltip, and perhaps some form of map overlay.

The biome data would be combined with a new JSON containing biome data like name, humidity and temperature. Those values could initially be shown in a WAILA style tooltip on mouse move, but it should also be possible to create an overlay for a regular textured terrain map (the classic 'flat' map) to show biome "borders" and a translucent overlay for example.

Creating the data shader itself should be fairly trivial, creating the client components could definitely use help from someone more familiar with JavaScript and/or Leaflet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant