Luomu / pioneer

space simulation adventure game
http://pioneerspacesim.net/
6 stars 1 forks source link

Text on models #28

Closed Luomu closed 11 years ago

Luomu commented 12 years ago

Need a way to mark special geometry in models, generate text there (ship labels mostly)

Luomu commented 12 years ago

Perhaps best done using a named geometry, position & orientation will be used, geometry size is ignored

Luomu commented 11 years ago

Hacked something together using TextureFont as the texture & geometry creator. Challenges:

Could be better to pre-generate a distance field glyph texture with a fixed character set, monospaced font, then not use TF at all.

Luomu commented 11 years ago

Could be better to pre-generate a distance field glyph texture with a fixed character set, monospaced font, then not use TF at all.

Did this. Looks very crisp! Still need to do:

Luomu commented 11 years ago

I'm considering the current state usable, material still cannot be defined but that can come later.