string on bill board

Started by Minigame, November 28, 2012, 07:28:33 AM

Previous topic - Next topic

Minigame

I've gotten the basic setup for name tags implemented into my client application:


My goal is to generate name textures, and set them as the bill board texture. I'm not sure how to approach so tips for something efficient would be greatly appreciated.

KittenKoder

Best option is to create a small texture for each, and paint the name on using Java.

If you use an ITextureEffect you can dynamically change the name without recreating the texture, it works pretty well that way. I use a dynamic texture class that maintains a BufferedImage and applies an ITextureEffect when the text is changed, which I use a BufferedImage, loaded png, for the text font. for something that has an "unknown" number you may just want to do blitting, to conserve memory.
When life throws you lemons, make lemon juice, then drop life into a pile of razors and pour the lemon juice over it.

Disastorm