split a texture into lots of smaller textures (for bitmap fonts)

Jun 19, 2009 at 3:56pm

split a texture into lots of smaller textures (for bitmap fonts)

I am trying to render small non-antialiased text in openGL, that will look the same on windows and mac. I have a monospace font from which i have made a png that contains 255 characters. I have a JSUI i made that renders the string you send it (see attached) and i am trying to convert it to jitter.

My problem is dealing with textures. i am not sure if it’s best to convert each character/glyph in the png to a separate texture or to map only a specific part of a texture at a time. Either way i am not sure how to go about it.

anyone got any ideas?

thanks,

oli

#44453
Jun 19, 2009 at 10:07pm

definitely keep them as one texture.

maybe check out vade’s 3d.glyph shader?
http://001.vade.info/

#159878
Jun 23, 2009 at 1:43am

thanks that looks as if it should be helpful

oli

#159879

You must be logged in to reply to this topic.