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

Re-do the rendering mechanism #20

Open
ergor opened this issue Oct 7, 2021 · 0 comments
Open

Re-do the rendering mechanism #20

ergor opened this issue Oct 7, 2021 · 0 comments
Projects

Comments

@ergor
Copy link
Owner

ergor commented Oct 7, 2021

Currently the rendering works on a per source height map basis.
But it should be working on a per chunk basis.

I.e. now it takes a height map and figures out which chunks they will become. But it should be the reverse; it should take a chunk coordinate, and figure out what source height map it needs to read from as well as which points it needs to read.

The rendering should be able to render any 1 chunk, fully independently from other chunks.

It should work as follows:

  • The program shall take as input what real-world coordinate should be defined as in-game block coordinate (0, 0).
  • Given a chunk coordinate, the renderer should select the appropriate source height map, or height maps if the chunk overlaps multiple source height maps.

The chunk first approach is better suited for streaming live data, e.g. for use in a server plugin with live data loading.

@ergor ergor added this to To do in road to 1.0 Oct 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
road to 1.0
  
To do
Development

No branches or pull requests

1 participant