-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Language issue #5615
Comments
The built-in Alternatively you can use the |
Should troika be A-Frame default? |
maybe something like https://github.com/foxglove/three-text with @mapbox/tiny-sdf could be a first step |
For my own projects I exclusively use Troika, mostly out of convenience but also because it builds nicely on top of the Three.js material system. I think making it the default in A-Frame isn't a bad idea, I'll try and experiment with it and create a PR. |
What are the downsides from switching to Troika? |
The only downside i can think of, is if aframe switching to WebGPURenderer (webgl2, webgpu) with TLS more glsl shader code needs to port to TSL, but what i read @lojjic have plans to support TLS ( correct me if i am wrong) |
Yes TSL support is planned, but no concrete timeframe yet. It would bump up in priority if there were a significant number of people or projects asking for it. 😅 |
The other downside I can think of is that it's asynchronous, and runs in a worker by default. That could complicate things that expect to be able to use metrics of the text in a synchronous way -- e.g. scaling a background plane to match the text dimensions. |
I hadn't even considered TSL in A-Frame, but that integration would encourage me to learn TSL and give me better grounds to advocate for it in the office. |
I'd love to see troika as default (I'm all in on it), so it gets tested with aframe changes - I noticed that the troika aframe component does not work and throws this error on the aframe master branch:
see https://glitch.com/edit/#!/gusty-childlike-durian @lojjic I was going to post this as an issue on your github, but wasn't sure about the propriety of posting bugs that only appear on the master branch... |
How do I write in a language other than English? For example, Chinese?
The text was updated successfully, but these errors were encountered: