Replies: 5 comments 3 replies
-
I have not tried it yet but I think you can do it this way. |
Beta Was this translation helpful? Give feedback.
-
But I think this element is perhaps now called
|
Beta Was this translation helpful? Give feedback.
-
Perfect, exactly what I was looking for. I will try this out tomorrow and
let you know. Tnx
…On Tue, 2 Jun 2020, 22:41 Michael Fasani, ***@***.***> wrote:
But I think this element is perhaps now called <HTML/> and exists in the
Drei repo or maybe it exists in both. It would be great if you could
feedback if either of them works for you?
import { HTML } from "drei"
https://codesandbox.io/s/r3f-suspense-zu2wo?file=/src/index.js
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#471 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACTMP7YPZUWGLIIYZ4IMA3RUUFRVANCNFSM4NQXLNRQ>
.
|
Beta Was this translation helpful? Give feedback.
-
Yes HTML from drei worked. And good to know about drei! very helpful package. This is what worked for me. Positioning things withing the group seems to position them relative to the group, so I can position the text relative to the sphere, Thanks @Fasani
|
Beta Was this translation helpful? Give feedback.
-
Has anyone tried making it so that HTML content is properly behind things and such? Probably using like a proxy for the HTML that blocks out or masks out 3D content using a proxy for the HTML content's size in 3D? |
Beta Was this translation helpful? Give feedback.
-
I'm creating a 3D graph representation. I would like to show text under each node in the graph.
I'm wondering how to show text under each of these spheres. I'm fine with either 3D solutions in the scene (if the text can always face the camera?) OR 2D DOM solutions, but then I would like the text to move with the position of the sphere when the camera moves (is that possible?)
What would you suggest?
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions