Introduction to Unity

Podobne dokumenty
Instrukcja konfiguracji usługi Wirtualnej Sieci Prywatnej w systemie Mac OSX

Zakopane, plan miasta: Skala ok. 1: = City map (Polish Edition)

Installation of EuroCert software for qualified electronic signature

Tychy, plan miasta: Skala 1: (Polish Edition)

Wojewodztwo Koszalinskie: Obiekty i walory krajoznawcze (Inwentaryzacja krajoznawcza Polski) (Polish Edition)

USB firmware changing guide. Zmiana oprogramowania za przy użyciu połączenia USB. Changelog / Lista Zmian

Stargard Szczecinski i okolice (Polish Edition)

Wojewodztwo Koszalinskie: Obiekty i walory krajoznawcze (Inwentaryzacja krajoznawcza Polski) (Polish Edition)

Katowice, plan miasta: Skala 1: = City map = Stadtplan (Polish Edition)

ERASMUS + : Trail of extinct and active volcanoes, earthquakes through Europe. SURVEY TO STUDENTS.

Wojewodztwo Koszalinskie: Obiekty i walory krajoznawcze (Inwentaryzacja krajoznawcza Polski) (Polish Edition)

Karpacz, plan miasta 1:10 000: Panorama Karkonoszy, mapa szlakow turystycznych (Polish Edition)

