GithubHelp home page GithubHelp logo

magicleap / prismatic Goto Github PK

View Code? Open in Web Editor NEW
38.0 10.0 9.0 5.93 MB

Prismatic is a declarative JS library for creating 3D content for the Helio browser.

Home Page: https://magicleap.com

License: Apache License 2.0

JavaScript 100.00%
magicleap helio helio-browser prismatic lumin-runtime 3d-browser-development spatial-web mixed-reality-web vr mr

prismatic's Introduction

drawing

Prismatic

Prismatic is a declarative JS library for creating 3D content for the Helio browser. Using simple HTML tags with inline attributes and CSS styling, you can easily render 3D content that pops off of the page and you can grab and place into your environment.

Installing

If you use npm, run npm i @magicleap/prismatic. Otherwise, you can download the latest release from the developer portal.

To add the minified version:

<script src="https://unpkg.com/@magicleap/prismatic"></script>

The source code for Prismatic is also hosted in a repository on GitHub.

See our Prismatic documentation.

For more information and guides are available on Magic Leap's Developer Portal.

For live samples and code snippets, highlighting the Web Platform's core features, checkout the Developer Samples website here.

What's new in Release v2.0.6

  • Use new event model introduced in Helio for Lumin OS 0.98.20. Prismatic library has to be updated to v2.0.6 maintain Extraction functionality.

Features of Prismatic v2

  • Faster model loading
  • Model instancing
  • Models scroll with page
  • Models can be extracted with raycast: Users no longer have to be interacting with the parent element on the page to extract them.
  • Extract 3D models from regular HTML elements.
  • Add instances of a 3D node on the fly.
  • <stage> tag: Devs can specify how much space their experience will take up.
  • Stage size can be updated via JS.

prismatic's People

Contributors

abalasubramaniyan-ml avatar dfranco-ml avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

prismatic's Issues

On latest lumin version browserWidth is not a function

Hello, I downloaded latest lumin OS for Magic Leap and I had the code described here: https://magicleaphelio.com/WebAPI/docs/prism-size.html

But js console threw error that browserWidth, browserHeight, browserBreadth are not functions, and indeed changing them to:

var width = window.mlWorld.browserWidth;
var height = window.mlWorld.browserHeight;
var breadth = window.mlWorld.browserBreadth;

works without problems. Maybe documentation should be updated?

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.