Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hit testing on LineNodes
#4
Lines hit can also be done by using an ID bitmap. This is created by rendering the scene to a bitmap where each object (and line) has its color based on the ID of the object.

I have just added a new sample (https://github.com/ab4d/Ab4d.SharpEngine...pSample.cs) that shows how to render ID bitmap and use that select 3D lines.

This can be also easily extended to select a line when user is close to the line. This would be done by checking a few pixels away from the current mouse position and checking if any line is hit.
Andrej Benedik
  


Messages In This Thread
Hit testing on LineNodes - by henkt - 07-10-2023, 05:31 PM
RE: Hit testing on LineNodes - by abenedik - 07-11-2023, 06:10 PM
RE: Hit testing on LineNodes - by henkt - 07-15-2023, 12:33 PM
RE: Hit testing on LineNodes - by abenedik - 04-23-2024, 01:40 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)