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:25] – 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 21: | Line 23: | ||
| - 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 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. | ||
| - | ===== Add Motion Caputre Stream for Rigid Body ===== | + | ===== Add Motion Caputre Stream for a Rigid Body ===== |
| - | To add a | + | To add motion capture live data to a rigid body (e.g. camera), you need to add the //Optitrack Rigid Body// Script as a Component to your object: |
| - 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 | ||
| + | - Run Play Mode | ||
| + | {{: | ||
| + | {{: | ||
| - | Drag the OptitrackSkeletonAnimator to from the character by remove component | + | {{:: |
| - | Add Client Prefab to scene | + | {{: |
| + | {{: | ||
| + | {{: | ||
| - | Set Skeleton Name to Motive Character Name | ||
| - | Run in Background in File > Build Settings > Player Settings activate | + | ===== 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/ | ||
| + | |||
| + | - Drag & Drop your character into Scene Hierarchy | ||
| + | - Open Asset Folder // | ||
| + | - Drag & Drop // | ||
| + | - Open Inspector of character and show //Optitrack Skeleton Animator (Script)// Component | ||
| + | - 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 //Skeleton Asset Name// to Asset Name of corresponding Motive Skeleton | ||
| + | - Run Play Mode | ||
| + | |||
| + | {{:: | ||
| + | {{: | ||
| + | |||
| + | {{:: | ||
| + | |||
| + | {{: | ||
| + | {{: | ||
| + | {{:: | ||
| + | |||
| + | {{: | ||
| + | |||
| + | |||
| + | ===== Enable Background running ===== | ||
| + | |||
| + | Run in Background in File > Build Settings > Player Settings activate | ||
| Line 87: | 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.1526275552.txt.gz · Last modified: by 178.197.235.83
