![]() |
|
PixelsNode - Get Closest Position - Printable Version +- AB4D Forum (https://forum.ab4d.com) +-- Forum: Products Forums (https://forum.ab4d.com/forumdisplay.php?fid=4) +--- Forum: Ab4d.SharpEngine (https://forum.ab4d.com/forumdisplay.php?fid=12) +--- Thread: PixelsNode - Get Closest Position (/showthread.php?tid=4490) |
PixelsNode - Get Closest Position - ethang - 08-27-2025 Hello, I am using PixelsNode to display a point cloud. I would like to use the middle mouse button to update the TargetPosition of the TargetPositionCamera, however, I can't find a good way to find the closest Vector3 point based off a ray. I've looked through the samples and didn't find anything that fit what I was looking for but maybe I missed it. With DXEngine and PowerToys, I used the GetClosestPositionIndex in the OptimizedPointMesh class to do this. Thanks for the assistance. RE: PixelsNode - Get Closest Position - abenedik - 09-22-2025 Ab3d.a DXEngine also supports rendering VertexId bitmap that is in most cases even faster than using OptimizedPointMesh - see the "Ab3d.DXEngine hit testing / Using VertexId Bitmap" sample. But Ab4d.SharpEngine supports neither OptimizedPointMesh nor VertexId bitmap for point clouds. However, adding support for VertexId bitmap can be implemented quite easily. If you want, then I may be able to prepare a new pre-release version of Ab4d.SharpEngine with that for you. First, I need to release the first web version of Ab4d.SharpEngine, then I can start working on that feature. Maybe you can already get a new pre-release version next week. RE: PixelsNode - Get Closest Position - ethang - 09-24-2025 Thanks for the message. It's not an urgent feature need for me at the moment as I have other development items taking up my time. I think if you can work it into the next Ab4d.SharpEngine release that should be fine. Thanks again. RE: PixelsNode - Get Closest Position - abenedik - 10-01-2025 I have sent you an email with the link to the pre-release version with support for PixelsNode hit-testing. The new sample is available on the development branch - https://github.com/ab4d/Ab4d.SharpEngine.Samples/blob/development/Ab4d.SharpEngine.Samples.Common/HitTesting/PointCloudHitTestingSample.cs |