ワンクリックで
spectacles-mocopi-integration
Connect Sony Mocopi motion capture hardware to Spectacles using WebSockets for real-time skeletal tracking.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Connect Sony Mocopi motion capture hardware to Spectacles using WebSockets for real-time skeletal tracking.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Reference guide for 2D UI and screen-space interaction in Lens Studio — covering ScreenTransform anchors/offsets/size/pivot and coordinate conversions (localPointToScreenPoint, screenPointToLocalPoint, localPointToWorldPoint), ScreenImage (texture, stretch mode, color tint), Text component (content, font, alignment, color, size), ScreenRegionComponent for defining tap/touch areas, TouchComponent with TouchStartEvent/TouchMoveEvent/TouchEndEvent, tap input for phone lenses, LSTween UI animations (colorTo, moveTo on screen elements), multi-swatch color picker pattern, undo stack pattern, and common gotchas. Use this skill whenever a lens needs a 2D UI panel, tap interaction, on-screen buttons, text labels, color pickers, swipeable menus, or undo/redo — covering Drawing, Quiz, TappableQuestion, MemeSticker, MusicVideo, and HighScore examples.
Learn how to programmatically request and manage raw camera textures and crops.
Reference guide for face and body AR tracking in Lens Studio — covering FaceTrackingComponent setup (multi-face, faceIndex), FaceInset and FaceMask effects, 2D and 3D Face Attachments (hat/mouth/left_eye/right_eye anchors), Face Mesh UV texturing, Face Landmarks (68 keypoints), Face Expression weights for mouth-open/eye-blink detection, Eye Tracking component (left/right eye direction), Upper Body Tracking 3D asset (hips/spine/shoulder attachment points), Upper Body Mesh for seamless selfie occlusion, and Face Retouch/Eye Color/Face Liquify/Face Stretch effects. Use this skill for any phone or front-camera lens involving faces, selfie effects, makeup, face masks, 3D head ornaments, body tracking, or expression-driven animations — covering the vast majority of Snapchat lens content.
Learn how to dynamically instantiate prefabs algorithmically in grid or spherical patterns.
Implement proximity-based triggers and smooth tethering behaviors for interactive objects.
Learn how to track image markers and detach the tracked content into World Space in AR.
| name | spectacles-mocopi-integration |
| description | Connect Sony Mocopi motion capture hardware to Spectacles using WebSockets for real-time skeletal tracking. |
Sony mocopi is a mobile motion capture system that can stream skeletal data over a local network. Using the MocopiReceiver package, you can drive AR avatars and interactive characters in Spectacles lenses using real-time full-body motion capture.
Official site: Sony mocopi
MocopiWebSocketClient in Lens Studio to connect to the IP/Port of the host.SkeletonDefinition, which contains the hierarchical bone structure.FrameData packet arrives.The MocopiMainController manages the communication between the network client and the avatar.
import { MocopiWebSocketClient } from "./MocopiWebSocketClient";
import { MocopiAvatarController } from "./MocopiAvatarController";
@component
export class MyMocopiBridge extends BaseScriptComponent {
@input webSocketClient: MocopiWebSocketClient;
@input avatarController: MocopiAvatarController;
onAwake() {
this.webSocketClient.onSkeletonReceived = (skeleton) => {
// Initialize the avatar mesh with the correct bone count and hierarchy
this.avatarController.initializeAvatar(skeleton);
};
this.webSocketClient.onFrameReceived = (frame) => {
// Apply real-time rotations/positions to the avatar bones
this.avatarController.updateFrame(frame);
};
}
public connect() {
this.webSocketClient.connect();
}
}
Your 3D model must be rigged with a hierarchy that matches the mocopi bone structure (hips, spine, neck, head, and limbs).
[!TIP] Use the
ResetButtonpattern in your lens to allow users to recalibrate the avatar's world position if it drifts from the tracking center.
The logic below is extracted from the official MocopiReceiver.lspkg package, demonstrating the main orchestration logic for real-time motion capture.
See the reference guide for details.