I tried what you said and it works. The Text2D is just a little bit blinking but it doesn't matter.
Thanks / merci
But I see a strange effect.
The z offset of my Text2DBranchGroup is -2
In my scene, there is a tree at z = -50
The Text2D in the Text2DBranchGroup is displayed on top of tree trunc, ok, but the tree leafs (transparent texture) are displayed on top Text2D !
It seems there is a z-buffer bug between 3D scene and PlatformGeometry.
Maybe is it related to my clipping ?
I need these values to display near objects and very far away ones.
Any idea ?