
[ad_1]
I’m making an attempt to wrap my head round making use of voxel daylight propagation to a map with infinite top. My preliminary Idea was to have a height-map representing the very best block on the map, That means, I needn’t load any chunks to examine for daylight with generated terrain. But there are some points. Like updating terrain’s daylight via unloaded chunks:
. – Air, % – Not generated chunks # – Generated Terrain, 1 – Player One, 2 – Player Two
………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………..1………………………………………………….##############################………………………………………………………………..##############################################################………………………………………………………………..########################
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%………………………………………………………………………………………………………………………………………………………………………………….##########…………############……………………………………….2………..#######################…..#.#……………….##########################################################################################
If Player One is digging a gap via a ground hundreds of blocks up from Player Two, Then there will be inconsistencies.
How ought to I’m going about this?
I’m not asking for code. I simply need to know the way to do that correctly.
Here is how the sunshine part of the server works:
Is the terrain modified? If so, Than run the daylight algorithim.
Sunlight algorithim:
Is topmost loaded chunk occluded? If so, Than do not gentle the block.
Otherwise, Light the block.
[ad_2]