Add text to a geometric figure THREE JS

0

I have this function where I create a sphere but to that area I would like to put a text but that is specific to the sphere

function init(){
  //Creation de contructor
  Render.setSize(800,600);
  //Add render in Div
  var re = document.getElementById('render');
  re.appendChild(Render.domElement);
  //Creation de la camera
  camera.position.z = 100;
  scene.add(camera);
  //Creation of form with vertices and vectors
  load_model();
  //Load mouse controls
  control = new THREE.OrbitControls(camera, Render.domElement)
}

function load_model(){
  //Creation of the form
  geometry = new THREE.SphereGeometry(10,32,32);

  material = new THREE.MeshBasicMaterial({color:0xFF0000});
  form = new  THREE.Mesh(geometry,material);
  scene.add(form);
}

They know if it is possible to do it and what is the function

    
asked by Ernesto Emmanuel Yah Lopez 27.02.2018 в 17:28
source

0 answers