A
A
A
A
A
A
A
A
A

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

Using OSC in Unity

  1. Download the OscCore package. This will allow you to send and receive OSC messages in your Unity project.
  2. Create a new project in Unity, and from your downloads drag the OscCore.unitypackage file to your project's Assets folder.
  3. Notice how there's a new object in your hierarchy called OSC Input.
  4. If you click on that object and look at the Inspector you will see something like this. In the OSC Receiver section you can configure the port that Unity should listen to for incoming OSC messages. The sections bellow that show how can configure your message map to receive values for parameters, and they also allow you to map it to events in your scene. osccore1

Converting OSC params to our light's position

We can use this method. Here's the javascript implementation of that method.

function map(x, y) {
    return [
        x * Math.sqrt(1 - y * y / 2),
        y * Math.sqrt(1 - x * x / 2),
    ]
}

polarcoord