OSC, Soundfiles
video of this class
We looked again at communication between Unity and other apps (max/msp, pd)
using the OSC network protocol, plus showed how to play back (and extend)
soundfiles. We located them using the Application.dataPath Unity directive.
Plus we had fun messing around with parameters for various things (skyboxes,
water, etc.). And we made a prefab!
Links
- last week's class
-- the OSC stuff was also covered in week9. Use the links there for
more information and the OSC.cs script, etc.
Class Downloads
- week10-OSC-unity.zip
-- very simple Unity project with an observer game object
that sends coordinates
to an external Max/MSP or pd patch, and can also be controlled
from those patches.
- week10-ducks-unity.zip
-- the repeating soundfile of ducks in a Unity project. Quack!
- g6610-fall2021-week10-maxmsp-patches.zip
-- the max/msp patches for doing OSC sending and receiving, plus the simple
work-up of the repeating ducks sound.
- g6610-fall2021-week10-pd-patches.zip
-- the pd patches to do the OSC/ducks stuff.
- ducks.wav
-- the 25-second long recording of ducks from Whidbey Island. (note:
this is also included in the Assets of the "week10-ducks-unity"
project)
- clouds1.jpg
-- the photo from Whidbey Island we used to create a
different skybox background. (note:
this is also included in the Assets of the "week10-ducks-unity"
project)