Skip to content

Snapchat/Spectacles-Sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spectacles Templates

A comprehensive collection of templates and examples for building Lens experiences on Spectacles.

spectacles-2024-hero

What you'll find here

This repository contains multiple template projects showcasing different features and capabilities available when building for Spectacles. Each template is a complete, working example that you can use as a starting point for your own projects.

Prerequisites

Git LFS Required

This repository requires Git LFS (Large File Storage) to be installed and configured. The templates contain large assets including 3D models, textures, images, and media files that are tracked using Git LFS.

Installing Git LFS

macOS (using Homebrew):

brew install git-lfs

Windows: Download and install from git-lfs.github.com

Linux:

# Debian/Ubuntu
sudo apt-get install git-lfs

# Fedora/Red Hat
sudo dnf install git-lfs

Setting Up Git LFS

After installing Git LFS, you need to set it up:

git lfs install

Cloning This Repository

When cloning this repository, Git LFS will automatically download the large files:

git clone <repository-url>
cd Spectacles-Templates

If you've already cloned the repository without Git LFS installed, you can fetch the LFS files:

git lfs install
git lfs pull

Verifying Git LFS

To verify that Git LFS is working correctly:

git lfs ls-files

This will show you all files tracked by Git LFS.

AI

AI-powered experiences and integrations

ai-playground

AI Playground

Sample project for AI in using Spectacles Remote Service Gateway.

agentic-playground

Agentic Playground

Advanced AI playground demonstrating agentic behaviors and autonomous interactions using Spectacles platform.

crop

Crop

Sample project showing how to "crop" the environment using hand gesture.

depth-cache

Depth Cache

Cache depth frames for pixel-to-3D projection with cloud-based vision models.

ai-music-gen

AI Music Gen

Generate AI music using Google's Lyria model. Combine genres, vibes, and instruments to create custom music tracks with 3D visualizations.

Getting Started

Essential projects to get you started with Spectacles development

fetch

Fetch

Sample project using the Spectacles Fetch API.

essentials

Essentials

Collection of foundational concepts for creating lenses in Lens Studio.

material-library

Material Library

Experimental project collecting Materials tested on Spectacles.

public-speaker

Public Speaker

Teleprompter lens for public speaking practice and presentation delivery.

spatial-image-gallery

Spatial Image Gallery

Convert your 2D images to 3D.

throw-lab

Throw Lab

Sample project demonstrating realistic throwing mechanics in AR.

spatial-persistence

Spatial Persistence

Template project using Spectacles Spatial Anchor API.

voice-playback

Voice Playback

Sample project for recording and playing back audio on Spectacles.

path-pioneer

Path Pioneer

Sample project for path creation and path walking experience.

snap-cloud

Snap Cloud

Database, real-time sync, cloud storage, and serverless functions using Snap Cloud (powered by Supabase).

spectacles-mobile-kit

Spectacles Mobile Kit

SDK for seamless communication between mobile applications and Lenses running on Spectacles via BLE.

SnapML

Machine learning projects using SnapML

snapml-starter

SnapML Starter

Demonstrates how to leverage SnapML on Spectacles for object detection using custom machine learning models.

snapml-chess-hints

SnapML Chess Hints

AI-powered chess move suggestions using computer vision and SnapML to detect pieces and provide intelligent assistance.

snapml-pool

SnapML Pool

Uses SnapML to detect a pool table with all 16 balls and pocket holes.

Navigation

Location-based and navigation experiences

custom-locations

Custom Locations

Map real life areas and create AR experiences around those locations.

outdoor-navigation

Outdoor Navigation

Outdoor navigation system using Map Component and Places API.

navigation-kit

Navigation Kit

An example project for indoors or outdoors navigation.

Connected Lenses

Multi-user collaborative experiences

shared-sync-controls

Shared Sync Controls

Real-time collaborative AR experience for shared controls.

tic-tac-toe

Tic Tac Toe

Sample Connected Lens project using Spectacles Sync Kit.

laser-pointer

Laser Pointer

Create laser pointers on a virtual object that are visible to all connected users.

high-five

High Five

Real-time collaborative AR experience for high-five interactions.

air-hockey

Air Hockey

Sample Connected Lens project using Spectacles Sync Kit.

think-out-loud

Think Out Loud

Social AR networking application with floating status panels and real-time connections.

spectacles-sync-kit

Spectacles Sync Kit

Minimal example of Spectacles Sync Kit transform synchronization across Connected Lenses.

BLE (Bluetooth Low Energy)

Bluetooth Low Energy connectivity projects

ble-arduino

BLE Arduino

Arduino board with an IMU sending euler angles from Arduino to Spectacles via BLE.

ble-playground

BLE Playground

General BLE playground for experimenting with Bluetooth Low Energy features on Spectacles.

ble-game-controller

BLE Game Controller

Interactive 3D character experience using Bluetooth game controllers with movement, animations, and haptic feedback.

Additional Resources

Getting Started

  1. Install Git LFS (see Prerequisites section above)
  2. Clone this repository with Git LFS enabled
  3. Open any project folder in Lens Studio
  4. Explore the templates and start building!

⚠️ Important: Make sure Git LFS is installed before cloning, otherwise large assets won't download correctly.

Contributing

We welcome contributions on existing project! Feel free to submit pull requests or open issues.


Built with 👻 by the Spectacles team