-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add osc app example and data format doc
- Loading branch information
1 parent
a65b765
commit 0c09ae2
Showing
10 changed files
with
99 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
## Data format | ||
**All data follows the OSC format. | ||
There are currently 5 channels of data.** | ||
- **/phiz/blendshapes** | ||
|
||
A float array [52 blendshape values] ranging from 0.0~1.0. | ||
|
||
- **/phiz/headRotation** | ||
|
||
A float array [x,y,z,w] ranging from -1.0 ~ 1.0. | ||
|
||
These are extra eye rotation roughly estimated from the eyeLookAt blendshapes. It's usually not needed since common avatar has eye rotation build in their blendshapes. | ||
- **/phiz/leftEyeRotation** | ||
|
||
A float array [x,y,z,w] ranging from -1.0 ~ 1.0. | ||
|
||
- **/phiz/rightEyeRotation** | ||
|
||
A float array [x,y,z,w] ranging from -1.0 ~ 1.0. | ||
|
||
All rotations are **quaternions in right-handed, Y-Up, Z-Forward** coordinate system. | ||
|
||
<img class="dark:hidden" src="https://github.com/SpookyCorgi/phiz/blob/main/assets/coordinate-axes-light.png?raw=true" alt="Coordinate axis"> | ||
<img class="hidden dark:block" src="https://github.com/SpookyCorgi/phiz/blob/main/assets/coordinate-axes-dark.png?raw=true" alt="Coordinate axis"> | ||
|
||
- **/phiz/version** | ||
|
||
A string of the current version of Phiz website. | ||
|
||
|
||
## Blendshapes | ||
Easy to copy format :) in order of the data array | ||
``` | ||
browInnerUp | ||
browDownLeft | ||
browDownRight | ||
browOuterUpLeft | ||
browOuterUpRight | ||
eyeLookUpLeft | ||
eyeLookUpRight | ||
eyeLookDownLeft | ||
eyeLookDownRight | ||
eyeLookInLeft | ||
eyeLookInRight | ||
eyeLookOutLeft | ||
eyeLookOutRight | ||
eyeBlinkLeft | ||
eyeBlinkRight | ||
eyeSquintLeft | ||
eyeSquintRight | ||
eyeWideLeft | ||
eyeWideRight | ||
cheekPuff | ||
cheekSquintLeft | ||
cheekSquintRight | ||
noseSneerLeft | ||
noseSneerRight | ||
mouthFunnel | ||
mouthPucker | ||
mouthRollUpper | ||
mouthRollLower | ||
mouthShrugUpper | ||
mouthShrugLower | ||
mouthClose | ||
mouthSmileLeft | ||
mouthSmileRight | ||
mouthFrownLeft | ||
mouthFrownRight | ||
mouthDimpleLeft | ||
mouthDimpleRight | ||
mouthUpperUpLeft | ||
mouthUpperUpRight | ||
mouthLowerDownLeft | ||
mouthLowerDownRight | ||
mouthPressLeft | ||
mouthPressRight | ||
mouthStretchLeft | ||
mouthStretchRight | ||
mouthLeft | ||
mouthRight | ||
jawOpen | ||
jawForward | ||
jawLeft | ||
jawRight | ||
tongueOut | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Watch the video below to see how the 52 blendshape values are used as a music synthesizer: | ||
|
||
[![Synthesizer controlled with facial mocap data from Phiz OSC App](http://img.youtube.com/vi/RIscBs1DQkk/0.jpg)](http://www.youtube.com/watch?v=RIscBs1DQkk "Synthesizer controlled with facial mocap data from Phiz OSC App") | ||
|
||
In this example, Pure Data is used to receive OSC data, which then controls various sine waves to play or shift their pitch. | ||
|
||
Find the Pure Data code in the [example folder of the GitHub repo](https://github.com/SpookyCorgi/phiz/blob/main/examples/OSC/face-oscillator.pd). |
35 changes: 0 additions & 35 deletions
35
site/src/routes/docs/osc-app/puredata-example/+page.svelte
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.