Pretty sure lime glass shows how far the current best tree can see and yellow is supposed to show how far each tree can see but replacing tons of blocks takes a while to render in minecraft and it switches to the next one even if previous one hasn't rendered. (Seems like OP didn't want/think of making the code run slower and then speeding up the video to this speed afterwards)
Yup, the lime glass shows the current best tree visibility. The yellow is the best per row. It took around 4 minutes in real time to render the visualization to show the best per row and best overall and I didn't wanna spend the time waiting for all 98x98 positions to be shown one by one :P
Is it guaranteed that one of the visible trees in part 1 will be the solution in part 2? I'm not sure that it is but it looks like you're not checking every tree here?
Minecraft block updates don't display immediately, the visualization needs to wait after changing blocks to properly display. In order to save time on the visualization, I only update the blocks for the maximum viewing distance for each row. In reality every tree is getting checked, but the visualization only displays the total max and the max for each row.
21
u/benjymous Dec 08 '22
Ahh, lovely - was wondering if anyone would do a minecraft vis.
Now make it use actual logs and foliage :)
6
u/dotdioscorea Dec 08 '22
Looks good - whats the significance of the trees being checked during the yellow boxes popping up? how did you get away without checking all trees?
3
u/supergnaw Dec 08 '22
This is awesome. World download by chance? Lol
1
u/okawei Dec 08 '22
Is it guaranteed that one of the visible trees in part 1 will be the solution in part 2? I'm not sure that it is but it looks like you're not checking every tree here?
3
u/drlecompte Dec 08 '22
I knew there'd be some awesome visualisations today!