GMU:Digital Puppetry Lab/Group Leif/Rachel/Kei: Difference between revisions

From Medien Wiki
Line 15: Line 15:


== Visual Part ==
== Visual Part ==
Computer 2 splits the incoming OSC-messages to be read by unity on the same machine and sent to computer 3. This is easily done in MAX:
 
 
'''Computer 2 splits the incoming OSC-messages to be read by unity on the same machine and sent to computer 3. This is easily done in MAX:
'''
 
[[File:maxsplit.png]]
[[File:maxsplit.png]]


Unity gets the code with a script like this (google might help):
 
 
'''Unity gets the code with a script like this (google might help):'''
 
 
[[File:unityleif1.png]]
[[File:unityleif1.png]]


and makes the object move, in this case spin, depending on the OCS signal
 
 
'''and makes the object move, in this case spin, depending on the OCS signal
'''
 
[[File:unityleif2.png]]
[[File:unityleif2.png]]



Revision as of 13:20, 16 June 2016

Overview

Setupgraph.png

OSC message generation

We used cooked spaghetti to send Serial messages to processing via Arduino using the analogue pin and a voltage divider circuit with the spaghetti acting as a variable resistor. (More documentation of this here) Processing then sent on these values as OSC messages to Max MSP and Unity.


Shrs1.png Dplrs3.png Dplrs1.png Dplrs2.png


Visual Part

Computer 2 splits the incoming OSC-messages to be read by unity on the same machine and sent to computer 3. This is easily done in MAX:

Maxsplit.png


Unity gets the code with a script like this (google might help):


Unityleif1.png


and makes the object move, in this case spin, depending on the OCS signal

Unityleif2.png

Sound Part

Max patches for generating noise:

Noise generator.jpg