You are on page 1of 4

2/15/2016

Concepts that we will learn…


• Creating Game Objects
• Understanding 3D Space
• Behaviors
• Materials
Lecture 2: Basic Concepts and Creating a Solar • Basic Lighting
System • Audios
• Cameras
“Game Development is Hard Fun”
• Test and Build
• Save and Submit

To Get Started 2D Cartesian Coordinate System


• I hope you have downloaded Unity3D
• Now, download assets from VLE
• Start a new project
• Import Assets in Unity
▫ Drag and Drop them

1
2/15/2016

Vector Lets Create Our Scene


• Representation of 3D vectors and points • Create and Positioning
▫ Sun (p :0,0,0 s:1,1,1)
• This structure is used throughout Unity to pass ▫ Earth (p :2,0,0 s:0.5,0.5,0.5)
3D positions and directions around ▫ Moon (p : 1.5,0,0 s:0.1,0.1,0.1)
▫ Main Camera (p : 0,0,-3 s:1,1,1)
• It also contains functions for doing common
vector operations.
• Save your scene
• Vector also supports different airthmetic
operations

Adding Behavior Adding Behavior


• Using behaviors to get things rotating
▫ Add rotateAround Script to Sun. Sun should spin
around itself with speed of 5
• Parent/Child Relationship
▫ Do same for Earth and two scripts. One should rotate
• Local Coordinates vs. World Coordinates around itself with speed of 10 and the other around
Sun with speed of 40.

▫ Make Moon child of earth and add the same two


scripts and it should rotate around itself with speed of
10 and other around earth with speed of 45.

2
2/15/2016

Using Materials Using Materials


• All Game objects have Materials and Shader • Open the assets under texture file
• Textures are a type of Shader ▫ Apply the sunmap texture to sun (set emission higher),
• Now we would create materials for planets the earthmap to earth and moonmap to moon
• We would also create materials for skybox
• Now add skybox material to your materials folder
▫ Change its shader to skybox 6 sided and add space as a
texture for all six sides
▫ Apply the skybox from windows –lighting

Goals of Lighting Basics of Audio


• Illumination • Unity can import audio files in AIFF, WAV,
• Modeling MP3 and Ogg formats in the same way as other
• Focus assets, simply by dragging the files into the
• Visual Style Project panel

3
2/15/2016

Adding Audio Camera Settings in Game


• Add sound to the sun • Perceptive Projection
▫ Apply burning sound to the sun • Orthographic Projection
• Add sound to the earth
▫ Apply dronehum sound to the sun

Questions

You might also like