# Enable opacity mapping for surfaces using a different array than for color mapping

**URL:** https://discourse.paraview.org/t/enable-opacity-mapping-for-surfaces-using-a-different-array-than-for-color-mapping/7646
**Category:** Feature Requests
**Created:** [July 19, 2021, 5:01pm UTC](https://discourse.paraview.org/t/enable-opacity-mapping-for-surfaces-using-a-different-array-than-for-color-mapping/7646 "2021-07-19T17:01:02Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![bievreg](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/c89c15/32.png) [@bievreg](https://discourse.paraview.org/u/bievreg)
#### Post date: [July 19, 2021, 5:01pm UTC](https://discourse.paraview.org/t/enable-opacity-mapping-for-surfaces-using-a-different-array-than-for-color-mapping/7646/1 "2021-07-19T17:01:02Z")

</div>

Hi Paraview team and many thanks for this awesome software.  
I use vtk files containing several arrays.  
I really would love a feature that would allow to map the opacity of surface rendering using a different array than the one used for coloring the surface (with arrays contained in the same vtk file).  
Thanks in advance,  
greg

---

<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: [August 3, 2021, 8:34am UTC](https://discourse.paraview.org/t/enable-opacity-mapping-for-surfaces-using-a-different-array-than-for-color-mapping/7646/2 "2021-08-03T08:34:25Z")

</div>

Not supported by the surface mapper sadly.

---

<div class="post-metadata">

### Author: ![wascott](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/8e8cbc/32.png) [@wascott](https://discourse.paraview.org/u/wascott)
#### Post date: [August 3, 2021, 4:12pm UTC](https://discourse.paraview.org/t/enable-opacity-mapping-for-surfaces-using-a-different-array-than-for-color-mapping/7646/3 "2021-08-03T16:12:44Z")

</div>

@cory.quammen @utkarsh.ayachit @Kenneth_Moreland @mwestphal Thoughts? How hard would this be, and how useful would it be?  
I’m on the fence. Seems like a useful feature, but I have never had a user ask for it…

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [August 3, 2021, 6:29pm UTC](https://discourse.paraview.org/t/enable-opacity-mapping-for-surfaces-using-a-different-array-than-for-color-mapping/7646/4 "2021-08-03T18:29:32Z")

</div>

We support this in the volume rendering. I don’t think it would be too hard to support for surface data.

---

<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: [August 4, 2021, 7:17am UTC](https://discourse.paraview.org/t/enable-opacity-mapping-for-surfaces-using-a-different-array-than-for-color-mapping/7646/5 "2021-08-04T07:17:17Z")

</div>

I definitely agree.

---

<div class="post-metadata">

### Author: ![bievreg](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/c89c15/32.png) [@bievreg](https://discourse.paraview.org/u/bievreg)
#### Post date: [August 5, 2021, 9:21am UTC](https://discourse.paraview.org/t/enable-opacity-mapping-for-surfaces-using-a-different-array-than-for-color-mapping/7646/6 "2021-08-05T09:21:35Z")

</div>

Dear all,  
Thanks for your answers. To illustrate a little bit, it can be used e.g. in geophysics. For instance, we retrieve the spatial distribution of physical parameters undeground. This imaging is achieved using inversion, which encompasses error/uncertainty. This error can be represented by opacity blending superimposed to the array of the geophysical parameter of interest.  
Below is an example of an electical resistivity image (2D distribution of resistivity) with an opacity mapping using the error/uncertainty (the lower the opacity the higher the uncertainty, and vice-versa).  
Regards,  
Greg

 ![Capture](https://discourse.paraview.org/uploads/default/original/2X/9/9585f4b1ef6de2539b7884996b8d16d617d8174d.png)

---

<div class="post-metadata">

### Author: ![wascott](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/8e8cbc/32.png) [@wascott](https://discourse.paraview.org/u/wascott)
#### Post date: [October 7, 2021, 10:31pm UTC](https://discourse.paraview.org/t/enable-opacity-mapping-for-surfaces-using-a-different-array-than-for-color-mapping/7646/7 "2021-10-07T22:31:48Z")

</div>

[https://gitlab.kitware.com/paraview/paraview/-/issues/21015](https://gitlab.kitware.com/paraview/paraview/-/issues/21015). Sandia picked this one up. Scheduled for 5.11.

---

<div class="post-metadata">

### Author: ![louisgag](https://discourse.paraview.org/user_avatar/discourse.paraview.org/louisgag/32/4999_2.png) [@louisgag](https://discourse.paraview.org/u/louisgag)
#### Post date: [November 16, 2022, 2:12pm UTC](https://discourse.paraview.org/t/enable-opacity-mapping-for-surfaces-using-a-different-array-than-for-color-mapping/7646/8 "2022-11-16T14:12:56Z")

</div>

would it be hard to achieve this with the python console in the meantime?
