Skip to content

Odd clipping range behavior with WebXR #2452

Open
@tbirdso

Description

@tbirdso

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions