- Home /
 
               Question by 
               MadForLife · Nov 07, 2018 at 09:48 PM · 
                c#3dcubemapmap-generation  
              
 
              How to make voxel map generator using 3D Perlin noise
using UnityEngine;
public class ChunkGeneration : MonoBehaviour {
 public GameObject blockPrefab;
 private int x = 64;
 private int y = 64;
 private int z = 64;
 MeshFilter blockMesh;
 private void Start()
 {
     GenerateChunk();
 }
 private void Update()
 {
         
 }
 private void GenerateChunk()
 {
     for (int x = 0; x < this.x; x++)
     {
         for (int z = 0; z < this.z; z++)
         {
             blockPrefab = Instantiate(blockPrefab, new Vector3(x, Random.RandomRange(0,15), z), Quaternion.identity);
             blockPrefab.name = "Cube:" + x + ", " + z;
         }
     }
 }
}
When I run the code that's happening I want to make it work with Perlin Noise and make it look more like a map 
 
                 
                untitledaaa.png 
                (81.6 kB) 
               
 
              
               Comment
              
 
               
              you randomized the instantiation of blocks. what exactly do you want?
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
               
 
			 
                