# Image Culling in XRInterface

**URL:** https://discourse.paraview.org/t/image-culling-in-xrinterface/13823
**Category:** VR/AR
**Created:** [January 29, 2024, 10:38pm UTC](https://discourse.paraview.org/t/image-culling-in-xrinterface/13823 "2024-01-29T22:38:11Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Sam00](https://discourse.paraview.org/user_avatar/discourse.paraview.org/sam00/32/12807_2.png) [@Sam00](https://discourse.paraview.org/u/Sam00)
#### Post date: [January 29, 2024, 10:38pm UTC](https://discourse.paraview.org/t/image-culling-in-xrinterface/13823/1 "2024-01-29T22:38:11Z")

</div>

Hi,  
I have been using Paraview’s VR capabilities to inspect 3D image data (uniform rectilinear grid). I’m amazed how well it works and how useful it is to view and navigate the data in VR.  
A feature of Paraview 5.10.1 OpenVR plugin I found really useful was the way it culled (unsure if that’s the right term) the image when the camera collides with it. It almost worked as a dynamic crop, which was helpful since the built-in dynamic crop does not work for image data.  
This behavior seemingly has changed in the newer versions of Paraview though, i.e. in the OpenXR plugin of version 5.12 for example. Here, the camera colliding with the image culls the image without rendering the inside of the image volume:

 ![paraview_1](https://discourse.paraview.org/uploads/default/original/2X/0/058debc983a80425ed95e4935b47111dc512a2ff.png)  
 ![paraview_2](https://discourse.paraview.org/uploads/default/original/2X/7/745896a1fa841bb92b5ab232032dd51075ee62be.png)

I can get this version of the plugin to crop the image in the way it used to by scaling the image to a certain size, at which point it is cropped properly (very far away from the camera though):

 ![paraview_3](https://discourse.paraview.org/uploads/default/original/2X/7/73c803192556c88d2367a800a97a6f9659ce9380.png)

Is there a way of replicating the camera collision behavior I’m after in the OpenXR plugin? I really like the UI improvements that come with the updated versions of the plugin.

Thanks!

---

<div class="post-metadata">

### Author: ![Lucas\_Givord](https://discourse.paraview.org/user_avatar/discourse.paraview.org/lucas_givord/32/6851_2.png) [@Lucas\_Givord](https://discourse.paraview.org/u/Lucas_Givord)
#### Post date: [January 30, 2024, 8:01am UTC](https://discourse.paraview.org/t/image-culling-in-xrinterface/13823/2 "2024-01-30T08:01:58Z")

</div>

Maybe @mwestphal@tgalland @LucasGandel can have some inputs ?

---

<div class="post-metadata">

### Author: ![LucasGandel](https://discourse.paraview.org/user_avatar/discourse.paraview.org/lucasgandel/32/1418_2.png) [@LucasGandel](https://discourse.paraview.org/u/LucasGandel)
#### Post date: [January 30, 2024, 8:37am UTC](https://discourse.paraview.org/t/image-culling-in-xrinterface/13823/3 "2024-01-30T08:37:53Z")

</div>

This is a regression in VTK, it was fixed in [https://gitlab.kitware.com/vtk/vtk/-/merge\_requests/10783](https://gitlab.kitware.com/vtk/vtk/-/merge_requests/10783).

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [January 30, 2024, 10:08am UTC](https://discourse.paraview.org/t/image-culling-in-xrinterface/13823/4 "2024-01-30T10:08:32Z")

</div>

Than this means that you should be able to use the ParaView nightly to get this fix @Sam00 :  
[https://www.paraview.org/download/?version=nightly](https://www.paraview.org/download/?version=nightly)

@Sankhesh_Jhaveri @Lucas_Givord : should this MR be backported to release and paraview/release ?

---

<div class="post-metadata">

### Author: ![Lucas\_Givord](https://discourse.paraview.org/user_avatar/discourse.paraview.org/lucas_givord/32/6851_2.png) [@Lucas\_Givord](https://discourse.paraview.org/u/Lucas_Givord)
#### Post date: [January 30, 2024, 10:16am UTC](https://discourse.paraview.org/t/image-culling-in-xrinterface/13823/5 "2024-01-30T10:16:16Z")

</div>

we should backport this fix

---

<div class="post-metadata">

### Author: ![Sam00](https://discourse.paraview.org/user_avatar/discourse.paraview.org/sam00/32/12807_2.png) [@Sam00](https://discourse.paraview.org/u/Sam00)
#### Post date: [January 30, 2024, 12:37pm UTC](https://discourse.paraview.org/t/image-culling-in-xrinterface/13823/6 "2024-01-30T12:37:39Z")

</div>

I just got the chance to try it out, works fine!  
Thank you, @Lucas_Givord and @LucasGandel for the replies.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [January 30, 2024, 4:29pm UTC](https://discourse.paraview.org/t/image-culling-in-xrinterface/13823/7 "2024-01-30T16:29:13Z")

</div>

I’m afraid it cannot be backported as is, it contains deprecation, which are not acceptable in backports.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [January 31, 2024, 9:01am UTC](https://discourse.paraview.org/t/image-culling-in-xrinterface/13823/8 "2024-01-31T09:01:40Z")

</div>

The actual fix can be backported: [https://gitlab.kitware.com/vtk/vtk/-/merge\_requests/10854](https://gitlab.kitware.com/vtk/vtk/-/merge_requests/10854)
