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

Mgv6: Add heightmap. Do not make large caves that are entirely above ground #2410

Closed
wants to merge 1 commit into from
Closed

Conversation

paramat
Copy link
Contributor

@paramat paramat commented Mar 1, 2015

Adds a heightmap to mgv6, which is needed by decorations if they are used in future in mgv6.
Mgv5 and mgv7 already have heightmaps, the heightmap is available for use in an 'on generated' function as the 'mapgen object heightmap'.
Checks startpoint and endpoint of large caves, if both are above ground aborts cave generation, if one is above and one below the cave passes through the surface and therefore is needed to shape terrain as currently.
Tested by flying around for 5 minutes, could not find a single shadow bug.
I also tested the code by making large caves formed from water nodes to confirm they are still often formed intersecting (and therefore shaping) the terrain surface, while also not being formed high above terrain as noticed before.
This may occasionally slightly change mgv6 terrain from how it has been before, but this will be very rare and i feel is justified by the bugfix.

@SmallJoker
Copy link
Member

It might be a dumb question but it is already accessible by Lua?

@paramat
Copy link
Contributor Author

paramat commented Mar 1, 2015

Heightmaps are accessible in lua, but mgv6 doesn't have one yet.

@ShadowNinja
Copy link
Member

773aa8c

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

Successfully merging this pull request may close these issues.

3 participants