Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Add some sound to the scene to bring it alive.

...

  • Click on the Script icon.

  • Click on your script catalog.

  • Click on "Add New Script".

  • Name the script "Ambience".

  • Click on the checkmark to save the script.

  • Close the edit section by clicking the x button.

...

  • Collapse the script catalog by using the ">" icon.

  • Click on the Ambience script to open it on your screen.Collapse the script catalog by using the ">" icon.

...

Step 2: Add Scene Objects

...

  • Open the "Workshop Objects" catalog.

  • Find the "Speaker" object and drag it into the first frame of the script:

...

  • .

  • Use the “>” icon to collapse the menu.

  • Rename the frame "Scene Objects".  

  • Click outside of the text box to save the changes:

...

Image Modified

Step 3: Add Background Sound

  • Click the '+' on the main frame to create a new frame at the top level:

...


  • Open the Media Catalog by clicking on the media icon on the far right:

...

  • Click on the ">" icon to collapse the music catalog.

  • We want this background noise to continue throughout the scenario, so check the "loop" option.

  • Select the "Ambient" track. This means that this sound is the lowest priority if there are several sounds playing at once.

...

  • Save the Script.

  • Re-name the frame with the music “Background Sound”.

Before you test you need to launch this "Ambience" script from the Director Script:

  • Open the Director Script.

  • Create a new top-level frame and name it "Ambience".

  • Drag the Ambience script from the script catalog into the frame.

  • Save.

...

Note that the welcome message and the ambient music will start at the same time  - when you launch the experience. Here is what it would look like:GIF

  • STOPSave and Test. Play the scenario now. You will notice that the background sound is playing. It is too loud. We will adjust this in the next step.

...

  • Open your Ambience script.

  • Open the "Background " Sound Sound” frame.

  • Adjust the volume until it seems right to you. In this tutorial we have set it to 0.1:

...

...

  • Navigate back to the "Workplace Music" media catalog (click on the Media Items icon>click on "Workshop Music") and choose a song that you would like to be playing on the speaker on the floor. 

  • Drag and drop the music into the center of your screen.

  • Collapse the Media catalog by using the ">" icon.

...

In order to make it sound like the music is coming from the speaker, we give the sound an anchor.

  • Chose In the “Speaker Music” frame, choose "Speaker" from the anchor dropdown on the resource.

  • Loop the track so that it plays continuously.

  • Choose the "Ambient" track so that it has the lowest priority of sounds.

...

  • STOPSave and Test. You should now hear the ambient background noise and the sound coming from the speaker on the workshop floor.  You might also want to adjust the volume once you've tested it.

...

  • In the Ambience script, click on the "Background Sound" frame.

  • Change the Volume to 0.

  • Save the script.

...

  • STOPSave and Test. You should now hear only the sound coming from the speaker on the workshop floor. 

...

This is what your scenario will look like so far:Video

...

Training Notes

Key Takeaways from Tutorial 2

  • If users will be interacting with objects in the scene, you need to add those objects to a script via the Catalog.

  • Always test audio files to ensure optimal sound levels. 

  • Any audio on Ambient Track will have the lowest priority if there are several sounds playing at once.

  • When you anchor sounds to an object the sound will change based on your location in the scene.

  • Within the VR scene, use the green arrows to move around.

...