To perform raycasting in C# using OpenTK, you can follow the steps below:
main.cs97 chars5 lines
UnProject
method of Matrix4
to transform the pixel coordinates from screen space to world space.main.cs599 chars14 lines
Ray.Intersects
method to test for intersection with a bounding box or a sphere, and then check the actual geometry of the object only if the test was positive.main.cs1044 chars32 lines
main.cs97 chars3 lines
gistlibby LogSnag