Skip to content

Live2D-Garage/CubismWebARSample

 
 

Repository files navigation

Cubism WebAR Sample

Cubism WebAR Sample is sample project that combines Live2D Cubism SDK for Web and AR.js to display Live2D model output from Live2D Cubism Editor on AR marker via webcam.

This application runs on a web browser. This makes it easy to enjoy AR content in a browser without installing an application.

You can display your Live2D models just by replacing model data, and you can use your own AR marker. You can promote your Live2D models by embedding AR marker in business cards or posters.

Read this in other languages: English, 日本語.

Demo

License

See LICENSE.md.

Recommended environment

Android iPhone, iPad PC
OS Android 7.0 or higher iOS 11 or higher Windows or macOS
Browser Google Chrome Safari Google Chrome

Documents (Japanese)

Known bugs

  • The eye tracking function does not work correctly depending on the value of scale item in model setting file
    • Eye tracking function is disabled in /src/lappdefine.ts
  • The display position of model changes between normal display and billboarding display
  • The display size of model changes depending on aspect ratio of device screen

Directory structure

.
├─ assets           # Resource files
│  ├─ css           # Style files
│  ├─ data          # AR.js camera data file
│  └─ models        # Live2D model files and AR.js marker file
├─ CubismWebSamples # Cubism SDK for Web (Git submodule)
├─ docs             # Document files about this application
├─ lib              # Third party files
├─ script           # Autorun scripts
└─ src              # Source code files

Third party

Name Version
AR.js 2.0.8

About

Web AR sample application combining Live2D Cubism SDK and AR.js

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •