Any ideas for 3D text generation and rendering #79
-
Hello, I'm interested in this project. I'm trying to generate 3d text mesh in AR space dynamically. Needle Engine supports UI Text, but I'd like to express stereoscopic rich text. I tried to use TextMesh Pro on Unity but it didn't seem to be supported in this project. From the issues mentioned it doesn't seem possible to interactively change the text component. So is there a way to create a static text mesh from any strings? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Hey, you can use a worldspace canvas with the "old" Text component. Altough it does not support RichText in the current version right now (it did in the past and the code for it is still there but was temporarely disabled for automatically generating font atlases from Unity). With the classic Text component text can be changed dynamically You could also write a custom component and using some of the core threejs methods for generating text. Also have a look at the samples repository which has a basic 3d mesh component too that might help in getting started |
Beta Was this translation helpful? Give feedback.
-
@marwie Thanks for the quick reply 🚀 I tried importing code from TextGeometry.ts into my project and succeeded in rendering 3D text that could be changed at runtime. Apparently the font path seems to be hard-coded, but it seems possible for using any font to display specific character by defining serializeable field. Any plans to include this component in future releases? |
Beta Was this translation helpful? Give feedback.
-
Bruno Simon 20k included in Needle Engine Samples appeared to rendering TextGeometry but was actually just static mesh (glb) 👀 I think that the introduced method can be replaced with TextGeometry, so I will try it. |
Beta Was this translation helpful? Give feedback.
Hey,
you can use a worldspace canvas with the "old" Text component. Altough it does not support RichText in the current version right now (it did in the past and the code for it is still there but was temporarely disabled for automatically generating font atlases from Unity).
With the classic Text component text can be changed dynamically
You could also write a custom component and using some of the core threejs methods for generating text.
Also have a look at the samples repository which has a basic 3d mesh component too that might help in getting started