# Opacity mapping makes colors disappear

**URL:** https://discourse.paraview.org/t/opacity-mapping-makes-colors-disappear/6212
**Category:** ParaView Support
**Created:** [January 13, 2021, 3:07am UTC](https://discourse.paraview.org/t/opacity-mapping-makes-colors-disappear/6212 "2021-01-13T03:07:48Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![liangwang0734](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/l/3ab097/32.png) [@liangwang0734](https://discourse.paraview.org/u/liangwang0734)
#### Post date: [January 13, 2021, 3:07am UTC](https://discourse.paraview.org/t/opacity-mapping-makes-colors-disappear/6212/1 "2021-01-13T03:07:48Z")

</div>

Simple 2d slice surface view, when using “Enable opacity mapping for surfaces”, the colors disappear altogether.

I feel it might be a graphic card issue. Any ideas on how to debug this?  
Thank you for any suggestions.

- Version of ParaView: 5.7.0
- Your OS: Ubuntu 20.04
- Your GPU: Nvidia GM108M [GeForce MX130] (and integrated Intel UHD 620)
- Your graphic driver: 455.38 (see attached figure)  
 ![paraview-graphics.01](https://discourse.paraview.org/uploads/default/original/2X/f/f0f88d6514ee3f05f1de6606bdc7a2857e8f3c8e.png)

---

<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 13, 2021, 10:48am UTC](https://discourse.paraview.org/t/opacity-mapping-makes-colors-disappear/6212/2 "2021-01-13T10:48:09Z")

</div>

Upgrade to ParaView 5.8.1 or 5.9.0 (once it is out)

---

<div class="post-metadata">

### Author: ![liangwang0734](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/l/3ab097/32.png) [@liangwang0734](https://discourse.paraview.org/u/liangwang0734)
#### Post date: [January 13, 2021, 2:51pm UTC](https://discourse.paraview.org/t/opacity-mapping-makes-colors-disappear/6212/3 "2021-01-13T14:51:12Z")

</div>

Unfortunately, I could not get the downloaded 5.7.0, 5.8.1, and 5.9.0 rc3 to run;

```
~/bin/paraview/ParaView-5.8.1$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home//bin/paraview/ParaView-5.8.1
~/bin/paraview/ParaView-5.8.1$ export QT_QPA_PLATFORM_PLUGIN_PATH=/home//bin/paraview/ParaView-5.8.1
~/bin/paraview/ParaView-5.8.1$ ./paraview
( 2.208s) [paraview]vtkOpenGLRenderWindow.c:565 ERR| vtkGenericOpenGLRenderWindow (0x2998280): GLEW could not be initialized: Missing GL version
```

---

<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 13, 2021, 2:52pm UTC](https://discourse.paraview.org/t/opacity-mapping-makes-colors-disappear/6212/4 "2021-01-13T14:52:04Z")

</div>

`glxinfo | gren Vendor`

---

<div class="post-metadata">

### Author: ![liangwang0734](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/l/3ab097/32.png) [@liangwang0734](https://discourse.paraview.org/u/liangwang0734)
#### Post date: [January 13, 2021, 3:00pm UTC](https://discourse.paraview.org/t/opacity-mapping-makes-colors-disappear/6212/5 "2021-01-13T15:00:19Z")

</div>

$ glxinfo |grep vendor  
server glx vendor string: NVIDIA Corporation  
client glx vendor string: NVIDIA Corporation  
OpenGL vendor string: NVIDIA Corporation

also

```
GLX version: 1.4

Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 2048 MB
    Total available memory: 2048 MB
    Currently available dedicated video memory: 1385 MB
    OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce MX130/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 455.38
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
```

---

<div class="post-metadata">

### Author: ![liangwang0734](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/l/3ab097/32.png) [@liangwang0734](https://discourse.paraview.org/u/liangwang0734)
#### Post date: [January 13, 2021, 3:07pm UTC](https://discourse.paraview.org/t/opacity-mapping-makes-colors-disappear/6212/6 "2021-01-13T15:07:25Z")

</div>

I missed an earlier error. The full error is below. Looks like I need to specify some paths or flag to allow the downloaded version ParaView to use GL correctly.

```
$ ./paraview 
QFSFileEngine::map: Mapping a file beyond its size is not portable
QFSFileEngine::map: Mapping a file beyond its size is not portable
QFSFileEngine::map: Mapping a file beyond its size is not portable
QFSFileEngine::map: Mapping a file beyond its size is not portable
QFSFileEngine::map: Mapping a file beyond its size is not portable
QFSFileEngine::map: Mapping a file beyond its size is not portable
QFSFileEngine::map: Mapping a file beyond its size is not portable
QFSFileEngine::map: Mapping a file beyond its size is not portable
VisRTX 0.1.6, using devices:
 0: GeForce MX130 (Total: 2.1 GB, Available: 1.4 GB)
QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
QOpenGLWindow::beginPaint: Failed to create context
QOpenGLWindow::beginPaint: Failed to make context current
( 0.950s) [paraview]vtkOpenGLRenderWindow.c:565 ERR| vtkGenericOpenGLRenderWindow (0x454f660): GLEW could not be initialized: Missing GL version
QOpenGLFunctions created with non-current context

Loguru caught a signal: SIGSEGV
Stack trace:
16 0x407b5d ./paraview() [0x407b5d]
15 0x7f09a1ae2cb2 __libc_start_main + 242
14 0x4077ed ./paraview() [0x4077ed]
13 0x7f099f63c0b4 QCoreApplication::exec() + 132
12 0x7f099f6334aa QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 234
11 0x7f096a98ae96 libQt5XcbQpa.so.5(+0xb1e96) [0x7f096a98ae96]
10 0x7f099fa6762b QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 187
9 0x7f099fa8bc9d QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) + 397
8 0x7f099fa8b145 QGuiApplicationPrivate::processExposeEvent(QWindowSystemInterfacePrivate::ExposeEvent*) + 165
7 0x7f099f634c08 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 264
6 0x7f09a1131f01 QApplication::notify(QObject*, QEvent*) + 577
5 0x7f09a112ac8c QApplicationPrivate::notify_helper(QObject*, QEvent*) + 156
4 0x7f099fabe058 QPaintDeviceWindow::event(QEvent*) + 24
3 0x7f099fa95d3b QWindow::event(QEvent*) + 203
2 0x7f099fabe038 QPaintDeviceWindow::exposeEvent(QExposeEvent*) + 568
1 0x7f099fac7b37 libQt5Gui.so.5(+0x13eb37) [0x7f099fac7b37]
0 0x7f09a1afb950 /lib/x86_64-linux-gnu/libc.so.6(+0x41950) [0x7f09a1afb950]
( 0.950s) [paraview] :0 FATL| Signal: SIGSEGV
Segmentation fault (core dumped)
```

---

<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 13, 2021, 3:12pm UTC](https://discourse.paraview.org/t/opacity-mapping-makes-colors-disappear/6212/7 "2021-01-13T15:12:28Z")

</div>

Try upgrading your drivers, looks like the last one for your GPU are 460.32.03.
