02-27-2018, 10:53 AM
The API is not yet fully defined. I am also not yet sure if there will be a global scene OctTree in the next DXEngine version. OctTree will be surely used for cases where the number of hit test checks can go into hundreds of thousands - for complex meshes (to speed up triangle hit testing) and for instancing (to get hit instances).
Because the number of SceneNodes cannot (or should not) be that high, a simple bounding box hit testing should be still good enough there (initial tests show that this works much better than WPF's solution). But maybe there will be enough time to implement also a global scene OctTree.
Anyway, there will surely be support for standard ray hit testing with a possibility to advance hit testing beyond the first hit object.
If you would also like to get support for some other queries, please provide your use cases and I will try to add support for that too.
Because the number of SceneNodes cannot (or should not) be that high, a simple bounding box hit testing should be still good enough there (initial tests show that this works much better than WPF's solution). But maybe there will be enough time to implement also a global scene OctTree.
Anyway, there will surely be support for standard ray hit testing with a possibility to advance hit testing beyond the first hit object.
If you would also like to get support for some other queries, please provide your use cases and I will try to add support for that too.
Andrej Benedik

