# Models not Transparent in Slicer 4.10.1

**URL:** <https://discourse.slicer.org/t/models-not-transparent-in-slicer-4-10-1/6538>\
**Category:** Support\
**Created:** [April 18, 2019, 10:20pm UTC](https://discourse.slicer.org/t/models-not-transparent-in-slicer-4-10-1/6538 "2019-04-18T22:20:21Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nicole\_Seider](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/nicole_seider/32/3489_2.png) [@Nicole\_Seider](https://discourse.slicer.org/u/Nicole_Seider)\
**Post date:** [April 18, 2019, 10:20pm UTC](https://discourse.slicer.org/t/models-not-transparent-in-slicer-4-10-1/6538/1 "2019-04-18T22:20:21Z")

</div>

Dear all,

We are currently working with Slicer 4.4.0 and Slicer 4.10.1. In Slicer 4.4, we can make models transparent using the opacity button: in the image below, the gray ‘leftpial’ surface is at .5 opacity, the green ‘rightpial’ surface is at 1. If we try to use the Models module in Slicer 4.10.1, the surfaces are always opaque. If we set the opacity at 0.9, the model will disappear. Any suggestions? We can work for now in 4.4 for the visualizations, but it’d be nice to have this working in 4.10.1.

 ![SlicerTransparent](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/b/2/b2fd49456769d9ab077ef14e8cf41719c3c9c3ac.jpeg)

---

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [April 18, 2019, 11:15pm UTC](https://discourse.slicer.org/t/models-not-transparent-in-slicer-4-10-1/6538/2 "2019-04-18T23:15:09Z")

</div>

I tried loading a model in Slicer 4.10.1 and was able to change the opacity without any issue. I should clarify this was on Windows while I see you are using the Linux version.

 ![models-opacity](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/4/6/46fba81a55b321f3cded6617ec0e9b3b5799c89f.png)

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [April 18, 2019, 11:40pm UTC](https://discourse.slicer.org/t/models-not-transparent-in-slicer-4-10-1/6538/3 "2019-04-18T23:40:24Z")

</div>

Try the latest nightly. The Models module was largely reimplemented since 4.10.1, so maybe that helps. If not, then it’s your data, and we’ll need it to fix the issue.  
Let us know either way. Thanks!

---

<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:** [April 18, 2019, 11:51pm UTC](https://discourse.slicer.org/t/models-not-transparent-in-slicer-4-10-1/6538/4 "2019-04-18T23:51:10Z")

</div>

To correctly display semitransparent surfaces you need to enable depth peeling - see [Mixed volume rendering and surface representation of segmentation has incorrect 3D appearance if segment is not fully opaque](https://discourse.slicer.org/t/mixed-volume-rendering-and-surface-representation-of-segmentation-has-incorrect-3d-appearance-if-segment-is-not-fully-opaque/6532/2?u=lassoan)

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [April 19, 2019, 3:33am UTC](https://discourse.slicer.org/t/models-not-transparent-in-slicer-4-10-1/6538/5 "2019-04-19T03:33:38Z")

</div>

Depth peeling is a fairly buried setting for new users. Is there a reason or downside why it is not being enabled by default?

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [April 19, 2019, 4:46pm UTC](https://discourse.slicer.org/t/models-not-transparent-in-slicer-4-10-1/6538/7 "2019-04-19T16:46:09Z")

</div>

Depth peeling should not be needed to avoid the bug @Nicole_Seider is reporting.

I just created some models and verified that opacity works fine with depth peeling off. There is another reason for her dataset to behave like this in her environment (GPU, driver, Slicer version, etc.)

---

<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:** [April 19, 2019, 5:55pm UTC](https://discourse.slicer.org/t/models-not-transparent-in-slicer-4-10-1/6538/8 "2019-04-19T17:55:25Z")

</div>

> [@cpinter](#):
>
> opacity works fine with depth peeling off

Yes, models should look transparent regardless of depth peeling enabled or not. Semi-transparent just not appear with correct opacity if depth peeling is disabled.

> [@muratmaga](#):
>
> Depth peeling is a fairly buried setting for new users. Is there a reason or downside why it is not being enabled by default?

Depth peeling makes rendering slower and had some problems in the past. With current graphics hardware and VTK’s current rendering backend, these issues are mostly resolved, so I think we could enable depth peeling by default. What do you think @pieper @jcfr @cpinter @fedorov?

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [April 19, 2019, 7:12pm UTC](https://discourse.slicer.org/t/models-not-transparent-in-slicer-4-10-1/6538/9 "2019-04-19T19:12:49Z")

</div>

> [@Nicole\_Seider](#):
>
> If we set the opacity at 0.9, the model will disappear.

@lassoan This should not happen with or without depth peeling. The reported issue I think is independent of the current discussion about depth peeling default setting.

About that discussion: Although rendering without depth peeling is still 50% faster than with depth peeling (based on a very quick test), I think it could be enabled by default.

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [April 19, 2019, 8:00pm UTC](https://discourse.slicer.org/t/models-not-transparent-in-slicer-4-10-1/6538/10 "2019-04-19T20:00:40Z")

</div>

> [@lassoan](#):
>
> so I think we could enable depth peeling by default.

I agree - there should be no penalty unless there are translucent surfaces, and it helps resolve what can be a very confusing situation.

---

<div class="post-metadata">

**Author:** ![Nicole\_Seider](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/nicole_seider/32/3489_2.png) [@Nicole\_Seider](https://discourse.slicer.org/u/Nicole_Seider)\
**Post date:** [April 22, 2019, 3:48pm UTC](https://discourse.slicer.org/t/models-not-transparent-in-slicer-4-10-1/6538/11 "2019-04-22T15:48:59Z")

</div>

Thanks everyone for the suggestions. We downloaded and testing the latest nightly version of slicer (rev 21852 for Linux), found and enable depth peeling (it would be nice it this wasn’t buried), but it had no effect on 4.10 or 4.11 (4.4 on Linux still works properly).

To make things interesting, we can load and visualize the model properly with different opacities (and without turning on depth peeling) on a local Mac machine.

 ![10](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/7/4/748e1e189de0658ccf2bf3cbcd70b18591adcc0e.png)

Since it seems the issue might be related to my data and to the Linux version of Slicer, how do I share the necessary files for further troubleshooting?

---

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [April 22, 2019, 6:11pm UTC](https://discourse.slicer.org/t/models-not-transparent-in-slicer-4-10-1/6538/12 "2019-04-22T18:11:47Z")

</div>

You can post a Dropbox/onedrive/google drive link here that shares your data set.

You can also post the Slicer log file. So load your model and then under I believe the “Help” file menu you can go to “Report a bug” which shows the current and recent log files. You can then post this text document which should also include information about your Linux machine at the very top.

Hopefully we can narrow down between data set and the Linux version of Slicer!

---

<div class="post-metadata">

**Author:** ![Nicole\_Seider](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/nicole_seider/32/3489_2.png) [@Nicole\_Seider](https://discourse.slicer.org/u/Nicole_Seider)\
**Post date:** [April 22, 2019, 6:33pm UTC](https://discourse.slicer.org/t/models-not-transparent-in-slicer-4-10-1/6538/13 "2019-04-22T18:33:38Z")

</div>

> [@jamesobutler](#):
>
> You can post a Dropbox/onedrive/google drive link here that shares your data set.

I’ve uploaded the model file and Linux log files here: [https://drive.google.com/drive/folders/1\_jSZrO4WelVRH8uAqa7OhjV5AVNFaVom?usp=sharing](https://drive.google.com/drive/folders/1_jSZrO4WelVRH8uAqa7OhjV5AVNFaVom?usp=sharing)

If you have any trouble accessing the files, please let me know. Thanks again to everyone for all the help so far!

---

<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:** [April 22, 2019, 7:16pm UTC](https://discourse.slicer.org/t/models-not-transparent-in-slicer-4-10-1/6538/14 "2019-04-22T19:16:20Z")

</div>

What graphics card do you have? Are your drivers up-to-date? Slicer-4.4 uses 15-year-old OpenGL API, while Slicer-4.10 uses 6-8-year-old APIs, so very old GPU drivers may be a problem for Slicer versions released in the last few years.

How is the rendering if you convert it to a segmentation node? To create a segmentation from the model node, go to Data module, right-click the model, and select “Convert model to segmentation node”; you can then delete the model node and adjust opacity of the segmentation node in Segmentations module).

How is rendering if you use [ParaView 5.6](https://www.paraview.org/download/)?

The attached log file did not contain any errors. Transparent visualization of the model that you’ve uploaded worked fine for me on Windows, using Slicer-4.10.1.

---

<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:** [April 23, 2019, 5:23pm UTC](https://discourse.slicer.org/t/models-not-transparent-in-slicer-4-10-1/6538/15 "2019-04-23T17:23:51Z")

</div>

> [@pieper](#):
>
> I agree - there should be no penalty unless there are translucent surfaces, and it helps resolve what can be a very confusing situation.

I’ve updated Slicer nightly version to [enable depth peeling by default](http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&revision=28161). It only has effect if Slicer.ini does not exist (Slicer has not been installed before or the .ini file is deleted).

---

<div class="post-metadata">

**Author:** ![Nicole\_Seider](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/nicole_seider/32/3489_2.png) [@Nicole\_Seider](https://discourse.slicer.org/u/Nicole_Seider)\
**Post date:** [April 23, 2019, 7:55pm UTC](https://discourse.slicer.org/t/models-not-transparent-in-slicer-4-10-1/6538/16 "2019-04-23T19:55:39Z")

</div>

> [@lassoan](#):
>
> What graphics card do you have? Are your drivers up-to-date?

Our IT replies the following: 04:03.0 VGA compatible controller [0300]: Matrox Electronics Systems Ltd. MGA G200eW WPCM450 [102b:0532] (rev 0a)  
The drivers haven’t been updated in years, but since it’s an older model IT thinks it is on the latest update for that driver.

> [@lassoan](#):
>
> How is rendering if you use [ParaView 5.6](https://www.paraview.org/download/)?

IT just installed ParaView5.6 for me, so I’ll test that and report back.

---

<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:** [April 24, 2019, 11:52pm UTC](https://discourse.slicer.org/t/models-not-transparent-in-slicer-4-10-1/6538/17 "2019-04-24T23:52:21Z")

</div>

That computer is about 10 years old, which is too old to run recent versions of Slicer (due to incompatibility of the graphics chipset/driver). Current Slicer versions require computers that are not older than about 5 years.

---

<div class="post-metadata">

**Author:** ![Nicole\_Seider](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/nicole_seider/32/3489_2.png) [@Nicole\_Seider](https://discourse.slicer.org/u/Nicole_Seider)\
**Post date:** [August 28, 2019, 9:15pm UTC](https://discourse.slicer.org/t/models-not-transparent-in-slicer-4-10-1/6538/18 "2019-08-28T21:15:36Z")

</div>

After several months, we finally got a new Linux machine with a newer graphics card, specifically NVIDIA Corporation GM206 [GeForce GTX 960]. I can confirm that the visualization works appropriately now. Thanks to everyone for the assistance and suggestions!
