Is there any standard way to add text to a box mesh if you are using JME3?
I have a map made up of cells represented by Box meshes that I am plotting a route through using A*. Right now the algorithm tends zig-zag once it gets closer to the target. The rendering is
This bring me to my problem, I need some way to add a calculated text string to the cell, in this case the pathfinding values.
As far as I can tell there is two possible ways:
- create a BufferedImage → ByteBuffer → com.jme3.texture.Image → com.jme3.texture.Texture2D and add that to the material somehow.
- Use a BitmapText and place it right above the surface of the floor.
Which one is the best/recommended way?
I found TestMultiFaceBox.java but that code no longer works due to JME3 changes.