In this video Scott Pagano provides an overview of the OSC (Open Sound Control) protocol. In this tutorial you learn what OSC is and how to use an OSCin CHOP to bring OSC data into our scene in TouchDesigner.
- In this chapter, we're going to look at how to control TouchDesigner via OSC, and OSC stands for open sound control. And it's just a protocol to be able to send messages between systems. So here we are just in our empty TouchDesigner file, here. And if I hit tab and go to chop, and type O-S-C, you see we have an OSC in and out. So I'm going to lay this OSC down right now. And you can see, there's a bunch of different parameters here, some network port options. And so in this scenario, we're going to use an app on a iPad where we can build interfaces that send messages when we move around sliders and trigger buttons.
Then go over Wi-fi, and then come in to TouchDesigner via this OSC in CHOP, and then we can wire those channels into whatever we'd like. And this is a really awesome way to be able to build this touchscreen, customizable interface to then control your TouchDesigner projects. So what we're going to do, we're going to go over to Chrome, and you can see that, first off, we have the open sound control Wiki page, which just talks about, you know, the fact that this is a protocol and voila. But down here, you can see that there's quite a number of applications that have OSC integrated.
You can see TouchDesigner is right here, and there's all sorts of applications that use this. There are some similarities to MIDI, which is a protocol to have music instruments communicate to each other, but OSC is a lot more flexible and allows for a lot more customization and different kinds of messages, as well as being able to send much more high-resolution information. Here we have the derivative Wiki page about the OSC in CHOP, and there's a bunch of other information here you can read about, about OSC in general, and how this CHOP gets used. The specific app we're going to use is called TouchOSC.
And so if you go to hexler.net/software/touchosc, you can see this app. And TouchOSC has two components. One, there's an app that actually can run on an iPad or an iPhone or an Android device, as well as an editor you use on your PC or your Mac to actually customize and design your user interface. And you can see down here, there's a bunch of different examples of all kinds of different cool interfaces you can build. And then over here, we just have the page for the Android version. So this is a really flexible, extensible thing we can do a lot of different customized control panels with.
The app is very inexpensive. It's just a couple dollars, and it really enables your iPad or Android device to become a really awesome custom wireless controller for TouchDesigner. So if we look at, we have an iPad Pro over here, and I have TouchOSC installed. I'm just going to open this up, and we're just going to do a quick little test. And this is just one of the default layouts that comes with it. And I'm going to go back over here to TouchDesigner. And we've got our OSC in Chop, and the only thing we're going to do right now is just change the network port from 10,000 to 8,000, 'cause that is the default port setup in TouchOSC, and so we just want to make sure those are set right.
We don't have to set any other receiving parameters on the OSC in. There's some things we do need to set in the app on the iPad, which we'll show you later. I just wanted to get this up and running so we could see this data come in so you can see this workflow, and then we'll dive in to how to actually get it all working. So I'm going to press play. And now I'm going to move around on this xy slider on the iPad, and now you can see we're getting that data in. If I move this slider, you can see we have other data, and as I move all these different elements, you see that we have this data coming in.
And it just coming in as CHOP channels in Touch. And so, obviously, we can now take these and pipe them into all sorts of things to control our user interface. And what we're going to do is we're going to build hooks from this into all the UI components we made so we can control our UI either from the computer with a mouse or from this wireless device. There's a lot of great potential for building all kinds of real time, interactive control systems, where we aren't tethered to actually being at the computer. All right, so next, I'm going to show you the TouchOSC editor, and we'll see how to actually build a UI on an iPad.
- Navigating the TouchDesigner interface
- TouchDesigner contexts—COMP, TOP, CHOP, SOP, MAT, and DAT
- Building a network for real-time 2D image processing
- Building a network with a real-time rendered 3D scene
- Post-processing a real-time 3D with real-time 2D image processing
- Importing images and video files
- Importing assets with FBX files
- Recording a 2D and 3D animation as movie files
- Controlling a TouchDesigner network via an iPad or iPhone with TouchOSC
- Using TouchDesigner for VR