Coder Social home page Coder Social logo

servetus / reality-accelerator-toolkit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from meta-quest/reality-accelerator-toolkit

0.0 0.0 0.0 242 KB

RATK (Reality Accelerator Tool Kit) simplifies the integration of Mixed Reality experiences in WebXR, making it easier for developers to bring their MR ideas to life.

Home Page: https://meta-quest.github.io/reality-accelerator-toolkit/

License: MIT License

JavaScript 21.83% TypeScript 75.54% HTML 2.63%

reality-accelerator-toolkit's Introduction

Reality Accelerator Toolkit

npm version language npm download license

Reality Accelerator Toolkit is a WebXR utilities library designed to simplify the integration of mixed reality features in WebXR applications. It is currently compatible with the three.js 3D library and aims to bridge the gap between low-level WebXR APIs and higher-level APIs provided by three.js. The library is built with the intent to be extensible and compatible with other 3D libraries in the future. It is designed to manage detected planes, anchors, and real-world hit test targets, and to automatically translate them to Object3D instances in the three.js scene, making it easier for developers to access and utilize them.

Features

  • ๐Ÿš€ Seamless integration with three.js
  • ๐ŸŒ Automatic tracking and updating of detected planes and anchors
  • ๐ŸŽฏ Real-world hit test target translation to Object3D instances in the three.js scene
  • ๐Ÿ› ๏ธ Extensible design for future compatibility with other 3D libraries

Getting Started

Prerequisites

three.js (latest version recommended)

Installation

Install the package via NPM:

$ npm install ratk

Usage

// Import the library
import { RealityAccelerator } from 'ratk';

// Create a new Reality Accelerator instance from three.js WebXRManager
const ratk = new RealityAccelerator(renderer.xr);

// Add all tracked plane and anchor objects to three.js scene
scene.add(ratk.root);

// Update the Reality Accelerator in your render loop
render() {
  ratk.update();
}

Documentation

API Reference

API documentation can be found here.

Example

An example application utilizing this library can be found here. Its source code is located in the example directory.

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.

reality-accelerator-toolkit's People

Contributors

facebook-github-bot avatar felixtrz avatar

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.