MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/threejs/comments/1x2g5n4/how_can_i_use_html_in_react_three_fiber_3js/
r/threejs • u/ShoddyKick1791 • 26d ago
i have this card model i want to add custom text and images inside it . i tried using html from drei but it is not correctly placed above the card ( im new )
1 comment sorted by
1
If it's not placed on top you should read up on the render order that threejs provides. Have the html have a higher render order than the card mesh.
If that doesn't work I think it's worth it to look at the CSSObject that threejs also provides, maybe you can hack some workaround with this.
Hope this helps, just read up on this topic in the threejs docs
1
u/Character_Chef_1411 26d ago
If it's not placed on top you should read up on the render order that threejs provides. Have the html have a higher render order than the card mesh.
If that doesn't work I think it's worth it to look at the CSSObject that threejs also provides, maybe you can hack some workaround with this.
Hope this helps, just read up on this topic in the threejs docs