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 07:43] – 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. | ||
| + | |||
| + | {{:: | ||
| + | |||
| {{:: | {{:: | ||
| {{:: | {{:: | ||
| + | |||
| ===== Add OptiTrack Client to Scene ===== | ===== Add OptiTrack Client to Scene ===== | ||
| Line 33: | 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 40: | 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 60: | Line 74: | ||
| - Open Asset Folder // | - Open Asset Folder // | ||
| - | - Select Object in Hierarchy to you like to connection with motion capture data (e.g. camera) | ||
| - Drag & Drop // | - Drag & Drop // | ||
| - | - Open Inspector of Object and show //Optitrack Rigid Body (Script)// | + | - Open Inspector of Object and show //Optitrack Rigid Body (Script)// |
| - Click on circle symbol next to Streaming Client and select //Client - OptiTrack// client of the scene | - Click on circle symbol next to Streaming Client and select //Client - OptiTrack// client of the scene | ||
| - Set //Rigid Body Id// to StreamingID of corresponding Motive Rigid Body | - Set //Rigid Body Id// to StreamingID of corresponding Motive Rigid Body | ||
| Line 68: | Line 81: | ||
| {{: | {{: | ||
| - | {{: | + | {{: |
| - | + | ||
| - | {{: | + | |
| + | {{:: | ||
| + | {{: | ||
| + | {{: | ||
| {{: | {{: | ||
| - | | + | |
| ===== 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/ | ||
| + | - Drag & Drop your character into Scene Hierarchy | ||
| - Open Asset Folder // | - Open Asset Folder // | ||
| - | | + | - Drag & Drop //OptitrackSkeletonAnimator// to an character |
| - | | + | - Open Inspector of character |
| - | - Open Inspector of Object | + | - Click on circle symbol next to Streaming Client and select //Client - OptiTrack// client of the scene |
| - | - Click on circle symbol next to Streaming Client and select //Client - OptiTrack// client of the scene | + | - Click on circle symbol next to Destination Avatar and select Avatar of the character |
| - | - Set //Rigid Body Id// to StreamingID | + | - Set //Skeleton Asset Name// to Asset Name of corresponding Motive |
| - | | + | |
| - | | + | |
| + | {{:: | ||
| + | {{: | ||
| - | 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 112: | 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.1526276612.txt.gz · Last modified: by 178.197.235.83
