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

Visualization: Improve water / ocean tile rendering #12

Open
Flokey82 opened this issue Mar 5, 2023 · 1 comment
Open

Visualization: Improve water / ocean tile rendering #12

Flokey82 opened this issue Mar 5, 2023 · 1 comment

Comments

@Flokey82
Copy link
Owner

Flokey82 commented Mar 5, 2023

Right now we divide every triangle into 3 equally sized shards that are shaded based on the elevation and biome of the region which form the 3 corners of the triangle.

This can mean that the water portion extends to a location on a triangle that is, de-facto, above sea level, which causes issues when mapping the rendered tile on the 3d mesh (heightmap).

We need to improve the way the triangle is divided and rendered to ensure that we only render ocean up to sea level and not any further.

@Flokey82
Copy link
Owner Author

Flokey82 commented Mar 5, 2023

Rendering is now improved for rendered tiles when shadows are enabled.

TODO:

  • River intercepts at below sea level
  • Normal terrain map and SVG export improvements

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