Meta.js (Client)


Keywords
accessible, javascript, meta, open, reality, space, virtual, webgl
License
ISC
Install
npm install meta-client@0.0.0-c32

Documentation

Meta.js ๐Ÿ‘ฉโ€๐Ÿš€

Accessible Javascript Library For Virtual Reality ๐Ÿš€

Latest NPM release Build Status Dependencies https://metajs.org

๐Ÿš€ Why (did you come up with this)?

Spatial media like virtual reality or augmented reality is perceived in such a fundamentally different way than computer graphics as we know them that we need to find new ways to describe it. This is an approach.

Furthermore this is an attempt to create the most accessible virtual reality library possible.

๐ŸŽŠ Features

  • ๐Ÿ– Learn how to create and use code virtual (reality) space in minutes.
  • ๐Ÿ’ Code Virtual Reality like its the year you live in.
  • ๐Ÿคน๐Ÿป Write in the language you know with the tools you love.
  • ๐Ÿš€ Write one version of your code that works on any device (HTC Vive, Oculus Rift, Desktop, Mobile, etc.).
  • ๐Ÿฐ Grab a cube now, move a castle soon!

๐Ÿ’ Example

This example is written in three lines that can't be anymore intuitive.

import {Ground, Cube, on} from 'meta-client';

new Ground();

on('touch', (data) => new Cube().set(data.position));

๐Ÿ‘ฉโ€๐Ÿš€ Usage

Start within 3 minutes (via Parcel-Bundler):

You need to have Node.js (https://nodejs.org) installed.

(If you don't know how to use the terminal watch this.)

  1. Create a new directory and enter it.
mkdir meta && cd meta
  1. Initialize a npm repository and install Parcel-Bundler and Meta.
npm init && npm install parcel-bundler meta-client
  1. Create a index.html and a index.js file.
touch index.html index.js
  1. Add the following into index.html.
<html>
<body>
  <script src="./index.js"></script>
</body>
</html>
  1. Add the following into index.js.
import {Ground, Cube, on} from 'meta-client';

new Ground();

on('touch', (data) => new Cube().set(data.position));
  1. Start:
parcel index.html

Open http://localhost:1234/ in your browser.

One Line

Alternatively you can also put all steps together in a single line like this:

touch index.html index.js && echo '<html><body><script src="./index.js"></script></body></html>' >> ./index.html && echo "import {Ground, Cube, on} from 'meta-client';\nnew Ground();\non('touch', (data) => new Cube().set(data.position));" >> ./index.js && npm init -y && npm i parcel-bundler meta-client && parcel index.html

๐ŸŽ‰ Custom

git clone https://github.com/florianmaxim/meta
npm install
npm run build

๐Ÿ“• Wiki

Read the Wiki to learn how to use Meta.js.

๐Ÿ“š Docs

Read the full code documentation.

๐Ÿ’ฌ Slack

Join the Slack channel to talk about (virtual) space.

Packages

meta-client meta-console
npm npm
npm npm

Compatibility

VR Displays

Browser Version HTC Vive
Chromium 67.0.3371.0
Chrome 65.0.3325.162
Firefox Nightly 61.0a1

Desktop

Browser Version Status
Chrome 67.0.3396.99

Mobile

Browser Version Status
Chrome

Credits ๐Ÿ‘‘

As any other software this is based on thousands of layers of programming abstraction. The upper layers on which this is build on are Three.js (Javascript 3D library) and Oimo.js (Javascript physics engine).

References & Inspiration ๐Ÿคน

I probably learned most about space from Walter Lewin.

I probably learned most about toys from Julian Summer Miller.

That's basically what brought me here.

License ๐Ÿ”–

MIT

Manifesto ๐Ÿ“œ

Let's start to redefine space!