Fusee icon indicating copy to clipboard operation
Fusee copied to clipboard

Allow order-independent calls to Render, Pick, and CheckForInteractiveObjects when using Cameras

Open RedImp1470 opened this issue 4 years ago • 1 comments

At the moment we need to call SceneRenderer.Render before we can use a ScenePicker or a SceneInteractionHandler, because ScenePickers and SceneInteractionHandlers get the view and projection matrices from the RenderContext.

This also may cause unexpected behavior right now, if there is more than one camera in the scene.

RedImp1470 avatar Jan 17 '22 13:01 RedImp1470

  • [ ] Make #413 pass CI and merge
  • [ ] Replace current ScenePicker with new RaycastPicker at all occurrences of ScenePicker.
  • [ ] Double-check that RaycastPicker does not operate on RenderContext.
  • [ ] Test with arbitrary numbers, cobinations and diferent types (ortho/perspective) of cameras

griestopf avatar Jan 19 '22 12:01 griestopf