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

How to understand the meaning of water mask 256 * 256 #80

Open
libofei2004 opened this issue Nov 14, 2018 · 0 comments
Open

How to understand the meaning of water mask 256 * 256 #80

libofei2004 opened this issue Nov 14, 2018 · 0 comments

Comments

@libofei2004
Copy link

The description of water mask in heightmap-1.0 terrain format is as follows:
"The child bit mask is followed by the water mask. The water mask is either 1 byte, in the case that the tile is all land or all water, or it is 256 * 256 * 1 = 65536 bytes if the tile has a mix of land and water. Each mask value is 0 for land and 255 for water. Values between 0 and 255 are allowed as well (but not currently present in the data) in order to support anti-aliasing of the coastline."
How to understand " it is 256 * 256 * 1 = 65536 bytes", The tiles of heightmap are 65x65 vertices and overlap their neighbors at their edges. how can i set 256 * 256 water bytes in a 65x65 tile?

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