craigomatic / IMMLjs

Javascript implementation of the IMML spec

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IMMLjs

A runtime implementation of the IMML specification in JavaScript, powered by Babylon.js

Usage

Include references to Babylon.js and IMML.js in your HTML:

    <script src="https://preview.babylonjs.com/Ammo.js"></script>
    <script src="https://preview.babylonjs.com/babylon.js"></script>
    <script src="https://preview.babylonjs.com/loaders/babylonjs.loaders.min.js"></script>
    <script src="https://code.jquery.com/pep/0.4.3/pep.js"></script>
    <script src="js/imml.js"></script>

Call imml.loadFromUri to load a scene from an IMML document hosted somewhere:

<script type="text/javascript">        
    imml.loadFromUri('imml/scene.imml');
</script>

Sample

The include sample uses asp.net core to host a simple website which is capable of loading IMML documents.

About

Javascript implementation of the IMML spec

License:MIT License


Languages

Language:JavaScript 100.0%