Skip to content

Phase 3: Haptic Engine & Video Integration #3

@Stronga

Description

@Stronga
  • Integrate 360° Video: Add the video file and apply it as a VideoTexture to an inverted sphere in the Three.js scene.
  • Build Haptic Engine (hapticEngine.js):
    • Implement a loadTactFile() function to parse the .tact JSON file.
    • Implement start(videoElement) and stop() to manage the haptic clock.
    • Create the hapticUpdate() function with a 20ms setInterval.
  • Connect Engine to BLE: Call submitHapticFrame() from the hapticUpdate() function, passing the calculated frame data.
  • Sync with Video: Trigger hapticEngine.start() and stop() based on video play/pause events.
  • Full Sync Test: Deploy and verify that haptics are synchronized with the video on the Quest.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions