How to write text on texture using java3D API?

I am wondering how can I write text on a given texture (at run time)?

I am using java3d API.

Thank!

+3
source share
2 answers

I believe that you can get the ImageComponent texture from the getImage or getImages methods, drop them into ImageComponent2D (if possible), and then call the getImage method on them to access the BufferedImage object, which finally gives you access to the graphics object for drawing text.

You may have to do this for each MIP level, or regenerate the lower levels from the highest level each time you change it.

, , , TextureLoader.

+1

, ( 18, "" ).

Java 3D

0

Source: https://habr.com/ru/post/1729734/


All Articles