Some problems with cube textures

Hey,

At the moment I’m trying to program a script that creates a random world made out of cubes (like minecraft). Cause i had some performance problems with the thousands of cubes in my scene and I’m not that good that i could improve it i figured out a different way: I create just a couple of large cubes. This way i havent got thousands of cubes in my scene and that works well. But now i 've got 3 questions to the textures of a cube:

1.) When 2 cubes with the same y-coordinate overlap each other there are some kind of “bugs”. It looks like if Unity didnt know which texture to render so that there are some yellow lines. Is there a way to solve that problem or do i really have to change the y-coordinate of one of the cubes?

2.) Is there a way to print different textures on each side of the cube? I would prefer 1 texture at the top of the cube and 4 times the same on each side of the cube. There dont need to be a texture at the bottom side of the cube but i dont care.

3.) Is it possible to change the tilling of a texture of a cube using a script or so? The cubes are created with a random size so there should be always a different tild so that the textures arent distoreted.

I hope you can understand my english and my questions and that you can also solve them! :slight_smile:

The standard method is to make mesh chunks, where each chunk contain many cubes. There are quite a few threads around that discuss this.

–Eric

Yeah I know how this theoretical works but i cant program this. But thats why i changed it to a way i can do it on my own. Now I’ve just got the questions you can read in my first post.