07-10-2023, 12:07 PM
You have multiple options to do that.
If you want to get the 3D point from a 3D object that is behind the mouse, then use hit-testing. The easiest way to do that is to use standard WPF's hit testing. This is demonstrated in the "EventManager3D / Standard WPF hit testing" sample from the Ab3d.PowerToys samples project.
If you want to get the 3D point that lies on a 3D plane (intersection of a 3D ray from the mouse position and 3D plane), see the "Cameras / Mouse 3D ray sample" sample in the Ab3d.PowerToys samples project.
Note that if you also use Ab3d.DXEngine, then see the hit-testing samples in the Ab3d.DXEngine samples project (there is a whole samples section for hit-testing).
If you want some other solution, please provide more information.
If you want to get the 3D point from a 3D object that is behind the mouse, then use hit-testing. The easiest way to do that is to use standard WPF's hit testing. This is demonstrated in the "EventManager3D / Standard WPF hit testing" sample from the Ab3d.PowerToys samples project.
If you want to get the 3D point that lies on a 3D plane (intersection of a 3D ray from the mouse position and 3D plane), see the "Cameras / Mouse 3D ray sample" sample in the Ab3d.PowerToys samples project.
Note that if you also use Ab3d.DXEngine, then see the hit-testing samples in the Ab3d.DXEngine samples project (there is a whole samples section for hit-testing).
If you want some other solution, please provide more information.
Andrej Benedik

