SlideShare a Scribd company logo
1 of 33
Download to read offline
Lecture 6: Music and Sound Effect

& GVR Try out.
Dr. Kobkrit Viriyayudhakorn

iApp Technology Limited

kobkrit@iapp.co.th
ITS488 (Digital Content Creation with Unity - Game and VR Programming)
Starter Project
https://github.com/kobkrit/VR_basketball
Sound Effect
Getting Resource from Unity Asset Store
Audio Kit
Download Audio Kit at 

http://bit.ly/2iVDB7v
Import Audio Kit
1. Menu Bar > Assets > Import Package > Custom Package...
2. Select the "AudioKit.unitypackage"
3. Make sure that all files 

are selected, and then

Press "Import"
Imported Audio
Press to Play
Adding Music to the Game
1. Select "Scene 1". Right click at

Hierarchy > Audio > Audio Source
2. Drag the "music...come..."

to the Audio Source
Configure the Music
1. Select Audio Source

2. Checked at 

• Play On Awake

• Loop

3. Run "Play" to Test.
Exercise 1: Add a sound to Game Over.
• Find the sound that seems most appropriate to you.

• Should it be looping or not?

• Add the audio source to the Game Over scene.
Adding Sound Effect to Ball
1. Open the Scene 2 > ShootHoopKit > 

Drag the ball to the Hierarchy windows
2. Select the ball at the right inspector windows >

Add Component > Audio Source
3. The attached audio source

is added into the Ball Game object
Trigger Sound Effect by Code
1. Drag a drop Sound file. the impact_deep_thud_bounce
sound file into the AudioClip
2. Add the new C# script, "BallBounceSound.cs"
BallBounceSound.cs
2. Drag the BallBounceSound.cs to attached 

with the ball game object. >>
1. Writing the above code.
Trigger Sound Effect by Code
Make the customized ball as the prefab
1. Press "Play" now, We will heard 

only the single drop of sounds.

Even you firing multiple ball.
2. Drag the customized ball as 

the ball prefab.
3. Press Play again.

Now you will heard multiple

drop sounds.
Exercise 2: Adding a scoring sound.
• Add an audio source component.

• Find a good scoring sound.

• Trigger in the appropriate place.
Solution for Exercise 2
• Enter the ScoreCount.cs, Add the AudioSource part at IncreaseScore Function.
1. Select "ScoreCount" Game Object,

At the inspector windows, Add "Audio source".
2. Drag and drop "Chime_ball_02" at the AudioClip part.

Unchecked "Play On Awake checkbox.
Play with sound time.
Make our life easier with Google VR SDK
Google VR Installation
• https://developers.google.com/vr/unity/download
Making a new project
Import GVR unity package
1. Assets > Import Package > Custom Package....
2. Select GoogleVRForUnity_1.110.0.unitypackage
3. Make sure that all items are checked

and then "Import"
Google VR Demo
Play around with GVR Demo
1. File > Build Settings...
1. Tap "Add Open Scenes"
2. Select iOS
3. Click "Switch Platform"
Change to Virtual Reality Project
1. Click on "Player Settings"
2. At the XR Settings,

Select "Virtual Reality
Supported"
and Add "Cardboard" to
Virtual Reality SDK
Test on iOS
1. Connect with iOS phone to the machine.

2. Press "Build and Run"
Fast VR project using GVR
1. Create a New Empty Scene
2. Add Cube into the Scene,

Make it in front of the Camera
3. Play

You can not move any view.
1. Go to Google VR Assets > Prefabs
Using GVR Prefab
2. Import the prefab like this...
Now you can move in VR
• Shift + Move Mouse = Change Orientation
• Shift + Left Mouse Button = ClickButton
• Shift + Right Mouse Button = AppButton
• Shift + Middle Mouse Button = HomeButton/Recenter
• Shift + Ctrl = IsTouching
• Shift + Ctrl + Move Mouse = Change TouchPos
There is much more in Google VR
• A simple reticle prefab and associated scripts for gaze-based user interaction.

• User head tracking.

• Side-by-side stereo rendering.

• Detecting user interaction with the system (via trigger or controller).

• Automatic stereo configuration for a specific VR viewer.

• Distortion correction for a VR viewer's lenses.

• An alignment marker to help center the screen under the lenses when you insert your phone into
a viewer.

• Automatic gyro drift correction.
Q/A

More Related Content

What's hot

