java - How to write text on a texture using java3D API? -


I'm thinking how can I write some text on a given texture (during execution)?

I am using Java 3D API.

Thank you!

I believe that you can getImage or getImages methods to bring the image component of your texture , Put them in ImageComponent2D (if you can), call them the getImage method to gain access to the BufferedImage object, which eventually gives you access to a graphics object for text drawing.

You have to do this for every MIP level, or every time you change it, then rebirth from the upper level to the lower level.

Alternatively, if you are not updating the texture many times, every time you need to use TextureLoader, you can create and apply a new texture from the image. should be able.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -