question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

trying to add a text geometry, stuck in JavaScript

See original GitHub issue

Hi Robin, I’m trying to add a text geometry where I can put short description of the scene like ‘new initialization’, so it’d be easier for audience to interpret my animation.

I added a TextGeometry in the geometry.py file, similar to all the box/sphere. By reading this https://threejs.org/docs/#api/en/geometries/TextGeometry documentation, not much is needed other than passing in params, and I’m almost sure I’ve done this part correctly.

But when declaring a new TextGeomotry, python throws error saying ‘uuid’ not defined. Looking into some threejs documentation, this seems to be potentially caused by missing of Three.FontLoader() dependency, but then I’m stuck. I have a vague sense the JS files under the viewer folder is what I should modify but I don’t know exactly how?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
the-raspberry-pi-guycommented, Jan 8, 2022

+1

Would also love a text geometry feature in MeshCat - would be great to display text alongside animations for self contained demonstrations

0reactions
mhelmreicommented, Dec 13, 2021

Hello, is there any update on the TextGeometry in the latest meshcat version? Is there specific commit supporting it? Thanks.Matthias

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't seem to add text to scene in three.js - Stack Overflow
2 problems: you don't add Geometry like TextGeometry to a Scene . You add things like Mesh which take a Geometry and a...
Read more >
Get the geometry data from elements written to a text file - Revit
I have a little bit of a problem trying to write data to a text file. The issue is that I can't figure...
Read more >
Solved: info window gets stuck - Esri Community
Solved: I used the sample code "featurelayer hover", but instead of polygon features I use line features. The info window gets hung up...
Read more >
Creating a scene – three.js docs
You almost always want to use the width of the element divided by the height, ... Mesh( geometry, material ); scene.add( cube );...
Read more >
Asynchronous JavaScript - Learn web development | MDN
Note: If you are working on a computer/tablet/other device where you don't have the ability to create your own files, you can try...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found