0 votes

Hi all,

I am currently writing a HexMap based on multiple Chunks.
I generate one Chunk by Script with the use of an ArrayMesh.

Generating one Chunk works fine so far. However I now wanted to generate multiple Chunks next to each other. This seemed fine in the first moment but on further inspection I noticed Gaps on the y Axis between the chunks.
On a border between two chunks, the right one and the bottom one are slightly lower than the upper or left one. This is the same for all chunks, like they are slightly rotated.

Now I checked everything multiple times:
- There is no rotation applied to any of the Chunks or its parents.
- All the vertices of the Mesh have their y Coordinate set to 0 (I even double checked this, by setting the VERTEX.y to 0 in the Shader.

Example here:
https://postimg.cc/WDLwSg3w
I added the blue lines to highlight chunk borders.
Sideview:
https://postimg.cc/8FdkrQ9m

Code to generate one Chunk here:
https://pastebin.com/vjTpuXY4
This is just prototyping code. Code Quality is not too good, but I think it should be quite easy to understand.

I tested around a lot with different Chunk Sizes and so on, but it was always the same.

Does anyone know where this is coming from and/or what I can do to solve this?
Thanks for your help.

Kind regards
KingEldarion

Godot version 3.4.stable.mono
in Engine by (12 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.