GameMaker 1) intro to gamemaker
GameMaker 1) intro to gamemakerGameMaker 1) intro to gamemaker
GameMaker 1) intro to gamemakeriain bruce
 
Gamemaker lesson 1
Gamemaker lesson 1Gamemaker lesson 1
Gamemaker lesson 1iain bruce
 
Pb works howto
Pb works howtoPb works howto
Pb works howtourse1515
 
S02.W02 - Some New Features of Windows
S02.W02 - Some New Features of WindowsS02.W02 - Some New Features of Windows
S02.W02 - Some New Features of Windowsselcukca84
 
DIY Mobile VR with Unity 3d & Cardboard SDK
DIY Mobile VR with Unity 3d & Cardboard SDKDIY Mobile VR with Unity 3d & Cardboard SDK
DIY Mobile VR with Unity 3d & Cardboard SDKBond University
 
Unity 2D game development
Unity 2D game developmentUnity 2D game development
Unity 2D game developmentThe NineHertz
 
How to fake a database/backend in Axure... and more
How to fake a database/backend in Axure... and moreHow to fake a database/backend in Axure... and more
How to fake a database/backend in Axure... and moreSandra González
 
Making apps for the Apple TV
Making apps for the Apple TVMaking apps for the Apple TV
Making apps for the Apple TVSally Shepard
 
What Is A Game Engine
What Is A Game EngineWhat Is A Game Engine
What Is A Game EngineSeth Sivak
 
Car racing game for android
Car racing game for androidCar racing game for android
Car racing game for androidravijot singh
 
Android Game Minisyonize
Android Game MinisyonizeAndroid Game Minisyonize
Android Game Minisyonizesavvy
 
Developing Virtual Reality Application using Google Cardboard
Developing Virtual Reality Application using Google CardboardDeveloping Virtual Reality Application using Google Cardboard
Developing Virtual Reality Application using Google Cardboardapurvmmmec
 
Crucifixion christ with hands reaching out power point slides and ppt diagram...
Crucifixion christ with hands reaching out power point slides and ppt diagram...Crucifixion christ with hands reaching out power point slides and ppt diagram...
Crucifixion christ with hands reaching out power point slides and ppt diagram...SlideTeam.net
 

What's hot (15)

GameMaker 1) intro to gamemaker
GameMaker 1) intro to gamemakerGameMaker 1) intro to gamemaker
GameMaker 1) intro to gamemaker
 
Gamemaker lesson 1
Gamemaker lesson 1Gamemaker lesson 1
Gamemaker lesson 1
 
Pb works howto
Pb works howtoPb works howto
Pb works howto
 
S02.W02 - Some New Features of Windows
S02.W02 - Some New Features of WindowsS02.W02 - Some New Features of Windows
S02.W02 - Some New Features of Windows
 
DIY Mobile VR with Unity 3d & Cardboard SDK
DIY Mobile VR with Unity 3d & Cardboard SDKDIY Mobile VR with Unity 3d & Cardboard SDK
DIY Mobile VR with Unity 3d & Cardboard SDK
 
Unity 2D game development
Unity 2D game developmentUnity 2D game development
Unity 2D game development
 
How to fake a database/backend in Axure... and more
How to fake a database/backend in Axure... and moreHow to fake a database/backend in Axure... and more
How to fake a database/backend in Axure... and more
 
Making apps for the Apple TV
Making apps for the Apple TVMaking apps for the Apple TV
Making apps for the Apple TV
 
Lecture5
Lecture5Lecture5
Lecture5
 
What Is A Game Engine
What Is A Game EngineWhat Is A Game Engine
What Is A Game Engine
 
Car racing game for android
Car racing game for androidCar racing game for android
Car racing game for android
 
Android Game Minisyonize
Android Game MinisyonizeAndroid Game Minisyonize
Android Game Minisyonize
 
Developing Virtual Reality Application using Google Cardboard
Developing Virtual Reality Application using Google CardboardDeveloping Virtual Reality Application using Google Cardboard
Developing Virtual Reality Application using Google Cardboard
 
Operating System.pptx
Operating System.pptxOperating System.pptx
Operating System.pptx
 
Crucifixion christ with hands reaching out power point slides and ppt diagram...
Crucifixion christ with hands reaching out power point slides and ppt diagram...Crucifixion christ with hands reaching out power point slides and ppt diagram...
Crucifixion christ with hands reaching out power point slides and ppt diagram...
 

