topical media & game development

talk show tell print

mobile-query-three-plugins-incubator-examples-line-basic.htm / htm



  <!doctype html><title>Minimal tQuery Page</title>
  <script src="../../../build/tquery-bundle-require.js"></script>
  <body><script>
  require([], function(){
  
          var world        = tQuery.createWorld().boilerplate().start();
  
          var object	= tQuery.createTorus().addTo(world);        
          
  
          var tMaterial        = new THREE.LineBasicMaterial({
                  color                : 0xff0000,
                  opacity                : 1,
                  linewidth        : 5, 
                  //vertexColors: THREE.VertexColors
          });        
          var tGeometry        = new THREE.Geometry();
  
          var point        = tQuery.createVector3(0,0,0)
          tGeometry.vertices.push( point );
  
          var point        = tQuery.createVector3(0,1,0)
          tGeometry.vertices.push( point );
          
          var point        = tQuery.createVector3(1,1,0)
          tGeometry.vertices.push( point );
  
          var point        = tQuery.createVector3(1,0,0)
          tGeometry.vertices.push( point );
  
          var line        = new THREE.Line(tGeometry, tMaterial);
          world.add(line)        
  });
  </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.