Sunday, 18 January 2015

3D Tiles

so after finally getting the 2D tiling to work, I started getting the 3d tiling to work. This was done rather quickly, however it was incorrect.



As seen in here the hexagonal prisms tiled, but they didn't line up correctly. The shapes were intersecting each other. I solved this by modifying the values that were sent to the function creating the mesh.

--------------------------------------------------------------------------------------------------------------------------

Here is the current tiling 
the current known issues are;
  • a problem in the z axis where it keeps moving further inwards on each row,
  • height - adding hexagons in the y axis doesn't align correctly.

  • mass amounts of rows breaks the program as the uv values go out of bounds
Whilst working on this update I also noticed that this was creating 1 giant mesh, which would not ideal for potential updates in the future, such as adding and removing voxels from the world. To solve this in the next update I will look to implement a method that will build the meshes seperatly using a seperate script. I am hoping this may also help fix the bug with adding height to the world...


No comments:

Post a Comment