71
edits
Junyuan WU (talk | contribs) No edit summary |
Junyuan WU (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
'''1.open unity and create a new Unity project.''' | '''1.open unity and create a new Unity project.''' | ||
[[File:unity start]] | [[File:unity start.png]] | ||
Line 10: | Line 10: | ||
here I create a cube and a sphere. | here I create a cube and a sphere. | ||
[[File:add new object]] | [[File:add new object.png]] | ||
[[File:new object in scene]] | [[File:new object in scene.png]] | ||
'''3. add component to camera''' | '''3. add component to camera''' | ||
[[File:select camera]] | [[File:select camera.png]] | ||
select camera in hierarchy,single click it. | select camera in hierarchy,single click it. | ||
[[File:add component]] | [[File:add component.png]] | ||
click the right of table to add component to the camera. | click the right of table to add component to the camera. | ||
[[File:new script]] | [[File:new script.png]] | ||
select a new script | select a new script | ||
[[File:script name]] | [[File:script name.png]] | ||
enter a name for this script | enter a name for this script | ||
[[File:write code]] | [[File:write code.png]] | ||
double click the script in Assets,then you will get a script widow, you can write code in it. | double click the script in Assets,then you will get a script widow, you can write code in it. | ||
Line 42: | Line 42: | ||
this code is for camera, then create a gameobject, this gameobject is the cube, the capture system will send the position of the root bone to the cube, then the script will make the camera follow the cube. | this code is for camera, then create a gameobject, this gameobject is the cube, the capture system will send the position of the root bone to the cube, then the script will make the camera follow the cube. | ||
[[File:code]] | [[File:code.png]] | ||
'''5.set the data related to the capture system.''' | '''5.set the data related to the capture system.''' | ||
[[File:right table]] | [[File:right table.png]] | ||
Then in the right table, you can set the remote IP and the port of the main computer. | Then in the right table, you can set the remote IP and the port of the main computer. |
edits