# Define the user-defined item in the Stereo viewing icon of 3D view 

**URL:** https://discourse.slicer.org/t/define-the-user-defined-item-in-the-stereo-viewing-icon-of-3d-view/28297
**Category:** Support
**Created:** [March 10, 2023, 8:19pm UTC](https://discourse.slicer.org/t/define-the-user-defined-item-in-the-stereo-viewing-icon-of-3d-view/28297 "2023-03-10T20:19:25Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![TerryHuang](https://avatars.discourse-cdn.com/v4/letter/t/3da27b/32.png) [@TerryHuang](https://discourse.slicer.org/u/TerryHuang)
#### Post date: [March 10, 2023, 8:19pm UTC](https://discourse.slicer.org/t/define-the-user-defined-item-in-the-stereo-viewing-icon-of-3d-view/28297/1 "2023-03-10T20:19:25Z")

</div>

Hi. In the user interface, the 3D view of the scene has a panel for configuring the 3D View. In the Stereo viewing icon of the panel, there are some models like Red/blue and anaglyph modes, also user defined 1, 2, and 3. Does anyone know how to program the user-defined item? I have a special stereo display device, which needs to use four views to render the display image.

 ![Snipaste_2023-03-09_22-02-49](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/7/f/7fe75dd71d6dc06706d8357714224822a1eb6a9b.jpeg)

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [March 11, 2023, 7:06am UTC](https://discourse.slicer.org/t/define-the-user-defined-item-in-the-stereo-viewing-icon-of-3d-view/28297/2 "2023-03-11T07:06:10Z")

</div>

This API was added in early stages of experimenting with virtual reality (it might have been for [this](https://github.com/franklinwk/SlicerVirtualRealityViewer)). Nowadays we use OpenVR, OpenXR, LookingGlass, etc. renderwindow classes instead.

---

<div class="post-metadata">

### Author: ![TerryHuang](https://avatars.discourse-cdn.com/v4/letter/t/3da27b/32.png) [@TerryHuang](https://discourse.slicer.org/u/TerryHuang)
#### Post date: [March 11, 2023, 9:29am UTC](https://discourse.slicer.org/t/define-the-user-defined-item-in-the-stereo-viewing-icon-of-3d-view/28297/3 "2023-03-11T09:29:08Z")

</div>

Thank you very much to your nice reply. I try the LookingGlass extension, it seem what i need. But to get a right 3d perception, the LookingGlass extension need a LookingGlass device, which i donot have. What i can get now is a multiple view window. I wonder if there is a way to modify the looking glass API to achieve the 3D effect I need, without the need for looking glass hardware devices?

 ![1](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/0/e0b23ac3f2a2a1df75e4266479edc5ad60a93661.jpeg)

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [March 11, 2023, 4:40pm UTC](https://discourse.slicer.org/t/define-the-user-defined-item-in-the-stereo-viewing-icon-of-3d-view/28297/4 "2023-03-11T16:40:10Z")

</div>

Yes, sure, all software (Slicer, VTK, LookingGlass remote module) are free, unrestricted open-source software, so you can modify anything locally as you see fit.
