I\'m setting up the threejs editor in electron, and I\'m going to customize it. I\'m trying to implement a \"hover\" object to change the color of faces, then select two faces o
Same approach, but working you may find in my fiddle here: http://jsfiddle.net/mmalex/ed0jhpyk/
Helper classes are used from here: https://github.com/nmalex/three.js-helpers
var cube = new THREE.Mesh(geometry, material);
scene.add(cube);
var mouseMove = new RayysMouseMove(mouse, controls);
//let mouseMove "know" which objects should be interactive
mouseMove.objects.push(cube);
mouseMove.cb.onObjectEnter.push(function(obj) {
//todo: handle mouse hover, obj here is threejs scene node
});
mouseMove.cb.onObjectLeave.push(function(obj) {
//todo: handle mouse unhover, obj here is threejs scene node
});