topical media & game development

talk show tell print

mobile-query-three-plugins-buffergeometry-examples-genericloader.htm / htm



  <!doctype html><title>Minimal tQuery Page</title>
  <script src="../../../build/tquery-bundle.js"></script>
  <script src="./genericloader.js"></script>
  <body><script>
          var world        = tQuery.createWorld().boilerplate().start();
          var object	= tQuery.createTorus().addTo(world);
  
          var url                = "./modelgeneric.bin"
          var loader        = new GenericLoader(url, function(tGeometry){
                  console.log('dddd', tGeometry)
                  //var material        = new THREE.MeshNormalMaterial();
                  var tMaterial        = new THREE.MeshBasicMaterial({
                          color        : 0xffffff,
                          map        : THREE.ImageUtils.loadTexture( "../../assets/images/ash_uvgrid01.jpg" )
                  });
                  var tMesh        = new THREE.Mesh(tGeometry, tMaterial);
                  world.add(tMesh);
          })
          
  </script></body>


(C) Æliens 04/09/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.