Hey, I'm trying to make a simple 3D Voxel game, as in Minecraft it should be "infinite". I've got some infinite Terrain generation allready, seperated into Chunks of 16x256x16 Blocks. My World generation works with Smooth Noise and looks good (So that's not the problem) but how do i add trees? i achieved to put them somewhere in the Chunk, the problem is how do i set them like in the corner of a chunk so that the leaves will also be in the chunks next to the tree?
That's how the Blocks of a Chunk gets saved.
public Data dat = new Data;
The Data.java just contains the Color of the block and is used for the collision detection with the player.
Those Small Trees inside of the chunk are good, but like when there should be bigger trees it would come to the problem that they don't fit in the Chunk. Any ideas?