Emilka szuka swojej gwiazdy / Emily Climbs (Emily, #2)

SSW1.1, HFW Fry #20, Zeno #25 Benchmark: Qtr.1. Fry #65, Zeno #67. like

MaPlan Sp. z O.O. Click here if your download doesn"t start automatically

ARNOLD. EDUKACJA KULTURYSTY (POLSKA WERSJA JEZYKOWA) BY DOUGLAS KENT HALL

Machine Learning for Data Science (CS4786) Lecture11. Random Projections & Canonical Correlation Analysis

Machine Learning for Data Science (CS4786) Lecture 11. Spectral Embedding + Clustering

Dolny Slask 1: , mapa turystycznosamochodowa: Plan Wroclawia (Polish Edition)

Revenue Maximization. Sept. 25, 2018

Ankiety Nowe funkcje! Pomoc Twoje konto Wyloguj. BIODIVERSITY OF RIVERS: Survey to students

Wybrzeze Baltyku, mapa turystyczna 1: (Polish Edition)

Miedzy legenda a historia: Szlakiem piastowskim z Poznania do Gniezna (Biblioteka Kroniki Wielkopolski) (Polish Edition)

DODATKOWE ĆWICZENIA EGZAMINACYJNE

Wojewodztwo Koszalinskie: Obiekty i walory krajoznawcze (Inwentaryzacja krajoznawcza Polski) (Polish Edition)

SubVersion. Piotr Mikulski. SubVersion. P. Mikulski. Co to jest subversion? Zalety SubVersion. Wady SubVersion. Inne różnice SubVersion i CVS

OSTC GLOBAL TRADING CHALLENGE MANUAL

January 1st, Canvas Prints including Stretching. What We Use

Miedzy legenda a historia: Szlakiem piastowskim z Poznania do Gniezna (Biblioteka Kroniki Wielkopolski) (Polish Edition)

Egzamin maturalny z języka angielskiego na poziomie dwujęzycznym Rozmowa wstępna (wyłącznie dla egzaminującego)

Zasady rejestracji i instrukcja zarządzania kontem użytkownika portalu

Instrukcja obsługi User s manual

Wojewodztwo Koszalinskie: Obiekty i walory krajoznawcze (Inwentaryzacja krajoznawcza Polski) (Polish Edition)

Blow-Up: Photographs in the Time of Tumult; Black and White Photography Festival Zakopane Warszawa 2002 / Powiekszenie: Fotografie w czasach zgielku

Leba, Rowy, Ustka, Slowinski Park Narodowy, plany miast, mapa turystyczna =: Tourist map = Touristenkarte (Polish Edition)

Rev Źródło:

Camspot 4.4 Camspot 4.5

Helena Boguta, klasa 8W, rok szkolny 2018/2019

OpenPoland.net API Documentation

Unity 3D - tworzenie sceny

Pielgrzymka do Ojczyzny: Przemowienia i homilie Ojca Swietego Jana Pawla II (Jan Pawel II-- pierwszy Polak na Stolicy Piotrowej) (Polish Edition)

USB firmware changing guide. Zmiana oprogramowania za przy użyciu połączenia USB. Changelog / Lista Zmian

How to translate Polygons

Karpacz, plan miasta 1:10 000: Panorama Karkonoszy, mapa szlakow turystycznych (Polish Edition)

Estimation and planing. Marek Majchrzak, Andrzej Bednarz Wroclaw,

Wroclaw, plan nowy: Nowe ulice, 1:22500, sygnalizacja swietlna, wysokosc wiaduktow : Debica = City plan (Polish Edition)

Karpacz, plan miasta 1:10 000: Panorama Karkonoszy, mapa szlakow turystycznych (Polish Edition)

18. Przydatne zwroty podczas egzaminu ustnego. 19. Mo liwe pytania egzaminatora i przyk³adowe odpowiedzi egzaminowanego

Karpacz, plan miasta 1:10 000: Panorama Karkonoszy, mapa szlakow turystycznych (Polish Edition)

Weronika Mysliwiec, klasa 8W, rok szkolny 2018/2019

deep learning for NLP (5 lectures)

Poland) Wydawnictwo "Gea" (Warsaw. Click here if your download doesn"t start automatically

Jak zasada Pareto może pomóc Ci w nauce języków obcych?

Wojewodztwo Koszalinskie: Obiekty i walory krajoznawcze (Inwentaryzacja krajoznawcza Polski) (Polish Edition)

How to share data from SQL database table to the OPC Server? Jak udostępnić dane z tabeli bazy SQL do serwera OPC? samouczek ANT.

Warsztat: Infoblox DNS Firewall & DNS Infoblox Threat Analytics. Czyli jak w godzinę ochronić użytkowników.

JĘZYK ANGIELSKI POZIOM PODSTAWOWY

INSTRUKCJE JAK AKTYWOWAĆ SWOJE KONTO PAYLUTION

User s manual for icarwash

Wroclaw, plan nowy: Nowe ulice, 1:22500, sygnalizacja swietlna, wysokosc wiaduktow : Debica = City plan (Polish Edition)

Aktualizacja Oprogramowania Firmowego (Fleszowanie) Microprocessor Firmware Upgrade (Firmware downloading)

Analysis of Movie Profitability STAT 469 IN CLASS ANALYSIS #2

Hard-Margin Support Vector Machines

DO MONTAŻU POTRZEBNE SĄ DWIE OSOBY! INSTALLATION REQUIRES TWO PEOPLE!

USB firmware changing guide. Zmiana oprogramowania za przy użyciu połączenia USB. Changelog / Lista Zmian

Test sprawdzający znajomość języka angielskiego

PSB dla masazystow. Praca Zbiorowa. Click here if your download doesn"t start automatically

Volcano MC-GM4 OPTICAL MOUSE USER S MANUAL MODECOM

HAPPY ANIMALS L01 HAPPY ANIMALS L03 HAPPY ANIMALS L05 HAPPY ANIMALS L07

ESTATUARIO E05 ESTATUARIO E01 ESTATUARIO E01-R ESTATUARIO E05-R NERO MARQUINA NM01 NERO MARQUINA NM01-R BLANCO CARRARA BC2 BLANCO CARRARA BC2-R

HAPPY ANIMALS L02 HAPPY ANIMALS L04 HAPPY ANIMALS L06 HAPPY ANIMALS L08


Volcano MC-GMX4 OPTICAL MOUSE USER S MANUAL MODECOM

HAPPY K04 INSTRUKCJA MONTAŻU ASSEMBLY INSTRUCTIONS DO MONTAŻU POTRZEBNE SĄ DWIE OSOBY! INSTALLATION REQUIRES TWO PEOPLE! W5 W6 G1 T2 U1 U2 TZ1

DO MONTAŻU POTRZEBNE SĄ DWIE OSOBY! INSTALLATION REQUIRES TWO PEOPLE!

Proposal of thesis topic for mgr in. (MSE) programme in Telecommunications and Computer Science

ANKIETA ŚWIAT BAJEK MOJEGO DZIECKA

Machine Learning for Data Science (CS4786) Lecture 24. Differential Privacy and Re-useable Holdout

Rozpoznawanie twarzy metodą PCA Michał Bereta 1. Testowanie statystycznej istotności różnic między jakością klasyfikatorów

Google Fusion Tables?

1. W systemie Windows przejdź do Panel sterowania> Sieć i Internet> Centrum sieci i udostępniania.

Instructions for student teams

099 Łóżko półpiętrowe 2080x1010(1109)x Bunk bed 2080x1010(1109)x1600 W15 INSTRUKCJA MONTAŻU ASSEMBLY INSTRUCTION

Dolny Slask 1: , mapa turystycznosamochodowa: Plan Wroclawia (Polish Edition)

EaglePCB_2_FreeCAD (beta)


Fig 5 Spectrograms of the original signal (top) extracted shaft-related GAD components (middle) and

Klaps za karę. Wyniki badania dotyczącego postaw i stosowania kar fizycznych. Joanna Włodarczyk

DO MONTAŻU POTRZEBNE SĄ DWIE OSOBY! INSTALLATION REQUIRES TWO PEOPLE!

Relaxation of the Cosmological Constant

Ankiety Nowe funkcje! Pomoc Twoje konto Wyloguj. BIODIVERSITY OF RIVERS: Survey to teachers

USB firmware changing guide. Zmiana oprogramowania za przy użyciu połączenia USB. Changelog / Lista Zmian

Zarządzanie sieciami telekomunikacyjnymi

Patients price acceptance SELECTED FINDINGS

Zdecyduj: Czy to jest rzeczywiście prześladowanie? Czasem coś WYDAJE SIĘ złośliwe, ale wcale takie nie jest.

Classic Clad / Thermo Clad / ThermoPlus Clad option selection for projects with Pine / Fir wood

Zestawienie czasów angielskich

098 Łóżko piętrowe 2080x1010(1109)x Double bunk bed 2080x1010(1109)x1600 W15 MONTAGEANLEITUNG ASSEMBLY INSTRUCTION

Angielski bezpłatne ćwiczenia - gramatyka i słownictwo. Ćwiczenie 4

Financial support for start-uppres. Where to get money? - Equity. - Credit. - Local Labor Office - Six times the national average wage (22000 zł)

Transkrypt:

Introduction to Unity Step 5: Shaping outdoor level Piotr Fulma«ski Wydziaª Matematyki i Informatyki, Uniwersytet Šódzki, Polska November 26, 2015

Table of contents

Preliminaries Clean up a mess 1 Close the previous project (scene intro_04) if it is opened. 2 Create new scene with File New Scene and save it as intro_05 selecting File Save Scene As.

Create terrain Add terrain object to the scene 1 Select GameObject 3D Object Terrain. This will spawn a terrain asset in the Hierarchy view and place it in the Scene.

Add terrain object to the scene

Add terrain object to the scene

Create terrain Add terrain object to the scene 1 In the Inspector view, locate and click the Terrain Settings button 2 Locate the Resolution settings. 3 Currently, the terrain width and length are set to big avlues (500 in my case). Set these values both to smaller values, say 50.

Create terrain Add terrain object to the scene

Create terrain Unity Terrain Sculpting Tools Unity gives us multiple tools for hand sculpting terrain. We can see these tools in the Inspector view under the component Terrain (Script). These tools all work under the same premise: we use a brush with a given size and opacity to paint terrain. 1 raise / lower tool 2 paint height tool 3 smooth height tool

2 Choose a brush size and opacity. The opacity determines how strong the sculpting eect is. 3 Click and drag over the terrain in the Scene view to raise the terrain. Holding Shift when you click and drag will instead lower the terrain. Create terrain Sculpting with Raise/Lower tool The Raise/Lower tool, just as it sounds, enables us to raise or lower the terrain wherever we paint. 1 Select a simple circle brush and set its size to 7. Brushes determine the size and shape of the sculpting eect.

Create terrain Sculpting with Raise/Lower tool

Create terrain Sculpting with Raise/Lower tool

Create terrain Sculpting with Paint Height tool The Paint Height tool works almost exactly as the Raise/Lower tool except that it paints a terrain to a specied height. If the specied height is higher than the current terrain, painting raises the terrain. If the specied height is lower than the current terrain, however, the terrain is lowered. 1 Set Height to 10 and click several times on lower peak. It should rise to a certain height but no higher. 2 Click several times on higher peak. It should decrease to a certain heigh but no lower.

Create terrain Sculpting with Paint Height tool

Create terrain Sculpting with Paint Height tool

Create terrain Sculpting with Paint Height tool

Create terrain Sculpting with Paint Height tool

Create terrain Sculpting with Smooth Height tool The Smooth Height tool doesn't alter the terrain in highly noticeable ways. Instead, it removes a lot of the jagged lines that appear when sculpting terrain. Think of this tool as a polisher.

Create terrain Sculpting with Smooth Height tool 1 Select a frayed brush and set its size to 7. 2 Next change the brush to simple circle and use it with Smooth Height tool to smoot the landscape.

Create terrain Sculpting with Smooth Height tool

Create terrain Sculpting with Smooth Height tool

Create terrain Sculpting: task 1 Create a new project or scene, add a terrain and save as task_05_01. Set the resolution of the terrain to 50 x 50 and give it a height of 50 (or choose other values if you prefer). 2 Flatten the terrain to a height of 25 by clicking the Paint Height tool, changing the height to 20, and clicking Flatten button. 3 Use the sculpting tools and create your own landscape.

Create terrain Creating the terrain using heightmaps In some sense, heightmaps work in the same way as brushes. The engine interprets the grayscale colors as elevation data and applies it to the terrain. They can be easily created with any application that supports exporting in the.raw format. 1 Use Photoshop to create grayscale (that is with 256 shades of gray) image of your landscape as it would be seen from the top. The darker shades can be thought of as low points, and the lighter shades are high points.

Create terrain Creating the terrain using heightmaps

Create terrain Creating the terrain using heightmaps

Create terrain Creating the terrain using heightmaps: some remarks I was unable to create heightmaps with software other than Photoshop. Maybe the following link could be used as a good replacement for this http: //forum.unity3d.com/threads/png-or-png-to-raw.156450/ http://wiki.unity3d.com/index.php?title= HeightmapFromTexture

Create terrain Creating the terrain using heightmaps: other solution Another solution is to use any graphical software which is able to save le as.png Next IrfanView 1 with plugin formats 2 can be used to export.png to.raw format with the follwing settings 1 http://www.irfanview.com/ 2 Plugin install is quite easy: it is enough to download plugin package (.exe le) and run it.

Create terrain Applying a heightmap With your terrain selected in the Hierarchy view, click the Terrain Settings button. In the Heightmap section, click Import Raw. The Import Raw Heightmap dialog will open. Locate your.raw le and click Open. The Import Heightmap dialog will open. Set the options as it is shown on next slide. Width and Height should be set to values corresponding to the dimension of the image you have prepared. If it is needed, change the terrain resolution and / or the height value by going back to the Resolution section in the Terrain Settings in the Inspector view.

Create terrain Creating the terrain using heightmaps

Create terrain Creating the terrain using heightmaps

The terrain texture Importing textures Go to Assets Import Package Environment. Click on Import. This will import some textures for the terrain and tree models that we will use in the future.

The terrain texture Importing textures

The terrain texture Texturing terrain The terrain texturing procedure is very simple and works a lot like the sculpting. 1 The rst thing is to swich to Paint Texture tool 2 Next we should load a texture. 1 Click Edit Textures Add Texture. 2 The Add Terrain Texture dialog will appear. Click in the box for Albedo parameter and select the GrassHillAlbedo texture. 3 Click Add. This will import some textures for the terrain and tree models that we will use in the future.

The terrain texture Texturing terrain

The terrain texture Texturing terrain

The terrain texture Texturing terrain

The terrain texture Texturing terrain At this point, the entire terrain should be covered in patchy grass. Now, we will actually begin painting and making our terrain look more realistic. 1 Repeat previous steps and add a new texture (dierent than green grass, for example there should be GrassRockyAlbedo texture). 2 Set your brush size to 30, opacity to 20, and target strength to 0.6. 3 Sparingly, paint (click and drag) on the steep parts and crevices of your terrain. This gives the impression that grass isn't growing on the sides of steep grades and in between hills. 4 Continue experimenting with texture painting. Feel free to load dierent textures and apply them to obtain more realistic game world.

Adding ora to the level Paint trees Populating our level with trees and creating forests can be done by using the Place Trees tool. 1 Click Edit Trees Add Tree to pull up the Add Tree dialog. 2 Clicking the circle icon to the right of the Tree text box on the Add Tree dialog pulls up the Tree Selector dialog. 3 Select the Palm Tree and click Add. 4 Set your brush size to 20, your tree density to 70. 5 Paint trees on the terrain by clicking and dragging over the areas where you want trees. Holding the Shift key while click-dragging removes trees. 6 Continue to experiment with dierent brush sizes, densities, and other options.

Adding ora to the level Paint trees

Adding ora to the level Paint trees

Adding ora to the level Paint trees

Adding ora to the level Populating our level with grass can be done by using the Paint Details tool. Paint grass 1 Click Edit Details in the Inspector view and select Add Grass Texture. 2 In the Add Grass Texture dialog, click the circle icon next to the Texture text box. Select the GrassFrond01AlbedoAlpha texture (not the GrassHillAlbedo texture, because it is much less grassy). 3 Set your texture properties to whatever values you want. Pay special attention to the color properties because those establish the range of natural colors for your grass. 4 When done, click Apply. 5 After you have your grass loaded, you just need to choose a brush and your brush properties. You are now ready to begin painting grass.

Adding ora to the level Paint grass

Adding ora to the level Paint grass

Adding ora to the level Paint grass

Adding ora to the level Paint grass

Create terrain with textures, grass etc Heightmap, sculpting, texturing... : task 1 Create a new project or scene and save it as task_05_02. 2 Use heightmap, sculpting, texturing etc. to create a game world. Think of this as a previous or next level of our stone game world we made so far.

Environment eects Skybox: adding a skybox to the camera We can add a skybox to the camera so that whatever the camera sees beyond the game world will be replaced with sky. To add a skybox to the camera, follow these steps: 1 Select the Main Camera in the Hierarchy view. 2 Add a skybox component by clicking Component Rendering Skybox. 3 In the Inspector view, locate the Skybox component and click the circle icon next to the Custom Skybox eld. In the Select Material dialog, select the skybox you prefere. 4 Run your scene to see the skybox applied to the camera.

Environment eects Skybox: adding a skybox to the scene Note: read this slide but before you try, please see also next 2 slides. 1 Click Window Lighting to open the lighting settings for the scene in the Inspector view. 2 Select Scene tab. 3 Locate the Skybox eld in the Envirionment Lighting section and click the circle icon to the right of it. 4 Choose the skubox you prefere. Notice how the Scene view changes to contain the sky.

Environment eects Skybox: adding a skybox to the scene

Environment eects Skybox: adding a skybox to the scene Accessing Render Settings in Unity 5 https://www.youtube.com/watch?v=zqzt6kolqxo How do I Make a Skybox? http://docs.unity3d.com/manual/howto-useskybox.html

Environment eects Adding fog to a scene 1 Click Window Lighting to open the lighting settings for the scene in the Inspector view. 2 Select Scene tab. 3 Locate Fog section. 4 Turn on fog by checking the Fog check box. 5 Experiment with the dierent fog densities and colors.

Summary You should know how to sculpte terrain; how to use heightmaps to simplyf design process; how to texture terrain; how to add ora object (like tree or grass).