I have rendered model in ThreeJS. Now, I need to add some interactivity so that:
- Depending on user entered values I need to color some parts of the model.
- If I click on any model part I want it to be highlighted.
I am new to ThreeJS and a little confused. How do I do this?
this event manager can help you.
more detail see three.interaction.js
In init():
and:
I recommend starting from there.
update