jeudi 26 février 2015

JavaFX 2D text with background in 3D scene



For my project, I need 2D text inside a 3D scene (not as overlay!). So I've tried adding a BorderPane with Label/Text nodes to my scene:


enter image description here


The problem is however, that the white background of the panel is at times overlapping with the label (they have the same depth apparently) when I zoom in, out or fly around with my camera.


Is there a way to "elevate" the label from its panel? I've tried setting setDepthTest(true); with no effect.




Aucun commentaire:

Enregistrer un commentaire