GithubHelp home page GithubHelp logo

annavitali / framework-collaborativexr Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 290.95 MB

This repository contains an experimental framework for the realization of shared experiences in eXtended Reality.

License: MIT License

JavaScript 100.00%
augmented-reality collaboration extended-reality mixed-reality virtual-reality webxr

framework-collaborativexr's Introduction

CollaborativeXR - Framework

This repository contains an experimental framework for the realization of shared experiences in eXtended Reality.

Dependencies

The dependencies that the framework presents are reported in the following table.

Technology Dependency
Croquet.os https://cdn.jsdelivr.net/npm/@croquet/[email protected]
Babylon.js https://cdn.babylonjs.com/babylon.js
Babylon.gui https://preview.babylonjs.com/gui/babylon.gui.min.js
Babylon.loaders https://cdn.babylonjs.com/loaders/babylonjs.loaders.min.js

Application template

Moving to the branch applicationTemplate inside the src/html/template.html file there is an initial template by which you can start to write your applications. The main part is reported below.

  1. Get an apiKey and an appId through the portal of Croquet (https://croquet.io/account/)
  2. Start a session
  3. Initialize the scene
  4. Create and define the elements properties you want within the scene
  5. Activate the render loop
        import * as CollaborativeXR from "../../collaborativeXR.min.js"

        const apiKey =  'yourApiKey';
        const appId = 'yourAppId';
        
        const sessionManager = new CollaborativeXR.SessionManager();
        await sessionManager.startSession(apiKey, appId);
        const scene = new CollaborativeXR.Scene(sessionManager);
        scene.initializeScene();
        
        //here the code of your application
        
        scene.activateRenderLoop();

Example

Moving on the example branch, you will have the opportunity to see some application examples made through the framework.

Simple Animation

Inside the file src/html/example_animation.html, you can find out how to create simple holograms and associate them with an animation that is started and stopped via a menu.

Alt Text

Hologram Manipulation

Inside the file src/html/example_robot.html you can find out how to import holograms defined by a file in .gltf format, and how to associate to them a manipulator menu that allows you to move and scale them.

Alt Text

Simple Application

Inside the file src/html/example_animal.html you can find out how to make a simple application consisting of both imported holograms and simple holograms, allow their manipulation, and create GUI for user interaction.

Alt Text

framework-collaborativexr's People

Contributors

annavitali avatar

Watchers

 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.