Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text appears transparent in colored tectanle #16

Closed
AlbertoElias opened this issue Jan 10, 2018 · 3 comments
Closed

Text appears transparent in colored tectanle #16

AlbertoElias opened this issue Jan 10, 2018 · 3 comments

Comments

@AlbertoElias
Copy link

I've been trying to create my own msdf fonts, based on Roboto which I fetched from Google Fonts. Using this tool and then loading it in Three.JS with https://github.com/Jam3/three-bmfont-text loads transparent text in a colored rectangle. It works fine if I load the pre generated Roboto from here: https://github.com/Jam3/three-bmfont-text/tree/master/test/fnt

Error:
broken_font

I've tried both on Ubuntu and Windows and with multiple Roboto ttfs, and other fonts.

@soimy
Copy link
Owner

soimy commented Jan 10, 2018

three-bmfont-text is old. Since https://github.com/Chlumsky/msdfgen Release v1.4 all generated channel have been reversed, and the MSDF shader should be updated accordingly.

You can check out https://github.com/soimy/msdf-bmfont-xml/tree/master/test for an example on how to use msdf-bmfont-xml generated atlas with three-bmfont-text

@AlbertoElias
Copy link
Author

AlbertoElias commented Jan 10, 2018

Great, thanks for the info. Got it working just fine now :)

@donmccurdy
Copy link

Fix proposed here: Experience-Monks/three-bmfont-text#24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants