Text3DBillboard is billboard text that can be inserted into scene dynamically.
Signature:
export default class Text3DBillboard extends Text3D
Extends: Text3D
var text = new Modelo.View.Text3DBillboard("text2", viewer.getResourceManager(), viewer.getMaterialManager());
text.setContent("This is some billboard text");
text.setTranslation(0, 0, 5.02);
text.setScaling(10, 10, 10);
text.setColor([1, 0.5, 0.2]);
viewer.getScene().addText3D(text);
Constructor | Description |
---|---|
(constructor)(name, resourceManager, materialManager) | Construct a text3DBillboard object. |
Method | Description |
---|---|
destroy() | Destroy the Text3DBiilboard. |
setFaceCameraZ(enabled) | If set to false, not all axis of object will align with the camera. Only XY axis will do. It is like we look down the object at top, the object rotate to the view direction with its z axis. By default, it is enabled. |