-
Notifications
You must be signed in to change notification settings - Fork 717
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(Facemesh): eyes and @mediapipe/tasks-vision facemesh v2 * chore: simplifying with visionTasks transformationMatrix and blendshapes * chore: facemesh final * feat: facecontrols component * fix: facelandmarker suspend + JSON.stringify options dep * fix: webcam suspend * fix: missing suspend dep * chore: passing args * fix: missing dep * docs: adding csb ex * docs: update thumb * docs: facelandmarker README entry * chore: removing unused vars in story * fix: remove circular dep * docs: wording * docs: rVFC polyfill note
- Loading branch information
Showing
9 changed files
with
1,079 additions
and
102 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* eslint react-hooks/exhaustive-deps: 1 */ | ||
import * as THREE from 'three' | ||
import * as React from 'react' | ||
|
||
import { Setup } from '../Setup' | ||
|
||
import { FaceLandmarker, FaceControls, Box } from '../../src' | ||
|
||
export default { | ||
title: 'Controls/FaceControls', | ||
component: FaceControls, | ||
decorators: [(storyFn) => <Setup cameraFov={60}>{storyFn()}</Setup>], | ||
} | ||
|
||
function FaceControlsScene(props) { | ||
return ( | ||
<> | ||
<color attach="background" args={['#303030']} /> | ||
<axesHelper /> | ||
|
||
<React.Suspense fallback={null}> | ||
<FaceLandmarker> | ||
<FaceControls {...props} /> | ||
</FaceLandmarker> | ||
</React.Suspense> | ||
|
||
<Box args={[0.1, 0.1, 0.1]}> | ||
<meshStandardMaterial /> | ||
</Box> | ||
</> | ||
) | ||
} | ||
|
||
export const FaceControlsSt = (args) => <FaceControlsScene {...args} /> | ||
FaceControlsSt.args = { | ||
eyes: undefined, | ||
} | ||
|
||
FaceControlsSt.argTypes = { | ||
eyes: { control: { type: 'boolean' } }, | ||
} | ||
|
||
FaceControlsSt.storyName = 'Default' |
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
Oops, something went wrong.
1254b90
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
drei – ./
drei.vercel.app
drei-git-master-pmndrs.vercel.app
drei-pmndrs.vercel.app
drei.pmnd.rs
drei.react-spring.io