Quantcast
Channel: Babylon.js
Viewing all articles
Browse latest Browse all 388

I want to use BMFont in babylon, how to do?

$
0
0

BMFont instruction: http://www.angelcode.com/products/bmfont/

 

a .png file: a compiled picture of 0~9 number's texture.

a .fnt file: number info(like coordinate, height, width)

 

use:

var bmfontManager = new BMFontManager("res/score.fnt");

var bmfLabel = new BMFontSprite("1234", bmfontManager );

 

now i can parse the .fnt file.

But how can i use it in babylon.js??

 

I think it's a bit like the spriteManager. It need splice number picture to one.

who can show me the way??

 

 


Viewing all articles
Browse latest Browse all 388

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>