Skip to content

Odd clipping range behavior with WebXR #2452

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
tbirdso opened this issue Jun 3, 2022 · 0 comments
Open

Odd clipping range behavior with WebXR #2452

tbirdso opened this issue Jun 3, 2022 · 0 comments
Labels
module: rendering General rendering issues type: bug 🐞 Errors in functionality

Comments

@tbirdso
Copy link
Contributor

tbirdso commented Jun 3, 2022

High-level description

The camera clipping range does not behave as expected when rendering a scene in AR/VR with WebXR.

Steps to reproduce

  1. Set a nontrivial clipping range
camera.setClippingRange(min, max);
  1. Launch scene in AR or VR
  2. 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:

  1. Manually set clipping range is entirely ignored and is very large
  2. 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

  1. The model clips out of scene when the camera is (min) distance away.
  2. 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.

@tbirdso tbirdso added the type: bug 🐞 Errors in functionality label Jun 3, 2022
@finetjul finetjul added the module: rendering General rendering issues label Jun 3, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
module: rendering General rendering issues type: bug 🐞 Errors in functionality
Projects
None yet
Development

No branches or pull requests

2 participants