how to mouse hover and change color in 3d model

how to mouse hover and change color in 3d model in cesium software please help thanks.

Hi!
Try add event listener on the document with type 'mouseover'
and then use Cartesian2 to calculate mouse position on the Cesium globe:

  let mousePosition = new Cartesian2(e.clientX, e.clientY);

and then pick a ray,that find your object on the map:

  let pickedPoint = this.viewer.scene.pick(mousePosition);

Thanks for your help, truefunrun!

You might also want to look at these sandcastle examples for picking and coloring. They should have most of the code you need.

Hope that helps,

  • Rachel