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 15: Line 15:
'''SendToPort''': is where we type in the UDP Port set in The Captury. Actually it's -- '''1065''' --
'''SendToPort''': is where we type in the UDP Port set in The Captury. Actually it's -- '''1065''' --
<br>
<br>
'''ListenerPort''': can be random and should be used in '''Step 3'''
'''ListenerPort''': can be random and should be used in '''Step3'''
<br>
<br>
<br>
<br>
Line 23: Line 23:
[[File:oscreciever1.png]]
[[File:oscreciever1.png]]
<br>
<br>
===Step 2===
===Step2===
Before we go further we have to first set up variables for each coordinate because those will recieve values from the OSCMessage
Before we go further we have to first set up variables for each coordinate because those will recieve values from the OSCMessage
<br>
<br>
Line 31: Line 31:
[[File:oscreciever2.png]]
[[File:oscreciever2.png]]
<br>
<br>
===Step 3===
===Step3===
Here is where we configure the port as mentioned in Step 1.  
Here is where we configure the port as mentioned in Step1.  
<br>
<br>
<br>
<br>
[[File:oscreciever3.png]]
[[File:oscreciever3.png]]
===Step 4===
===Step4===
This is our Update Function:
This is our Update Function:
<br>
<br>
All values which will be parsed from Step 5 will be constantly updated here.
All values which will be parsed from Step5 will be constantly updated here.
<br>
<br>
We can now chose even if we want the objects to be transformed or rotated or whatever.
We can now chose even if we want the objects to be transformed or rotated or whatever.
Line 47: Line 47:
<br>
<br>
[[File:oscreciever4.png]]
[[File:oscreciever4.png]]
===Step 5===
===Step5===
[[File:oscreciever5.png]]
[[File:oscreciever5.png]]