Author Topic: string on bill board  (Read 916 times)

Offline Minigame

  • int
  • **
  • Posts: 55
    • View Profile
string on bill board
« on: November 28, 2012, 07:28:33 am »
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.

Offline KittenKoder

  • int
  • **
  • Posts: 66
  • I Am No One Else
    • View Profile
    • Kitt Games Wiki
Re: string on bill board
« Reply #1 on: November 28, 2012, 07:38:17 am »
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.

Offline Disastorm

  • long
  • ***
  • Posts: 161
    • View Profile
Re: string on bill board
« Reply #2 on: December 01, 2012, 03:42:28 am »
The GLFont blitting thing Raft made is pretty cool:

http://www.jpct.net/forum2/index.php/topic,1074.0.html