-
Notifications
You must be signed in to change notification settings - Fork 55
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
Glitched Trees #139
Comments
As you can see the lighting is messed up too, proof that it wasn't just me faking this lol |
I wonder (and it's just a guess) if the tree was generated on the edge of a chunk. That might cause it to only show part of the tree. |
yeah, I think it would be bc its on the edge of the chunk, or its the
lighting features
…On Thu, Oct 31, 2024 at 9:28 PM Eli ***@***.***> wrote:
I wonder (and it's just a guess) if the tree was generated on the edge of
a chunk. That might cause it to only show part of the tree.
—
Reply to this email directly, view it on GitHub
<#139 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AVZB7KR52E3I3MFURQ2LYUDZ6LKNBAVCNFSM6AAAAABQ226QKWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJRGEZDGOBTHA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Yeah, I knew about this before I even released the update that caused it. It was just too annoying to fix, so I put it off for later. It's caused by generating chunks, then moving away, which deletes the farthest chunks from memory, then moving back. The tree trunks stay in loaded chunks, while the leaves are in a deleted chunk. So when the deleted chunk get regenerated, the tree doesn't get regrown (since the tree's chunk wasn't deleted), so it doesn't generate the leaves back. The bug only applies to trees and the little puddles that spawn in places, and possibly caves that touch the border of a chunk without crossing it. |
@Willard21 Oh neat! Thanks for explaining that, it's cool to know the nerd knowledge behind how it works :) |
Recommended fix would be that when a chunk edits neighboring chunks during its generation, it stores those edits internally. Then when the neighboring chunk generates, it asks its 8 neighbors what edits they made to it. Lighting would work similarly, but without storing anything extra; when a chunk generates, it checks for brighter lights at the edge of the neighboring chunk. A major advantage of this is that it would allow chunks to be generated completely independently of each other. That would allow multithreading more of the chunk generation process, and it would also make it so only 2 unrendered layers of chunks would need to exist outside the render distance. Currently there's 4 unrendered layers, which at max render distance is 1104 invisible chunks. With only 2 layers, it would only be 536 invisible chunks. The savings should offset the memory cost of storing the extra data. So the new world gen order would be:
Steps 1-5 are stage 1. |
Occasionally after I've been playing on a world for a decent amount of time, I'll randomly come across a tree that is missing all its leaves on one side. If I save the world and re-enter, the leaves re-appear, this isn't a game breaking bug or anything, its just kinda annoying lol.
Photo:
The text was updated successfully, but these errors were encountered: