How to render 3D text in JavaFX?

I am doing my first JavaFX project and I need to display 3D text. I already set PerspectiveCamera and I display the text node, but it has a Z dimension of 0, and I don't know how to change this.

Thanks in advance!

+4
source share
1 answer

Take a look at the FXyz project . It already contains the Text3DMesh class , which allows you to create a 3D mesh for any desired line and font.

Text3d

Under the hood, there is a complex process of converting (2D) text into a path, Delaunay triangulation and mesh extrusion.

Text3d

3D-, ( , , ).

, .

+5

All Articles