Similar to ITS488 Lecture 6: Music and Sound Effect & GVR Try out.

Run and jump tutorial (part 2) scenes
Run and jump tutorial (part 2)   scenesRun and jump tutorial (part 2)   scenes
Run and jump tutorial (part 2) scenesMuhd Basheer
 
Workingwithunity 110519054824-phpapp01
Workingwithunity 110519054824-phpapp01Workingwithunity 110519054824-phpapp01
Workingwithunity 110519054824-phpapp01Srijib Roy
 
Cardboard VR: Building Low Cost VR Experiences
Cardboard VR: Building Low Cost VR ExperiencesCardboard VR: Building Low Cost VR Experiences
Cardboard VR: Building Low Cost VR ExperiencesMark Billinghurst
 
Cross platform game development
Cross platform game developmentCross platform game development
Cross platform game developmentJerel Hass
 
Chapt 1 (part 2) installing the sdk and exploring the workspace
Chapt 1 (part 2)   installing the sdk and exploring the workspaceChapt 1 (part 2)   installing the sdk and exploring the workspace
Chapt 1 (part 2) installing the sdk and exploring the workspaceMuhd Basheer
 
Callum deighton engine terminology
Callum deighton engine terminologyCallum deighton engine terminology
Callum deighton engine terminologyDeightonater
 
How to add InLife to your game
How to add InLife to your gameHow to add InLife to your game
How to add InLife to your gameinlifeproject
 
Scratch Tom and Jerry
Scratch Tom and JerryScratch Tom and Jerry
Scratch Tom and JerryAkhmad Zaimi
 
DSC RNGPIT - Getting Started with Game Development Day 1
DSC RNGPIT - Getting Started with Game Development Day 1DSC RNGPIT - Getting Started with Game Development Day 1
DSC RNGPIT - Getting Started with Game Development Day 1DeepMevada1
 
Game Development with Unity
Game Development with UnityGame Development with Unity
Game Development with Unitydavidluzgouveia
 
Cmd unity withc
Cmd unity withcCmd unity withc
Cmd unity withcumairnoora
 
Developing VR Experiences with Unity
Developing VR Experiences with UnityDeveloping VR Experiences with Unity
Developing VR Experiences with UnityMark Billinghurst
 
Intro to Construct 2: Ghost Shooter - Step by Step
Intro to Construct 2: Ghost Shooter - Step by StepIntro to Construct 2: Ghost Shooter - Step by Step
Intro to Construct 2: Ghost Shooter - Step by StepShahed Chowdhuri
 
Play RICOH THETA 360 Videos in Unity Shanyuan Teng
Play RICOH THETA 360 Videos in Unity Shanyuan TengPlay RICOH THETA 360 Videos in Unity Shanyuan Teng
Play RICOH THETA 360 Videos in Unity Shanyuan TengTHETA Unofficial Guide
 
Building VR Applications For Google Cardboard
Building VR Applications For Google CardboardBuilding VR Applications For Google Cardboard
Building VR Applications For Google CardboardMark Billinghurst
 
Illumi room - Peripheral Projected Illusionsfor Interactive Experiences
Illumi room - Peripheral Projected Illusionsfor Interactive ExperiencesIllumi room - Peripheral Projected Illusionsfor Interactive Experiences
Illumi room - Peripheral Projected Illusionsfor Interactive ExperiencesKatsuhito Okada
 
Unity introduction for programmers
Unity introduction for programmersUnity introduction for programmers
Unity introduction for programmersNoam Gat
 
UX for XR: Creating User Flows for Mixed Reality
UX for XR: Creating User Flows for Mixed RealityUX for XR: Creating User Flows for Mixed Reality
UX for XR: Creating User Flows for Mixed RealityLillian Warner
 

Similar to ITS488 Lecture 6: Music and Sound Effect & GVR Try out. (20)

Run and jump tutorial (part 2) scenes
Run and jump tutorial (part 2)   scenesRun and jump tutorial (part 2)   scenes
Run and jump tutorial (part 2) scenes
 
Workingwithunity 110519054824-phpapp01
Workingwithunity 110519054824-phpapp01Workingwithunity 110519054824-phpapp01
Workingwithunity 110519054824-phpapp01
 
Cardboard VR: Building Low Cost VR Experiences
Cardboard VR: Building Low Cost VR ExperiencesCardboard VR: Building Low Cost VR Experiences
Cardboard VR: Building Low Cost VR Experiences
 
