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

[feature request] text #1966

Closed
hongbo-miao opened this issue Oct 8, 2016 · 7 comments
Closed

[feature request] text #1966

hongbo-miao opened this issue Oct 8, 2016 · 7 comments
Milestone

Comments

@hongbo-miao
Copy link
Contributor

hongbo-miao commented Oct 8, 2016

I saw the demos are all using images to show text. It will be great to have something like text box.

@donmccurdy
Copy link
Member

Hi @hongbo-miao – try the list of community-made A-Frame components. You probably want one of these. Showing text in WebGL is a bit complex, and different approaches are better for different things, so it has been left out of the core library so far.

@hongbo-miao
Copy link
Contributor Author

Thanks, that is very helpful!

@ngokevin
Copy link
Member

I like using https://github.com/bryik/aframe-bmfont-text-component

Whether that should be standard I am not sure. Currently, it's the solution that works and looks the best. It might be nice to have it out of the box. But other solutions like html-to-canvas might win out?

@hongbo-miao
Copy link
Contributor Author

@ngokevin Thanks! Those are very helpful suggestions. It will be great to add these in the the A-Frame document.

Feel free to close this if need.

@ngokevin
Copy link
Member

We should consider having a basic sample text implementation (I like @bryik's) as part of the standard lib. This way if third-party components want to add text for whatever reason (debug, labels), they don't have to depend on a third-party text component or consider how to package that in.

@bryik
Copy link
Contributor

bryik commented Oct 13, 2016

Apparently, ReactVR will use SDF font text.

Displaying text is a common need, so it would be nice for A-Frame to have a built-in solution. Though @donmccurdy has a point about "different approaches [being] better for different things"; e.g. HTML-to-canvas for foreign languages.

Downsides of bmfont-text:

  • character set is limited
  • my implementation is hackey and the dependencies are complex
  • components (color, opacity) do not work 'natively'
  • offset and other issues

@ngokevin ngokevin changed the title [feature request] text box [feature request] text Nov 10, 2016
@ngokevin ngokevin added this to the 0.5.0 milestone Dec 18, 2016
@ngokevin
Copy link
Member

#2200

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

No branches or pull requests

4 participants