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

Light fail after loading world #10

Open
AppPhil opened this issue Jul 4, 2016 · 2 comments
Open

Light fail after loading world #10

AppPhil opened this issue Jul 4, 2016 · 2 comments

Comments

@AppPhil
Copy link
Contributor

AppPhil commented Jul 4, 2016

This is how the world looked after creating it and destroying some blocks:
removed cause of old textures

This is how the world looked after loading the world again (after closing the application):
removed cause of old textures

@jmrapp1
Copy link
Owner

jmrapp1 commented Jul 4, 2016

Yes this is a known issue, I forgot to add it so thank you for reminding me. When a chunk is first generated it has to calculate the light values. The way that it does that is it goes to each row (left to right) calculating the highest tile in the chunk and then calculating the light value only downwards. Because those two tiles were the highest tiles in that row, it started the light value at its highest amount and then went downwards. It doesn't take into account the height of neighboring tiles which is what needs to be done.

@AppPhil
Copy link
Contributor Author

AppPhil commented Jul 9, 2016

In this video you can see more light fails after loading:
removed cause of old textures

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

2 participants