# Opacity Mapping Not Working Correctly in OSPRay

**URL:** https://discourse.paraview.org/t/opacity-mapping-not-working-correctly-in-ospray/4809
**Category:** ParaView Support
**Created:** [July 10, 2020, 5:03pm UTC](https://discourse.paraview.org/t/opacity-mapping-not-working-correctly-in-ospray/4809 "2020-07-10T17:03:56Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![mconti](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mconti/32/2168_2.png) [@mconti](https://discourse.paraview.org/u/mconti)
#### Post date: [July 10, 2020, 5:03pm UTC](https://discourse.paraview.org/t/opacity-mapping-not-working-correctly-in-ospray/4809/1 "2020-07-10T17:03:56Z")

</div>

Hey everyone, i’m trying to add some simple 3D geometry with textures mapped to a scene in OSPRay.

I am using the simple bush from this site: [https://www.cgtrader.com/items/997157/download-page](https://www.cgtrader.com/items/997157/download-page)

Loading it into PV and applying it as a PBR texture works fine, although it breaks when OSPRay is turned on. OSPRay is still rendering the parts of the plane even though it should have 0 opacity, see picture below.

 ![image](https://discourse.paraview.org/uploads/default/original/2X/e/e6ba094ccd4d51eefdc18244347eb388f6c0712a.jpeg)

Anyone have any suggestions to try? Or is this just another core OSPRay bug? This would be a great functionality to have to add more detail to scenes.

---

<div class="post-metadata">

### Author: ![Michael](https://discourse.paraview.org/user_avatar/discourse.paraview.org/michael/32/16_2.png) [@Michael](https://discourse.paraview.org/u/Michael)
#### Post date: [July 13, 2020, 7:20am UTC](https://discourse.paraview.org/t/opacity-mapping-not-working-correctly-in-ospray/4809/2 "2020-07-13T07:20:00Z")

</div>

Hi,  
Which ParaView version are you using?

---

<div class="post-metadata">

### Author: ![mconti](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mconti/32/2168_2.png) [@mconti](https://discourse.paraview.org/u/mconti)
#### Post date: [July 13, 2020, 1:39pm UTC](https://discourse.paraview.org/t/opacity-mapping-not-working-correctly-in-ospray/4809/3 "2020-07-13T13:39:48Z")

</div>

Hey Michael, I have tested it and found it in both 5.8 and nightly versions since then.

---

<div class="post-metadata">

### Author: ![Michael](https://discourse.paraview.org/user_avatar/discourse.paraview.org/michael/32/16_2.png) [@Michael](https://discourse.paraview.org/u/Michael)
#### Post date: [July 15, 2020, 8:15am UTC](https://discourse.paraview.org/t/opacity-mapping-not-working-correctly-in-ospray/4809/4 "2020-07-15T08:15:20Z")

</div>

OSPRay 2.x integration have been merged to VTK.  
It is not in ParaView yet though. We will see if this bug is fixed by OSPRay version bump.

---

<div class="post-metadata">

### Author: ![mconti](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mconti/32/2168_2.png) [@mconti](https://discourse.paraview.org/u/mconti)
#### Post date: [July 15, 2020, 1:52pm UTC](https://discourse.paraview.org/t/opacity-mapping-not-working-correctly-in-ospray/4809/5 "2020-07-15T13:52:07Z")

</div>

Great! That 2.0 bump has a couple other bug fixes that will be great to have. @Michael do you happen to know if full integration will happen before or after 5.9?

@Dave_DeMarle do you happen to know if this bug is fixed in 2.0 or is on the radar to fix? This is a feature that would be great to have to build more complex scenes within OSPRay itself. I can file something more official on gitlab if need be.

---

<div class="post-metadata">

### Author: ![Michael](https://discourse.paraview.org/user_avatar/discourse.paraview.org/michael/32/16_2.png) [@Michael](https://discourse.paraview.org/u/Michael)
#### Post date: [July 15, 2020, 2:03pm UTC](https://discourse.paraview.org/t/opacity-mapping-not-working-correctly-in-ospray/4809/6 "2020-07-15T14:03:49Z")

</div>

Since it is already in VTK, I think the plan is to have it in ParaView 5.9.  
Note that the bug is most likely in VTK, not OSPRay. I’m sure that translucent textures were supported at some point.

---

<div class="post-metadata">

### Author: ![Dave\_DeMarle](https://discourse.paraview.org/user_avatar/discourse.paraview.org/dave_demarle/32/27_2.png) [@Dave\_DeMarle](https://discourse.paraview.org/u/Dave_DeMarle)
#### Post date: [July 15, 2020, 2:07pm UTC](https://discourse.paraview.org/t/opacity-mapping-not-working-correctly-in-ospray/4809/7 "2020-07-15T14:07:59Z")

</div>

PV 5.9 will have OSPRay 2. Likely 2.2.1 or later since 2.2.1 is intended to bring back some features for PV/VTK.

Please do file (or search for and then file since this sounds familiar) a bug regarding opacity. I agree with @Michael that the problem is most likely in VTK’s mapping to OSPRay calls.

---

<div class="post-metadata">

### Author: ![mconti](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mconti/32/2168_2.png) [@mconti](https://discourse.paraview.org/u/mconti)
#### Post date: [July 15, 2020, 2:12pm UTC](https://discourse.paraview.org/t/opacity-mapping-not-working-correctly-in-ospray/4809/8 "2020-07-15T14:12:21Z")

</div>

Great to hear that it should be in 5.9. I’m going to be hopefully bringing in a lot of new users from my company in 5.9 so the more OSPRay capability the better.

Appreciate the help guys, I’ll file a bug for this on gitlab.

EDIT: Gitlab Link: [https://gitlab.kitware.com/vtk/vtk/-/issues/17960](https://gitlab.kitware.com/vtk/vtk/-/issues/17960)
