title: How make 3d text in three js
body: <p>I write a script by referencing <a href="http://mrdoob.github.io/three.js/docs/#Manual/Introduction/Creating_a_scene" rel="noreferrer">this doc</a> and <a href="https://github.com/mrdoob/three.js/blob/master/src/extras/geometries/TextGeometry.js" rel="noreferrer">this doc</a>
   my code is </p>
  
  <pre><code>&lt;script src="https://raw.github.com/mrdoob/three.js/master/build/three.js"&gt;&lt;/script&gt;
     &lt;script&gt; 
     var text = "my text",
  
              height = 20,
              size = 70,
              hover = 30,
  
              curveSegments = 4,
  
              bevelThickness = 2,
              bevelSize = 1.5,
              bevelSegments = 3,
              bevelEnabled = true,
  
              font = "optimer", // helvetiker, optimer, gentilis, droid sans, droid serif
              weight = "bold", // normal bold
              style = "normal"; // normal italic
     var scene = new THREE.Scene();
     var camera = new THREE.PerspectiveCamera(75, window.innerWidth/window.innerHeight, 0.1, 1000);
     var renderer = new THREE.WebGLRenderer(); 
     renderer.setSize(window.innerWidth, window.innerHeight);
     document.body.appendChild(renderer.domElement);
     var textGeo = new THREE.TextGeometry( text, {
  
                  size: size,
                  height: height,
                  curveSegments: curveSegments,
  
                  font: font,
                  weight: weight,
                  style: style,
  
                  bevelThickness: bevelThickness,
                  bevelSize: bevelSize,
                  bevelEnabled: bevelEnabled,
  
  
              });
  
  
  //  var geometry = new THREE.CubeGeometry(10,10,1);
    var material = new THREE.MeshBasicMaterial({color: 0x11ff00});
    var textGeo = new THREE.Mesh(textGeo, material); 
    scene.add(textGeo);
    camera.position.z = 10;
    function render() { 
        requestAnimationFrame(render);
        textGeo.rotation.x += 0.01;
        textGeo.rotation.y += 0.01;
        renderer.render(scene, camera); 
   } 
  
  
   render();
  
  
  &lt;/script&gt;
  </code></pre>
  
  <p>i can make cube and other geometry by changing the code slightly. But i cant make 3d text
  using this script.
  whats the problem with this code? 
  <img src="https://i.stack.imgur.com/QuM33.png" alt="my error in console is"> please help me</p>