A javascript (using Canvas and WebGL if available) 3D model viewer. Uses the Three.js 3D Engine.
- does all the standard Three.js things
- is made of awesome
<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