From c1fe13b6ed35ded82add967042191b576584fbfb Mon Sep 17 00:00:00 2001 From: Tom Birdsong Date: Tue, 26 Sep 2023 15:26:54 -0400 Subject: [PATCH 1/3] feat(WebXR): Add initial support for WebXR viewing with VTK.js Adds initial support for viewing VolView scene in WebXR on the local device. Note that performance may vary widely across devices. --- src/components/RenderingModule.vue | 15 +++- src/components/WebXRRendering.vue | 109 +++++++++++++++++++++++++++++ src/store/view-configs/webxr.ts | 22 ++++++ 3 files changed, 145 insertions(+), 1 deletion(-) create mode 100644 src/components/WebXRRendering.vue create mode 100644 src/store/view-configs/webxr.ts diff --git a/src/components/RenderingModule.vue b/src/components/RenderingModule.vue index 258fd6d2e..a47c21a3d 100644 --- a/src/components/RenderingModule.vue +++ b/src/components/RenderingModule.vue @@ -4,10 +4,11 @@ import { useCurrentImage } from '../composables/useCurrentImage'; import VolumeProperties from './VolumeProperties.vue'; import VolumeRendering from './VolumeRendering.vue'; import VolumePresets from './VolumePresets.vue'; +import WebXRRendering from './WebXRRendering.vue'; import LayerList from './LayerList.vue'; export default defineComponent({ - components: { VolumeRendering, VolumePresets, VolumeProperties, LayerList }, + components: { VolumeRendering, VolumePresets, VolumeProperties, WebXRRendering, LayerList }, setup() { const { currentImageData } = useCurrentImage(); const hasCurrentImage = computed(() => !!currentImageData.value); @@ -31,6 +32,7 @@ export default defineComponent({