Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 1.04 KB

File metadata and controls

36 lines (27 loc) · 1.04 KB

Thingiview.js

A javascript (using Canvas and WebGL if available) 3D model viewer. Uses the Three.js 3D Engine.

Features

  • does all the standard Three.js things
  • is made of awesome

Example


		<script src="js/three.min.js"></script>
		<script src="js/Thingiview.js"></script>
    <script src="js/NormalControls.js"></script>

    <script>
      var filename = "/some/3d/model.js"; // URL of a Three.js model
      var thingiview = new Thingiview();

      loader = new THREE.JSONLoader(false);
      loadCallback = function ( geometry, materials ) {
        thingiview.addModel( geometry );
      };
      loader.load(filename, loadCallback);

      var animate = function() {
        requestAnimationFrame( animate );
        thingiview.render();
      }
      animate();
    </script>

models can be converted to the Three.js JSON format via mersh or any of the other exporters included in the three.js project