- All audio files currently uploaded in STYLY via the Music tab are 2D, meaning, no matter where you go in the scene, the volume of the music will stay the same. This is great for playing music or sounds in a scene where the sound is supposed to be everywhere. Examples of such scenes are the beach and a concert.
- Virtual Reality is all about creating an immersive experience. Sounds can greatly change the way we perceive Virtual Reality because it engages out sense of hearing on another level. We can get this done by changing the dimension of audio from 2D to 3D. This tutorial deals with how to do exactly that.
- Create an empty object and name it sounds. Create another empty object within it and name it “sound object”. You do not have to specifically follow this hierarchy. Now add an “Audio source” component in the object.
- You can check the “loop” and “Play On Awake” if you want.
- This step is the most important one. Setting Spatial Blend to 1 converts the audio into 3D from 2D.
- We can also modify 3D settings of the audio Source.
- Changing Max distance will limit the range on the audio. The further you are from the source, the lower the volume you will hear.
- You can also play with the Doppler effect (Doppler effect: audio frequencies change when an object is moving away or closer to the audio source)
- Woohoo! Now you know how to create 3D sounds in Virtual Reality. You can add as many sounds as you like.
For URDU or HINDI version of this tutorial, please click here.
Written by: Abdullah Sajjad