-
Notifications
You must be signed in to change notification settings - Fork 2
Home
Welcome to the UnityVoxelEngine_v2 wiki!
If the project does not already contain a demo scene with what you need, you can get everything set up by creating an empty gameObject (Ctrl+ Shift + N), and adding the Generation script to it.
The _Generation _script has four variable fields (subject to change):
- Noise 2D Param (_NoiseParameters _Scriptable Object)
- Noise 3D Param (_NoiseParameters _Scriptable Object)
- Randomize Seed (bool)
- Seed Input (int)
The NoiseParameters will be discussed in the following section. The Randomize Seed Boolean controls whether or not the world generates using the seed provided by the Seed Input, or through a completely random seed generated at runtime.
The NoiseParameters Scriptable object has four variable fields:
- Frequency (float)
- Octaves (int)
- Lacunarity (float)
- Gain (float)
If you want to know more about these terms, you can look at this website (or you can play around with values that generate the best looking terrain for your needs).
The project comes with two Scriptable Objects that you can input into the Noise 3D Param and Noise 2D Param variable fields in Generation. I personally like how the terrain looks when both these objects use the same noise values (so technically one object could be inputted into both fields, two were included so it could be possible to have different values if needed).