rdeits / MeshCat.jl

WebGL-based 3D visualizer in Julia
MIT License
233 stars 42 forks source link

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

Open davibarreira opened 4 months ago

davibarreira commented 4 months ago

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.