Skip to content

Snapchat/Spectacles-Sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spectacles Samples

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

Image Image Image Image Image Image Image Image Image

Sample project for AI in using Spectacles Remote Service Gateway.

agentic-playground

Agentic Playground

Image Image Image Image Image Image Image Image Image Image Image Image

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

crop

Crop

Image Image Image Image Image Image Image Image Image Image Image Image

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

depth-cache

Depth Cache

Image Image Image Image Image Image Image

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

ai-music-gen

AI Music Gen

Image Image Image Image Image Image Image Image

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

Image Image Image Image

Sample project using the Spectacles Fetch API.

essentials

Essentials

Image Image Image Image Image

Collection of foundational concepts for creating lenses in Lens Studio.

material-library

Material Library

Image Image Image Image

Experimental project collecting Materials tested on Spectacles.

public-speaker

Public Speaker

Image Image Image Image

Teleprompter lens for public speaking practice and presentation delivery.

spatial-image-gallery

Spatial Image Gallery

Image Image

Convert your 2D images to 3D.

throw-lab

Throw Lab

Image Image Image

Sample project demonstrating realistic throwing mechanics in AR.

spatial-persistence

Spatial Persistence

Image Image Image Image

Template project using Spectacles Spatial Anchor API.

voice-playback

Voice Playback

Image Image

Sample project for recording and playing back audio on Spectacles.

path-pioneer

Path Pioneer

Image Image Image

Sample project for path creation and path walking experience.

spectacles-mobile-kit

Spectacles Mobile Kit

Image

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

dj-specs

DJ Specs

Image Image Image Image

Interactive DJ turntable experience with realistic vinyl physics and multi-track audio mixing.

SnapML

Machine learning projects using SnapML

snapml-starter

SnapML Starter

Image Image Image Image Image

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

snapml-chess-hints

SnapML Chess Hints

Image Image Image Image Image Image

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

snapml-pool

SnapML Pool

Image Image Image Image Image Image

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

Navigation

Location-based and navigation experiences

custom-locations

Custom Locations

Image Image

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

outdoor-navigation

Outdoor Navigation

Image Image Image Image Image

Outdoor navigation system using Map Component and Places API.

navigation-kit

Navigation Kit

Image Image Image Image Image

An example project for indoors or outdoors navigation.

Connected Lenses

Multi-user collaborative experiences

shared-sync-controls

Shared Sync Controls

Image Image Image Image Image

Real-time collaborative AR experience for shared controls.

tic-tac-toe

Tic Tac Toe

Image Image Image Image Image

Sample Connected Lens project using Spectacles Sync Kit.

laser-pointer

Laser Pointer

Image Image Image Image Image

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

high-five

High Five

Image Image Image Image Image

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

air-hockey

Air Hockey

Image Image Image Image Image

Sample Connected Lens project using Spectacles Sync Kit.

think-out-loud

Think Out Loud

Image Image Image Image Image Image

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

spectacles-sync-kit

Spectacles Sync Kit

Image Image Image Image Image

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

Snap Cloud

Cloud-powered experiences using Snap Cloud (powered by Supabase)

snap-cloud

Snap Cloud

Image Image Image Image Image

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

world-kindness-day

World Kindness Day

Image Image Image Image

Demonstrating Snap Cloud integration with real-time database updates and a companion web app.

BLE (Bluetooth Low Energy)

Bluetooth Low Energy connectivity projects

ble-arduino

BLE Arduino

Image Image Image

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

ble-playground

BLE Playground

Image Image Image Image

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

ble-game-controller

BLE Game Controller

Image Image Image

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

About

Spectacles Sample Projects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •