jnsmalm / pixi3d

The 3D renderer for PixiJS. Seamless integration with 2D applications.
https://pixi3d.org
MIT License
759 stars 44 forks source link

Text node transform to 3d #67

Closed felemon closed 2 years ago

felemon commented 2 years ago

Is there text node in pixi3d like Sprite3D?

jnsmalm commented 2 years ago

There is not anything built in, but I just realise you can do this:

let text = new Text("test")
text.updateText()

let sprite = app.stage.addChild(new Sprite3D(text.texture));

Will create the text texture and then use that with a sprite 3d.