02-27-2018, 12:14 PM
Well, I'll want to be able to ray cast against both specific objects from a specified location (for example to "explore" the geometry around a certain point in space) as well as casting against the entire scene from both an arbitrary point in space, as well as from a particular screen point.
I would definitely want to be able to iterate over hit locations along a ray as well.
An example of one of the things I'm trying to do. Imagine you have a line that penetrates into a mesh (in this case the line represents a "hole" and the mesh is a terrain scan). I want to be able to walk along sample points along the length of the line and cast rays around each sample point to find the closest intersection with the terrain. I then want to use this information to change the vertex colour of the terrain mesh to represent proximity to the hole.
That is one example. I have a few others as well, so let me know if you need more examples or detail.
I would definitely want to be able to iterate over hit locations along a ray as well.
An example of one of the things I'm trying to do. Imagine you have a line that penetrates into a mesh (in this case the line represents a "hole" and the mesh is a terrain scan). I want to be able to walk along sample points along the length of the line and cast rays around each sample point to find the closest intersection with the terrain. I then want to use this information to change the vertex colour of the terrain mesh to represent proximity to the hole.
That is one example. I have a few others as well, so let me know if you need more examples or detail.

