A human body with clickable areas #2629
Unanswered
john-evan08
asked this question in
Q&A
Replies: 1 comment 3 replies
-
hey @john-evan08 depends on how many meshes your 3d human is made out. With this link you can convert glb files to ready code for r3f. And you can see how many meshes your 3d object has. After importing the 3d model. You have to put the materials in a different color to see which mesh is which part. Once you know that, it's about putting onClick events on the right meshes. link --> https://gltf.pmnd.rs/ e.stopPropagation() --> only clicks that part no part behind it (stops event on object)
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to load a 3d human body model with clickable areas (like shoulder,neck ...) ?
It seems that the interaction is with the full model and it's not possible to create areas. I would like to imitate the behaviour in 2D html
Beta Was this translation helpful? Give feedback.
All reactions