04-23-2024, 01:40 PM
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.
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

