Hi
I want to implement object picking i've read a decent amount into it now but the thing thats puzzling me is that, it picks an individual triangle. How would you go from that triangle to an entire model. So lets say you pick a triangle on a 3D cube, how would you know which cube/object that triangle belongs too?
Sorry if its a simple question I'm new to graphics and i cant get my head around how you would do this in an efficient way.