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

Extract text rendering to a ThreeJS object #10

Closed
lojjic opened this issue Aug 15, 2019 · 2 comments
Closed

Extract text rendering to a ThreeJS object #10

lojjic opened this issue Aug 15, 2019 · 2 comments

Comments

@lojjic
Copy link
Collaborator

lojjic commented Aug 15, 2019

Text3DFacade's underlying implementation should be extracted to a subclass of THREE.Mesh (without a dependency on troika-3d if possible). This would allow it to be used by itself in other projects and frameworks (AFrame, react-three-fiber, etc.) that could benefit from its advantages over other text implementations.

lojjic added a commit that referenced this issue Aug 16, 2019
lojjic added a commit that referenced this issue Aug 16, 2019
…ks dependency tree when TextMesh is used directly - issue #10
@lojjic
Copy link
Collaborator Author

lojjic commented Aug 16, 2019

Done! There is now a TextMesh class which can be used standalone in any Three.js project or framework; it only depends on the few utilities it needs and omits the Troika framework code.

Those wanting to use it outside the Troika framework may import src/three/TextMesh.js directly, or the build also now produces dist/textmesh-standalone.<esm|umd>.js bundles in the published package.

@lojjic lojjic closed this as completed Aug 16, 2019
@lojjic
Copy link
Collaborator Author

lojjic commented Aug 17, 2019

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

1 participant