Cross platform game development
Cross platform game developmentCross platform game development
Cross platform game development
 
Chapt 1 (part 2) installing the sdk and exploring the workspace
Chapt 1 (part 2)   installing the sdk and exploring the workspaceChapt 1 (part 2)   installing the sdk and exploring the workspace
Chapt 1 (part 2) installing the sdk and exploring the workspace
 
Callum deighton engine terminology
Callum deighton engine terminologyCallum deighton engine terminology
Callum deighton engine terminology
 
Ninja Cat Flyer - 6 of 6
Ninja Cat Flyer - 6 of 6Ninja Cat Flyer - 6 of 6
Ninja Cat Flyer - 6 of 6
 
How to add InLife to your game
How to add InLife to your gameHow to add InLife to your game
How to add InLife to your game
 
Scratch Tom and Jerry
Scratch Tom and JerryScratch Tom and Jerry
Scratch Tom and Jerry
 
DSC RNGPIT - Getting Started with Game Development Day 1
DSC RNGPIT - Getting Started with Game Development Day 1DSC RNGPIT - Getting Started with Game Development Day 1
DSC RNGPIT - Getting Started with Game Development Day 1
 
Game Development with Unity
Game Development with UnityGame Development with Unity
Game Development with Unity
 
Ninja Cat Flyer - 1 of 6
Ninja Cat Flyer - 1 of 6Ninja Cat Flyer - 1 of 6
Ninja Cat Flyer - 1 of 6
 
Cmd unity withc
Cmd unity withcCmd unity withc
Cmd unity withc
 
Developing VR Experiences with Unity
Developing VR Experiences with UnityDeveloping VR Experiences with Unity
Developing VR Experiences with Unity
 
Intro to Construct 2: Ghost Shooter - Step by Step
Intro to Construct 2: Ghost Shooter - Step by StepIntro to Construct 2: Ghost Shooter - Step by Step
Intro to Construct 2: Ghost Shooter - Step by Step
 
Play RICOH THETA 360 Videos in Unity Shanyuan Teng
Play RICOH THETA 360 Videos in Unity Shanyuan TengPlay RICOH THETA 360 Videos in Unity Shanyuan Teng
Play RICOH THETA 360 Videos in Unity Shanyuan Teng
 
Building VR Applications For Google Cardboard
Building VR Applications For Google CardboardBuilding VR Applications For Google Cardboard
Building VR Applications For Google Cardboard
 
Illumi room - Peripheral Projected Illusionsfor Interactive Experiences
Illumi room - Peripheral Projected Illusionsfor Interactive ExperiencesIllumi room - Peripheral Projected Illusionsfor Interactive Experiences
Illumi room - Peripheral Projected Illusionsfor Interactive Experiences
 
Unity introduction for programmers
Unity introduction for programmersUnity introduction for programmers
Unity introduction for programmers
 
UX for XR: Creating User Flows for Mixed Reality
UX for XR: Creating User Flows for Mixed RealityUX for XR: Creating User Flows for Mixed Reality
UX for XR: Creating User Flows for Mixed Reality
 

More from Kobkrit Viriyayudhakorn

Chochae Robot - Thai voice communication extension pack for Service Robot
Chochae Robot - Thai voice communication extension pack for Service RobotChochae Robot - Thai voice communication extension pack for Service Robot
Chochae Robot - Thai voice communication extension pack for Service RobotKobkrit Viriyayudhakorn
 
