MikeT
MikeT

Reputation: 31

three.js load .obj file with multiple clickable points

Using three.js I'm loading a .obj file I've created, and it looks great....

Looking for advice on how to add multiple clickable areas on the .obj almost like adding hotspots...

For an example of what I'm trying to do, say you loaded a .obj of a man using three.js.

Lets say I wanted both his left and right hand to have their own event listener that when clicked would call a different function...?

Is there a known technique or tutorial for this? Off the top of your head how might you suggest I approach this?

Any suggestions are most appreciated, thank you.

Upvotes: 3

Views: 1661

Answers (1)

havarc
havarc

Reputation: 934

What you're looking for is called 'face selection', a concept similar to object selection. How to get the mouse clicking position on an obj file loaded from OBJLoader? should get you started on the topic.

Upvotes: 1

Related Questions