GMU:Tutorials/Networking/Explaining the OSCReciever Script from The Captury to Unity: Difference between revisions

From Medien Wiki
No edit summary
No edit summary
Line 16: Line 16:
<br>
<br>
'''ListenerPort''': can be random and should be used in '''Step 2'''
'''ListenerPort''': can be random and should be used in '''Step 2'''
 
<br>
<br>
The '''gameReciever''' variables is where you can drop your 3d object in later. You can define as many as you want.


[[File:oscreciever1.png]]
[[File:oscreciever1.png]]

Revision as of 17:03, 29 June 2016

OSCReciever.js

Explanation

The following script I will provide contains the whole setup you need to recieve data from The Captury and constantly updating it in Unity

Step1

In RemoteIP we set our connection for example to the sever we want to recieve the messages from or we can test it locally:

Local: 127.0.0.1
The Captury: kosmos.medien.uni-weimar.de

SendToPort: is where we type in the UDP Port set in The Captury. Actually it's -- 1065 --
ListenerPort: can be random and should be used in Step 2

The gameReciever variables is where you can drop your 3d object in later. You can define as many as you want.

Oscreciever1.png
Oscreciever2.png Oscreciever3.png Oscreciever4.png Oscreciever5.png