Conversation
|
I think we can already do this, without any new javascript. Here's a sample message: The test file https://github.com/meshcat-dev/meshcat/blob/master/test/texture_text.html is along the same lines, but with the text on a shape (plane) instead of a sprite. |
|
In #173, I have a demo that shows this feature might already be available. If you have a chance, please let us know if there's still something missing. |
|
For now, I'll assume that #173 was sufficient. If not, please let us know -- e.g., open a new pull request with more details. |
|
@jwnimmer-tri Your example works, but can you please tell me how to change the text color or add a background around it |
|
I don't have any information about that. Take the demo and play around with it, and/or consult the three.js documentation about sprites and materials. |
Add sprite drawing as a way to add billboards (2D text annotations that always face the camera). Allows to write text unto the scene.
An example:
Send json: