Harry
Harry

Reputation: 13

THREE.js text not showing with out any errors

This is my shape geometry, material and mesh it is pulling no errors yet when I run the code the text doesn't seem to appear does anyone know why?

var shapeText = new THREE.TextGeometry("TheOriginal", {font: 'helvetiker'});
var wrapper = new THREE.MeshBasicMaterial({color: 0xFF0000});
var words = new THREE.Mesh(shapeText, wrapper);
scene.add(words);
console.log(words.position);

Upvotes: 0

Views: 1112

Answers (1)

kaigorodov
kaigorodov

Reputation: 897

Move your camera away from object

camera.position.set(300,300,300);
camera.lookAt(words.position);

You are too close to the text. Actually your camera positioned between letters or inside the text mesh and looks outside from the text.

Upvotes: 1

Related Questions