You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to add labels to meshes of 3D model dynamically. So far, I have one solution, but it works strange. When window size is changed, 3D model in Canvas change its size too. But drei/Html labels added to same Canvas is not change their positions! So it looks like 3D model and Canvas is responsive, but drei/Html text labels is not responsive. See example:
Questions:
1 How to make drei/Html labels responsive same as 3D model?
2 Is there any way to mesh.add() OR scene.add() ? I just want to add component to meshes directly and not to Canvas. For example, if I will iterate all meshes to add labels to them like this:
This discussion was converted from issue #985 on July 25, 2022 22:53.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to add labels to meshes of 3D model dynamically. So far, I have one solution, but it works strange. When window size is changed, 3D model in Canvas change its size too. But drei/Html labels added to same Canvas is not change their positions! So it looks like 3D model and Canvas is responsive, but drei/Html text labels is not responsive. See example:
Questions:
How can I do this? What is proper way to do this?
Here is my code:
Beta Was this translation helpful? Give feedback.
All reactions