unity
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
unity [2018/05/14 08:11] – 178.197.235.83 | unity [2018/05/16 17:20] (current) – 10.150.0.28 | ||
---|---|---|---|
Line 5: | Line 5: | ||
Save new projects on the [[filer|Innovationlab Filer]] or on the [[git|ZHdK GIT Server]] in your project folder. | Save new projects on the [[filer|Innovationlab Filer]] or on the [[git|ZHdK GIT Server]] in your project folder. | ||
+ | |||
+ | {{:: | ||
===== Import a Character ===== | ===== Import a Character ===== | ||
Line 20: | Line 22: | ||
- Download Plugin from Optitrack Website [[http:// | - Download Plugin from Optitrack Website [[http:// | ||
- Install the Plugin in your unity project by doubleclicking the on the Plugin file or go to Asset > Import Pacakge > Import Custom Package... and select the Plugin package. | - Install the Plugin in your unity project by doubleclicking the on the Plugin file or go to Asset > Import Pacakge > Import Custom Package... and select the Plugin package. | ||
+ | |||
+ | {{:: | ||
+ | |||
{{:: | {{:: | ||
Line 34: | Line 39: | ||
{{: | {{: | ||
- | **Parameters (Motive & Unity on same PC)** | + | === Parameters (Motive & Unity on same PC) === |
Connection Type Multicast | Connection Type Multicast | ||
Local Address | Local Address | ||
Line 41: | Line 46: | ||
Server Data Port 1510 | Server Data Port 1510 | ||
Bone Naming Conv. Motive | Bone Naming Conv. Motive | ||
+ | |||
+ | Stream the data to Local Interface Loopback Address if Unity is running on same PC as Motive. | ||
{{: | {{: | ||
+ | {{:: | ||
| | ||
- | **Parameters (Motive on Mocap PC & Unity on Beamer PC)** | + | === Parameters (Motive on Mocap PC & Unity on Beamer PC) === |
Connection Type Multicast | Connection Type Multicast | ||
- | Local Address | + | Local Address |
- | Server Address | + | Server Address |
Server Command Port 1510 | Server Command Port 1510 | ||
Server Data Port 1510 | Server Data Port 1510 | ||
Bone Naming Conv. Motive | Bone Naming Conv. Motive | ||
| | ||
- | Check [[network|Network LAN IPs]] for other combinations. | + | Stream capture data in motive to Local Address if Unity is not running on the same PC as Motive. |
+ | |||
+ | {{:: | ||
+ | {{:: | ||
+ | |||
+ | Check [[network|Network LAN IPs]] for other configurations. | ||
Line 70: | Line 83: | ||
{{: | {{: | ||
- | {{: | + | {{:: |
+ | |||
+ | {{: | ||
{{: | {{: | ||
{{: | {{: | ||
- | | + | |
===== Add Motion Caputre Stream for a Character ===== | ===== Add Motion Caputre Stream for a Character ===== | ||
+ | |||
+ | Make sure you have a rigged character in unity (see [[unity|Import a Character from Maya]] or Import a Character from Mixamo) | ||
To add motion capture live data to a Character/ | To add motion capture live data to a Character/ | ||
Line 89: | Line 107: | ||
{{:: | {{:: | ||
{{: | {{: | ||
- | {{: | ||
+ | {{:: | ||
+ | |||
+ | {{: | ||
{{: | {{: | ||
- | {{:: | + | {{:: |
{{: | {{: | ||
- | |||
- | Drag the OptitrackSkeletonAnimator to from the character by remove component | ||
- | |||
- | Add Client Prefab to scene | ||
- | |||
- | Set Skeleton Name to Motive Character Name | ||
===== Enable Background running ===== | ===== Enable Background running ===== | ||
- | |||
Run in Background in File > Build Settings > Player Settings activate | Run in Background in File > Build Settings > Player Settings activate | ||
- | |||
- | |||
Line 119: | Line 130: | ||
F Focus on active selection | F Focus on active selection | ||
Ctrl+Alt+F | Ctrl+Alt+F | ||
- | |||
- | |||
===== Animation ===== | ===== Animation ===== | ||
- | Open Window > Animation | + | - Open Window > Animation |
- | Add Property to Animate | + | |
- | Press record | + | |
- | Change values to animate > a keyframe will be added | + | |
- | Scrub in Timeline and change values again | + | |
===== Animator ===== | ===== Animator ===== |
unity.1526278303.txt.gz · Last modified: 2018/05/14 08:11 by 178.197.235.83