Skip to content

Latest commit

 

History

History
53 lines (43 loc) · 1.22 KB

README.md

File metadata and controls

53 lines (43 loc) · 1.22 KB

ThingJS

ThingJS is a web3d engine designed to help developers build "Digital Twin Visualization" applications more efficiently. Its goal is to achieve higher performance, richer visual effects, better scalability and easy-to-use.

Install

CDN

Global Build:

<script src="https://cdn.uino.cn/thingjs/thing.min.js"></script>
<script>
    const app = new THING.App();
</script>

NPM

To install ThingJS cli, use:

> npm install @thingjs/cli -g

Then you can create ThingJS project, use:

> thing create project-name

Usage

By default, ThingJS uses an element with div3d tag as the 3d rendering area.

<!DOCTYPE html>

<html lang="en">
    <head>
        <title>ThingJS</title>
        <meta charset="utf-8" />
        <script src="./libs/thing.min.js"></script>
    </head>

    <body style="margin: 0; padding: 0">
        <div id="div3d"></div>
    </body>
    
    <script type="module">
        const app = new THING.App({
            url: "./scenes/uino.gltf"
        });
    </script>
</html>

License

ThingJS engine is released under the BSD license.