Skip to content

Is it possible to use addons from three.js? #254

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

Open
davibarreira opened this issue May 2, 2024 · 0 comments
Open

Is it possible to use addons from three.js? #254

davibarreira opened this issue May 2, 2024 · 0 comments

Comments

@davibarreira
Copy link

I'm trying to draw texts inside the view. But in three.js, this requires the use of an addon. In meshcat, there was an implementation for texts using Texture, but it results in rasterized text, which is not adequate for my use case.

In the three.js library, to draw texts one either imports an addon such as:

import { TextGeometry } from 'three/addons/geometries/TextGeometry.js';

Or it suggests using another JS package called Troika.

I figured out how to implement distinct geometries, such as knots and planes. But I couldn't get the TextGeometry to work. Which I'm guessing is due to the fact that it is not available in the original meshcat.

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