Lab 15 - Procedural Generation (Deadline 19.12 10.00)
Max Score: 1 point (you only have to submit an image)
The goal of this lab is to create a shader that combines multiple layers of noise to generate heightmap for a terrain. Here are some examples of how your terrain might look like:
Base files: http://optimatica.eu/courses/ProcGen/ProceduralBaseFile.zip
Task:
- Create a new Unity 3D project, add base files.
- Create materials for Terrain and MapData shaders.
- Add a cube object to the scene with the terrain material and terrain script.
- Add another camera to the scene, rename it "Render Camera".
- Adjust your Render Camera: projection = orthographic, size = 0.5, ClippingPlanes = (5, 10), ViewportRect = (0, 0, 1, 1).
- Add MapRenderer script to the Render Camera.
- Remove Render Camera Audio Listener, GUI Layer, and Flare Layer components.
- Add a quad to your scene such that it fills the Render Camera.
- Drag the quad under the Render Camera.
- Add your map data material to the quad.
- Increase CountX and CountY values in the Terrain script.
- Make sure your game generates bumpy terrain once you hit "run" button.
- Edit your Terrain shader, adding different color values according to the heights.
- Edit your MapData shader turning it into Billow or Ridged noise as shown in the Lecture.
Submission
Only submit a picture of your generated terrain.
15. Lab 15 - Procedural GenerationSellele ülesandele ei saa enam lahendusi esitada.