Open
Description
High-level description
The camera clipping range does not behave as expected when rendering a scene in AR/VR with WebXR.
Steps to reproduce
- Set a nontrivial clipping range
camera.setClippingRange(min, max);
- Launch scene in AR or VR
- Move close to / away from actors in the scene to test clipping
Detailed behavior
Two behaviors have been observed, not clear what causes one or the other:
- Manually set clipping range is entirely ignored and is very large
- Clipping range behaves as though the near clip was ~0 and the far clip was ~(max -min). The scene actor does not clip until the camera moves to and intersects with it regardless of the min clipping range value, or the actor clips out of scene when the camera is at a distance approximately (max - min) away from the actor.
Expected behavior
- The model clips out of scene when the camera is (min) distance away.
- The model clips out of the scene when the camera is (max) distance away.
Environment
- vtk.js:
master
- OS: Windows
- Browser: Chrome
xref discussion in #2322.