-
Notifications
You must be signed in to change notification settings - Fork 14
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
Text on geometry #77
Comments
One easy way to get text on geometry is to use a HTML5 Canvas as a texture and write text on the Canvas using fillText: https://www.w3schools.com/graphics/canvas_text.asp There should be an example on how to use a Canvas as a Texture in the ChronosGL examples. |
If you need three dimensional letters you can try to port a full blown external library as you describe or you could do this:
|
Managed to get text on different geometries with a canvas as suggested above by rhulha. Close issue. |
I try get text on a geometry, looking into
threeDart
this is done by generation of Shapes for the te string withFontUtils.generateShapes
.https://github.com/threeDart/three.dart/blob/master/lib/extras/geometries/text_geometry.dart#L10
Next step is try to do some equivalent in ChronosGL. I consider a modification of
FontUtils.generateShapes
to in ChronosGL generate aMeshData
.Question does ChronoGL already provide text on geometry? Or suggestions to alternatives to the design above.
The text was updated successfully, but these errors were encountered: