Search Unity

Generate mesh base on 3d array of voxels.

Discussion in 'Scripting' started by Arcratist, Feb 17, 2019.

  1. Arcratist

    Arcratist

    Joined:
    Sep 26, 2018
    Posts:
    5
    How would I go about generating a mesh and the texture from a 3D array of voxel data. The array would just be integers that determine the colour of the cube.

    I have absolutely no idea where to start or how I'd go about implementing something like this.
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,742
    Lucky for you there are literally dozens of voxel engine tutorials designed to take you from nothing to minecraft right in the Unity3D editor! Google and you will be amazed what you find video-wise.