While instancing, determine if mouse intersects with a specific instance

While instancing using TOPs for the position + color I’m wondering if there’s some way to determine which instance your mouse is over in the rendered scene and change the color of that specific instance. In something like three.js, you’d use raycasting to project from the mouse into the scene, and then you could get back some data about the intersected object.

Right now I’m able to use the color of the rendered instance as an ID. I’m rendering a circle TOP as the mouse multiplied with the rendered scene to figure out what I’m overlapping. It’s connected to an Analize TOP so I can get the color of the instance I’m overlapping and then I’m creating a mask that’s applied to original TOP that’s used to specify a color for each instance. This seems really convoluted and I’m wondering if there’s an easier way.

In TD you would use „renderpicking“ to get the ID of the instance under your mouse .

Thanks! that’s exactly what I was looking for :slight_smile: