variety in voxel landscape?

i am currently working on a game, and instead of using terrains i chose to use a more minecraft-ish approach. my world is right now built up form cubes, which gives the user alot of flexibility, since they can build stuff etc. however it also comes with problems: i dont want that completely blocky style.
so is there a way to make a block change its apparance according to what block it is adjacent to? for example if there is to blocks besides eachother, one being one lvl lower, then having like a lsope from the higher to the lower? or is this impossible with my current approach?

It’s totally possible. And you just described how it would function so I don’t really understand the question.

Mentally, I think you’ll need three types of volumes to cover all possibilities: cube, prism and pyramid (not counting rotated variations)

well the problem im having is to know what type of “block” is adjacent to other blocks. (not sure if that makes sense)

how can i check if there is a block, or just air next to one of my blocks?

It depends on what data structure you use to store the terrain. In case of an array it’s not a problem to find the adjacent elements.

damn, i keep forgetting the basics of game creation when i change the game style…forgot i could store all such data pretty easily in arrays etc, feel kinda stupid…oh well.

but would that not be a very big array, i mean my game currently has about 80 000 game objects (dynamically generated with some code i wrote).
guess i should be able to figure it out from here, thanks :slight_smile:

If you are going to create 80000 instances of GameObject, don’t do that.

If you mean you’d like to have a terrain that would consist of 80000 blocks, represented by an array of 80000 bytes, then it’s a piece of cake.

i guess i have to rethink my codes abit then :stuck_out_tongue:
thanks for your help