Giter Site home page Giter Site logo

blazoid's Introduction

WebXR Samples

Welcome to WebXR Samples! This production-ready template app utilizes the new Reality Accelerator Toolkit to demonstrate various Mixed Reality features and is built with Three.js. It is designed to help you kickstart your own WebXR mixed reality projects with ease. The template app comes with the Becsy ECS and several other useful libraries integrated, so you can focus on building your app with the best tools available.

A live demo can be viewed here.

Features

  • ๐Ÿš€ Reality Accelerator Toolkit integration
  • ๐ŸŒ Built with Three.js
  • ๐Ÿงฉ Becsy Entity Component System (ECS)
  • ๐Ÿ“š Pre-configured with useful libraries
  • ๐Ÿ—๏ธ Production-ready template
  • ๐Ÿ› ๏ธ Easy customization for your own mixed reality apps

Getting Started

Follow these instructions to set up the template app and start building your own mixed reality project.

Prerequisites

Make sure you have the following installed on your system:

  • Node.js (v16.x or later recommended)
  • npm (v9.x or later recommended)

Installation

  1. Clone the repository and navigate to the project directory:
$ git clone [email protected]:meta-quest/webxr-samples.git
$ cd webxr-samples
  1. Install the dependencies:
$ npm install
  1. Run the development server:
$ npm run serve

The app will be available at http://localhost:8081/ in your browser. The development server will watch for changes in your source files and automatically reload the app.

Building for Production

This project contains GitHub workflow configuration that automatically builds and deploys the WebXR app to GitHub page.

To manually build the app for production, run the following command:

$ npm run build

This will generate a dist folder with the optimized files for deployment.

Making Changes

To start building your own mixed reality app, you can modify the template app's source code. The following files and folders are the main areas you'll be working with:

  • src/: The source code for your app
  • src/index.html: The HTML entry point for your app
  • src/index.js: The JavaScript entry point for your app
  • src/assets/: Any assets (models, textures, etc.) used in your app

Contributing

Please read CONTRIBUTING.md for details on how to contribute to the project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.