jupyter-widgets / pythreejs

A Jupyter - Three.js bridge
https://pythreejs.readthedocs.io
Other
934 stars 185 forks source link

Text on top of a Geometry/Mesh #358

Closed lfnt3 closed 1 year ago

lfnt3 commented 3 years ago

Hello,

I have generated multiple meshes from simple "quad" geometries based on Geometry(vertices, faces, colors). Now I would like to "map" a dedicated text on top of each quad. That text does not come from an image but from a list. So let's say a list of numbers, each one number for one generated mesh.

Is something like this possible with pythreejs?

Thanks! Thom

vidartf commented 1 year ago

You would normally use the TextTexture for these purposes: https://pythreejs.readthedocs.io/en/latest/api/textures/TextTexture_autogen.html