three_js_gpu_picking icon indicating copy to clipboard operation
three_js_gpu_picking copied to clipboard

Mesh objects only?

Open ericsvendsen opened this issue 2 years ago • 3 comments

This is more of a question, but is there a way to use this library to pick point geometries, or is it only for meshes? Thanks!

ericsvendsen avatar Mar 15 '22 19:03 ericsvendsen

Actually, now that I think about it, this might relate to #10, since I can see a Points object being picked, but picking an individual point seems like it would require something like a pickingGeometry.

ericsvendsen avatar Mar 15 '22 20:03 ericsvendsen

I don't think it'll work out of the box, but adding support would basically be the same as adding support for sprites. Here is where that is handled currently. @bennlich added support for that in this pr. I'll try and peek at it soon, but that is the general path I'd take to add points support.

bzztbomb avatar Mar 15 '22 22:03 bzztbomb

Cool, thanks! In the meantime I'll see what I might be able to figure out with this.

ericsvendsen avatar Mar 16 '22 13:03 ericsvendsen