Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PixelsNode - Get Closest Position
#1
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.
#2
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.
Andrej Benedik
#3
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.
#4
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...gSample.cs
Andrej Benedik
  


Forum Jump:


Users browsing this thread:
1 Guest(s)