threex.text is a threex game extension for three.js which makes it easy to add 3d text in your game. You can use it to create a big logo on top of a shop or a big sign of any kind Las Vegas style. Up to you to see :) It is very flexible. You can fine tune lots of parameters to make it fit your needs. You can choose the fonts, the size, the bevel, the weight etc...
- examples/basic.html [view source] : It shows a 3d text.
- examples/requirejs.html [view source] : It show a 3d text and it is all loaded thru require.js
You can install it via script tag
<script src='threex.text.js'></script>
Or you can install with bower, as you wish.
bower install threex.text
Here is a very basic usage
var mesh = new THREEx.Text('THREEx')
scene.add(mesh)
Here is another example with more parameters. The options are passed directly
to THREE.TextGeometry
.
See three.js docs
for details.
var mesh = new THREEx.Text('THREEx', {
font : "droid serif",
weight : "bold",
size : 1,
height : 0.4,
})
scene.add(mesh)