129
edits
(11 intermediate revisions by 4 users not shown) | |||
Line 14: | Line 14: | ||
== Demonstration == | == Demonstration == | ||
{{#ev:youtube|https://www.youtube.com/watch?v=CroYcuakmjM|1000|left|A Midsummer Night's Dream|frame}} | |||
[https://www.youtube.com/watch?v=CroYcuakmjM '''Demonstration Viedo'''] | [https://www.youtube.com/watch?v=CroYcuakmjM '''Demonstration Viedo'''] | ||
Line 23: | Line 23: | ||
== Appendix == | == Appendix == | ||
[[File:FaceDetectionOutput.jpg]] | [[File:FaceDetectionOutput.jpg|left]] | ||
'''Data Input:''' <br> | |||
· Getting data (the position X and Y of the center of face and the size of face) by face detection <br> | |||
· Sending data from processing to Max/Msp by OSC <br> | |||
· Another processing file sending the same data to Unity by using different port <br> | |||
<br style="clear:both;"> | |||
[[File:ProcessingToMaxMsp.jpg|left]] | |||
'''Data Transfer:''' <br> | |||
· Receiving data from processing by OSC <br> | |||
· Only keeping number from the message by using 'zl slice' <br> | |||
· Dividing number into three usable data by using 'unpack' <br> | |||
· Sending data separately from Yun's laptop to Xiangzhen's laptop in Max/Msp by OSC <br> | |||
<br style="clear:both;"> | |||
[[File:SoundEffect&BG.jpg|left]] | |||
'''Audio Output:''' <br> | |||
· Receiving data from Yun's Max/Msp by OSC <br> | |||
· Control volumes of 4 corner's sound effects by building different functions with data received <br> | |||
<br style="clear:both;"> | |||
[[File:ProcessingToUnity.jpg|left]] | |||
'''Data Using in Unity:''' <br> | |||
· Receiving data from processing by OSC <br> | |||
· Dealing with function call between js and C# file<br> | |||
· Using 'x' and 'y' data sent by Yun's laptop to control the quaternion of the camera<br> | |||
· Connect TUIO app with Laptop <br> | |||
<br style="clear:both;"> | |||
[[File: | [[File:TuioPad.jpg|left]][[File:ScreenTouch.jpg]] | ||
'''Data Getting by phone:''' <br> | |||
· Using the app TuioPad to get screen touch data by phone <br> | |||
<br style="clear:both;"> | |||
[[File: | [[File:UnityTerrain.jpg|left]] | ||
'''Terrain Creation and Particular System in Unity:''' <br> | |||
· Build a terrain -- tree (5 styles) --build grass --adjust parameters <br> | |||
· Create skybox, light environment, windzone <br> | |||
· Create glow warm and falling leaves particle system <br> | |||
<br style="clear:both;"> | |||
[[File: | [[File:scripts_1.jpg|left]] | ||
''Scripts_1:''' <br> | |||
· Refer to unity asset "firstcharactorcontroller" <br> | |||
· Variable definitions <br> | |||
· Initializing the transform of camera <br> | |||
· Getting data from osc <br> | |||
<br style="clear:both;"> | |||
[[File: | [[File:scripts_3.jpg|left]] | ||
''Scripts_2:''' <br> | |||
· Set the range of data <br> | |||
· Using function of Quaternion to change rotation of the camera<br> | |||
<br style="clear:both;"> |
edits