ศักยภาพของ AI สู่โอกาสใหม่แห่งการแข่งขันและความสำเร็จ (Thai AI updates in yea...
ศักยภาพของ AI สู่โอกาสใหม่แห่งการแข่งขันและความสำเร็จ (Thai AI updates in yea...ศักยภาพของ AI สู่โอกาสใหม่แห่งการแข่งขันและความสำเร็จ (Thai AI updates in yea...
ศักยภาพของ AI สู่โอกาสใหม่แห่งการแข่งขันและความสำเร็จ (Thai AI updates in yea...Kobkrit Viriyayudhakorn
 
Thai Text processing by Transfer Learning using Transformer (Bert)
Thai Text processing by Transfer Learning using Transformer (Bert)Thai Text processing by Transfer Learning using Transformer (Bert)
Thai Text processing by Transfer Learning using Transformer (Bert)Kobkrit Viriyayudhakorn
 
หัวใจของปัญญาประดิษฐ์ (Gradient Descent ทำงานอย่างไร)
หัวใจของปัญญาประดิษฐ์ (Gradient Descent ทำงานอย่างไร)หัวใจของปัญญาประดิษฐ์ (Gradient Descent ทำงานอย่างไร)
หัวใจของปัญญาประดิษฐ์ (Gradient Descent ทำงานอย่างไร)Kobkrit Viriyayudhakorn
 
Check Raka Chatbot Pitching Presentation
Check Raka Chatbot Pitching PresentationCheck Raka Chatbot Pitching Presentation
Check Raka Chatbot Pitching PresentationKobkrit Viriyayudhakorn
 
[Lecture 3] AI and Deep Learning: Logistic Regression (Coding)
[Lecture 3] AI and Deep Learning: Logistic Regression (Coding)[Lecture 3] AI and Deep Learning: Logistic Regression (Coding)
[Lecture 3] AI and Deep Learning: Logistic Regression (Coding)Kobkrit Viriyayudhakorn
 
[Lecture 4] AI and Deep Learning: Neural Network (Theory)
[Lecture 4] AI and Deep Learning: Neural Network (Theory)[Lecture 4] AI and Deep Learning: Neural Network (Theory)
[Lecture 4] AI and Deep Learning: Neural Network (Theory)Kobkrit Viriyayudhakorn
 
[Lecture 2] AI and Deep Learning: Logistic Regression (Theory)
[Lecture 2] AI and Deep Learning: Logistic Regression (Theory)[Lecture 2] AI and Deep Learning: Logistic Regression (Theory)
[Lecture 2] AI and Deep Learning: Logistic Regression (Theory)Kobkrit Viriyayudhakorn
 
Lecture 12: React-Native Firebase Authentication
Lecture 12: React-Native Firebase AuthenticationLecture 12: React-Native Firebase Authentication
Lecture 12: React-Native Firebase AuthenticationKobkrit Viriyayudhakorn
 
Lecture 3 - ES6 Script Advanced for React-Native
Lecture 3 - ES6 Script Advanced for React-NativeLecture 3 - ES6 Script Advanced for React-Native
Lecture 3 - ES6 Script Advanced for React-NativeKobkrit Viriyayudhakorn
 
สร้างซอฟต์แวร์อย่างไรให้โดนใจผู้คน (How to make software that people love)
สร้างซอฟต์แวร์อย่างไรให้โดนใจผู้คน (How to make software that people love)สร้างซอฟต์แวร์อย่างไรให้โดนใจผู้คน (How to make software that people love)
สร้างซอฟต์แวร์อย่างไรให้โดนใจผู้คน (How to make software that people love)Kobkrit Viriyayudhakorn
 
React Native Firebase Realtime Database + Authentication
React Native Firebase Realtime Database + AuthenticationReact Native Firebase Realtime Database + Authentication
React Native Firebase Realtime Database + AuthenticationKobkrit Viriyayudhakorn
 
[React-Native Tutorial 10] Camera Roll / Gallery / Camera / Native Modules by...
[React-Native Tutorial 10] Camera Roll / Gallery / Camera / Native Modules by...[React-Native Tutorial 10] Camera Roll / Gallery / Camera / Native Modules by...
[React-Native Tutorial 10] Camera Roll / Gallery / Camera / Native Modules by...Kobkrit Viriyayudhakorn
 

More from Kobkrit Viriyayudhakorn (20)

Thai E-Voting System
Thai E-Voting System Thai E-Voting System
Thai E-Voting System
 
Thai National ID Card OCR
Thai National ID Card OCRThai National ID Card OCR
Thai National ID Card OCR
 
Chochae Robot - Thai voice communication extension pack for Service Robot
Chochae Robot - Thai voice communication extension pack for Service RobotChochae Robot - Thai voice communication extension pack for Service Robot
Chochae Robot - Thai voice communication extension pack for Service Robot
 
ศักยภาพของ AI สู่โอกาสใหม่แห่งการแข่งขันและความสำเร็จ (Thai AI updates in yea...
ศักยภาพของ AI สู่โอกาสใหม่แห่งการแข่งขันและความสำเร็จ (Thai AI updates in yea...ศักยภาพของ AI สู่โอกาสใหม่แห่งการแข่งขันและความสำเร็จ (Thai AI updates in yea...
ศักยภาพของ AI สู่โอกาสใหม่แห่งการแข่งขันและความสำเร็จ (Thai AI updates in yea...
 
Thai Text processing by Transfer Learning using Transformer (Bert)
Thai Text processing by Transfer Learning using Transformer (Bert)Thai Text processing by Transfer Learning using Transformer (Bert)
Thai Text processing by Transfer Learning using Transformer (Bert)
 
How Emoticon Affects Chatbot Users
How Emoticon Affects Chatbot UsersHow Emoticon Affects Chatbot Users
How Emoticon Affects Chatbot Users
 
หัวใจของปัญญาประดิษฐ์ (Gradient Descent ทำงานอย่างไร)
หัวใจของปัญญาประดิษฐ์ (Gradient Descent ทำงานอย่างไร)หัวใจของปัญญาประดิษฐ์ (Gradient Descent ทำงานอย่างไร)
หัวใจของปัญญาประดิษฐ์ (Gradient Descent ทำงานอย่างไร)
 
Check Raka Chatbot Pitching Presentation
Check Raka Chatbot Pitching PresentationCheck Raka Chatbot Pitching Presentation
Check Raka Chatbot Pitching Presentation
 
[Lecture 3] AI and Deep Learning: Logistic Regression (Coding)
[Lecture 3] AI and Deep Learning: Logistic Regression (Coding)[Lecture 3] AI and Deep Learning: Logistic Regression (Coding)
[Lecture 3] AI and Deep Learning: Logistic Regression (Coding)
 
[Lecture 4] AI and Deep Learning: Neural Network (Theory)
[Lecture 4] AI and Deep Learning: Neural Network (Theory)[Lecture 4] AI and Deep Learning: Neural Network (Theory)
[Lecture 4] AI and Deep Learning: Neural Network (Theory)
 
[Lecture 2] AI and Deep Learning: Logistic Regression (Theory)
[Lecture 2] AI and Deep Learning: Logistic Regression (Theory)[Lecture 2] AI and Deep Learning: Logistic Regression (Theory)
[Lecture 2] AI and Deep Learning: Logistic Regression (Theory)
 
Lecture 12: React-Native Firebase Authentication
Lecture 12: React-Native Firebase AuthenticationLecture 12: React-Native Firebase Authentication
Lecture 12: React-Native Firebase Authentication
 
Thai Word Embedding with Tensorflow
Thai Word Embedding with Tensorflow Thai Word Embedding with Tensorflow
Thai Word Embedding with Tensorflow
 
Lecture 3 - ES6 Script Advanced for React-Native
Lecture 3 - ES6 Script Advanced for React-NativeLecture 3 - ES6 Script Advanced for React-Native
Lecture 3 - ES6 Script Advanced for React-Native
 
สร้างซอฟต์แวร์อย่างไรให้โดนใจผู้คน (How to make software that people love)
สร้างซอฟต์แวร์อย่างไรให้โดนใจผู้คน (How to make software that people love)สร้างซอฟต์แวร์อย่างไรให้โดนใจผู้คน (How to make software that people love)
สร้างซอฟต์แวร์อย่างไรให้โดนใจผู้คน (How to make software that people love)
 
Startup Pitching and Mobile App Startup
Startup Pitching and Mobile App StartupStartup Pitching and Mobile App Startup
Startup Pitching and Mobile App Startup
 
React Native Firebase Realtime Database + Authentication
React Native Firebase Realtime Database + AuthenticationReact Native Firebase Realtime Database + Authentication
React Native Firebase Realtime Database + Authentication
 
React Native Firebase
React Native FirebaseReact Native Firebase
React Native Firebase
 
React-Native Lecture 11: In App Storage
React-Native Lecture 11: In App StorageReact-Native Lecture 11: In App Storage
React-Native Lecture 11: In App Storage
 
[React-Native Tutorial 10] Camera Roll / Gallery / Camera / Native Modules by...
[React-Native Tutorial 10] Camera Roll / Gallery / Camera / Native Modules by...[React-Native Tutorial 10] Camera Roll / Gallery / Camera / Native Modules by...
[React-Native Tutorial 10] Camera Roll / Gallery / Camera / Native Modules by...
 

Recently uploaded

Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsAndrey Dotsenko
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsPrecisely
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentationphoebematthew05
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfjimielynbastida
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfngoud9212
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 

Recently uploaded (20)

Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power Systems
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentation
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdf
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdf
 
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 

ITS488 Lecture 6: Music and Sound Effect & GVR Try out.

  • 1. Lecture 6: Music and Sound Effect & GVR Try out. Dr. Kobkrit Viriyayudhakorn iApp Technology Limited kobkrit@iapp.co.th ITS488 (Digital Content Creation with Unity - Game and VR Programming)
  • 4. Getting Resource from Unity Asset Store
  • 5. Audio Kit Download Audio Kit at 
 http://bit.ly/2iVDB7v
  • 6. Import Audio Kit 1. Menu Bar > Assets > Import Package > Custom Package... 2. Select the "AudioKit.unitypackage" 3. Make sure that all files 
 are selected, and then
 Press "Import"
  • 8. Adding Music to the Game 1. Select "Scene 1". Right click at
 Hierarchy > Audio > Audio Source 2. Drag the "music...come..."
 to the Audio Source
  • 9. Configure the Music 1. Select Audio Source 2. Checked at • Play On Awake • Loop 3. Run "Play" to Test.
  • 10. Exercise 1: Add a sound to Game Over. • Find the sound that seems most appropriate to you. • Should it be looping or not? • Add the audio source to the Game Over scene.
  • 11. Adding Sound Effect to Ball 1. Open the Scene 2 > ShootHoopKit > 
 Drag the ball to the Hierarchy windows 2. Select the ball at the right inspector windows >
 Add Component > Audio Source 3. The attached audio source
 is added into the Ball Game object
  • 12. Trigger Sound Effect by Code 1. Drag a drop Sound file. the impact_deep_thud_bounce sound file into the AudioClip 2. Add the new C# script, "BallBounceSound.cs"
  • 13. BallBounceSound.cs 2. Drag the BallBounceSound.cs to attached 
 with the ball game object. >> 1. Writing the above code. Trigger Sound Effect by Code
  • 14. Make the customized ball as the prefab 1. Press "Play" now, We will heard 
 only the single drop of sounds.
 Even you firing multiple ball. 2. Drag the customized ball as 
 the ball prefab. 3. Press Play again.
 Now you will heard multiple
 drop sounds.
  • 15. Exercise 2: Adding a scoring sound. • Add an audio source component. • Find a good scoring sound. • Trigger in the appropriate place.
  • 16. Solution for Exercise 2 • Enter the ScoreCount.cs, Add the AudioSource part at IncreaseScore Function.
  • 17. 1. Select "ScoreCount" Game Object,
 At the inspector windows, Add "Audio source". 2. Drag and drop "Chime_ball_02" at the AudioClip part.
 Unchecked "Play On Awake checkbox.
  • 19.
  • 20. Make our life easier with Google VR SDK
  • 21.
  • 22. Google VR Installation • https://developers.google.com/vr/unity/download
  • 23. Making a new project
  • 24. Import GVR unity package 1. Assets > Import Package > Custom Package.... 2. Select GoogleVRForUnity_1.110.0.unitypackage 3. Make sure that all items are checked
 and then "Import"
  • 26. Play around with GVR Demo 1. File > Build Settings... 1. Tap "Add Open Scenes" 2. Select iOS 3. Click "Switch Platform"
  • 27. Change to Virtual Reality Project 1. Click on "Player Settings" 2. At the XR Settings,
 Select "Virtual Reality Supported" and Add "Cardboard" to Virtual Reality SDK
  • 28. Test on iOS 1. Connect with iOS phone to the machine.
 2. Press "Build and Run"
  • 29. Fast VR project using GVR 1. Create a New Empty Scene 2. Add Cube into the Scene,
 Make it in front of the Camera 3. Play
 You can not move any view.
  • 30. 1. Go to Google VR Assets > Prefabs Using GVR Prefab 2. Import the prefab like this...
  • 31. Now you can move in VR • Shift + Move Mouse = Change Orientation • Shift + Left Mouse Button = ClickButton • Shift + Right Mouse Button = AppButton • Shift + Middle Mouse Button = HomeButton/Recenter • Shift + Ctrl = IsTouching • Shift + Ctrl + Move Mouse = Change TouchPos
  • 32. There is much more in Google VR • A simple reticle prefab and associated scripts for gaze-based user interaction. • User head tracking. • Side-by-side stereo rendering. • Detecting user interaction with the system (via trigger or controller). • Automatic stereo configuration for a specific VR viewer. • Distortion correction for a VR viewer's lenses. • An alignment marker to help center the screen under the lenses when you insert your phone into a viewer. • Automatic gyro drift correction.
  • 33. Q/A