Vertical Chunk Generation

Moros
New member
 
Posts: 4
Joined: Sun Jun 05, 2011 19:54

Vertical Chunk Generation

by Moros » Tue Jun 07, 2011 04:05

First off, I'd like to thank celeron55 and everyone else who has worked on minetest. It's a great game so far, and you've all made some great progress. I'm not trying to point out bugs to be annoying - I'm trying to point out bugs because I, unlike the developer of a certain other game, care about bug testing and stability :p Also, forgive me if I misinterpret how some of the code works - I've only just started reading the code.

Anyway, on to the main event:

I noticed that as a chunk is generated it creates trees and grows grass on the mud. celeron55 may already be aware, but as the chunks are generated the blocks at the top of the chunk do not seem to account for what will be generated (or not generated) above them. For example, mud blocks at the top of a chunk (call it chunk1) that receive light will be converted into grass. However, when a chunk is created on top of chunk1 there may be more mud/grass blocks placed on top of the grass blocks in chunk1. This problem can create grass blocks that are 'buried' under other blocks, and I'm assuming that was not the intent.

Similarly, trees in chunk1 that would have leaves extending into the chunk above it end up looking like they hit an invisible ceiling once the chunk above chunk1 is generated. Even though the blocks above the trees/leaves are air, the trees/leaves stop 'growing' once they hit the vertical chunk barrier.
 

Moros
New member
 
Posts: 4
Joined: Sun Jun 05, 2011 19:54

by Moros » Tue Jun 07, 2011 19:34

After looking through the code a bit more, I found one of celeron55's comments:

"TODO: Add a not_fully_generated flag to MapBlock, which would be set for
blocks that contain eg. trees from neighboring generations but haven't
been generated itself. This is required for the future generator."

So it looks like celeron55 is aware of problems such as this and has some plans for fixing them.
 


Return to Problems



Who is online

Users browsing this forum: Krock and 2 guests