# Unable to load PNG texture in TextureMapToPlane – vtkOpenGLTexture error in ParaView 5.13.1

**URL:** https://discourse.paraview.org/t/unable-to-load-png-texture-in-texturemaptoplane-vtkopengltexture-error-in-paraview-5-13-1/17284
**Category:** ParaView Support
**Tags:** python
**Created:** [November 4, 2025, 10:27am UTC](https://discourse.paraview.org/t/unable-to-load-png-texture-in-texturemaptoplane-vtkopengltexture-error-in-paraview-5-13-1/17284 "2025-11-04T10:27:20Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![gesamarie](https://discourse.paraview.org/user_avatar/discourse.paraview.org/gesamarie/32/17187_2.png) [@gesamarie](https://discourse.paraview.org/u/gesamarie)
#### Post date: [November 4, 2025, 10:27am UTC](https://discourse.paraview.org/t/unable-to-load-png-texture-in-texturemaptoplane-vtkopengltexture-error-in-paraview-5-13-1/17284/1 "2025-11-04T10:27:20Z")

</div>

Hi All,  
I am simulating rainfall over a terrain. The visualization of the simulation results in my ParaView GUI works, but once I use the trace I recorded in ParaView as a macro in ParaView, I am getting an error message I don’t understand.

The ParaView Version I am currently using is ParaView 5.13.1.  
I am using the TextureMapToPlane Filter on the surface of my 2D-terrain to display a satellite picture of the terrain. When using the filter in my GUI it works perfectly, but when I start the recorded trace of the same sequence I get the following error message:

ERROR: In vtkOpenGLTexture.cxx, line 195  
vtkOpenGLTexture (0x3acae910): No scalar values found for texture input!

The key part of my trace is the following:

```python
# create a new 'Texture Map to Plane'
textureMaptoPlane1 = TextureMaptoPlane(registrationName='TextureMaptoPlane1', Input=warpByScalar2)

# Properties modified on textureMaptoPlane1
textureMaptoPlane1.Origin = [-424.5, -331.0, 0.0]
textureMaptoPlane1.Point1 = [424.5, -331.0, 0.0]
textureMaptoPlane1.Point2 = [-424.5, 331.0, 0.0]

# show data in view
textureMaptoPlane1Display = Show(textureMaptoPlane1, renderView1, 'GeometryRepresentation')

# trace defaults for the display properties.
textureMaptoPlane1Display.Representation = 'Surface'

# hide data in view
Hide(warpByScalar2, renderView1)

# update the view to ensure updated data information
renderView1.Update()

# a texture
satellite_clipped = FindTextureOrCreate(registrationName='satellite_clipped', filename='/home/...../satellite_clipped.png')

# change texture
textureMaptoPlane1Display.Texture = satellite_clipped

```

My guess is that ParaView has problems loading my PNG. I checked that the path I specified is correct. The code runs smoothly until “renderView1.Update()”

Does anyone have an idea what the problem might be?

Thank you so much in advance. I am looking forward to some answers.  
Gesa

P.S. This is my first time in this Forum, so I hope I didn’t break any rules. I am also running ParaView on a Server where I have no admin rights, so I can’t change the ParaView Version easily.

---

<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: [November 4, 2025, 10:27am UTC](https://discourse.paraview.org/t/unable-to-load-png-texture-in-texturemaptoplane-vtkopengltexture-error-in-paraview-5-13-1/17284/2 "2025-11-04T10:27:53Z")

</div>

please share your data.

---

<div class="post-metadata">

### Author: ![gesamarie](https://discourse.paraview.org/user_avatar/discourse.paraview.org/gesamarie/32/17187_2.png) [@gesamarie](https://discourse.paraview.org/u/gesamarie)
#### Post date: [November 4, 2025, 10:59am UTC](https://discourse.paraview.org/t/unable-to-load-png-texture-in-texturemaptoplane-vtkopengltexture-error-in-paraview-5-13-1/17284/3 "2025-11-04T10:59:29Z")

</div>

I constructed a little test\_case which still gives the same error message. You have to change the absolute paths for the STL and PNG files in the .py files.

[apply\_texture\_to\_stl\_.py](https://discourse.paraview.org/uploads/short-url/neb7CVuZbYxJWZaf1LPRs95PAYo.py) (4.0 KB)

[top.stl](https://discourse.paraview.org/uploads/short-url/tvbUadv4sR8M4z7fgi2WJRQ97FW.stl) (5.6 MB)

 ![satellite_clipped](https://discourse.paraview.org/uploads/default/original/3X/d/2/d21a5f94814431f22c040dedf72a25dd18cb561c.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: [November 5, 2025, 8:53am UTC](https://discourse.paraview.org/t/unable-to-load-png-texture-in-texturemaptoplane-vtkopengltexture-error-in-paraview-5-13-1/17284/4 "2025-11-05T08:53:07Z")

</div>

[state513.py](https://discourse.paraview.org/uploads/short-url/b4dJqnJ6a9Y5ut6wRMdNydqvrFw.py) (6.0 KB)  
Here is one that works:

---

<div class="post-metadata">

### Author: ![gesamarie](https://discourse.paraview.org/user_avatar/discourse.paraview.org/gesamarie/32/17187_2.png) [@gesamarie](https://discourse.paraview.org/u/gesamarie)
#### Post date: [November 7, 2025, 8:31am UTC](https://discourse.paraview.org/t/unable-to-load-png-texture-in-texturemaptoplane-vtkopengltexture-error-in-paraview-5-13-1/17284/5 "2025-11-07T08:31:21Z")

</div>

Thank you so much. I tried the script you sent, but I still get the same error message as before:  
vtkOpenGLTexture.cxx:195 ERR| vtkOpenGLTexture (0x4ecf870): No scalar values found for texture input!

---

<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: [November 7, 2025, 8:33am UTC](https://discourse.paraview.org/t/unable-to-load-png-texture-in-texturemaptoplane-vtkopengltexture-error-in-paraview-5-13-1/17284/6 "2025-11-07T08:33:26Z")

</div>

please share your image as well, which OS are you using ?

---

<div class="post-metadata">

### Author: ![gesamarie](https://discourse.paraview.org/user_avatar/discourse.paraview.org/gesamarie/32/17187_2.png) [@gesamarie](https://discourse.paraview.org/u/gesamarie)
#### Post date: [November 7, 2025, 8:52am UTC](https://discourse.paraview.org/t/unable-to-load-png-texture-in-texturemaptoplane-vtkopengltexture-error-in-paraview-5-13-1/17284/7 "2025-11-07T08:52:59Z")

</div>

Hi, I have attached the screenshot that gets generated by state513.py  
I am operating on Ubuntu 22.04.4 LTS

 ![screenshot](https://discourse.paraview.org/uploads/default/original/3X/e/9/e97ba4708faa2a5b115652f482d2b98b385ace33.jpeg)

---

<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: [November 7, 2025, 8:53am UTC](https://discourse.paraview.org/t/unable-to-load-png-texture-in-texturemaptoplane-vtkopengltexture-error-in-paraview-5-13-1/17284/8 "2025-11-07T08:53:34Z")

</div>

no I mean the png you are using as a texture.

---

<div class="post-metadata">

### Author: ![gesamarie](https://discourse.paraview.org/user_avatar/discourse.paraview.org/gesamarie/32/17187_2.png) [@gesamarie](https://discourse.paraview.org/u/gesamarie)
#### Post date: [November 7, 2025, 9:16am UTC](https://discourse.paraview.org/t/unable-to-load-png-texture-in-texturemaptoplane-vtkopengltexture-error-in-paraview-5-13-1/17284/9 "2025-11-07T09:16:35Z")

</div>

Okay, sorry, didn’t understand completely. I actually already uploaded the texture png file to a previous message ( satellite\_clipped.png). I have attached it again to this message

 ![satellite_clipped](https://discourse.paraview.org/uploads/default/original/3X/d/2/d21a5f94814431f22c040dedf72a25dd18cb561c.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: [November 7, 2025, 9:31am UTC](https://discourse.paraview.org/t/unable-to-load-png-texture-in-texturemaptoplane-vtkopengltexture-error-in-paraview-5-13-1/17284/10 "2025-11-07T09:31:51Z")

</div>

Of course, I somehow missed it, thanks.

---

<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: [November 10, 2025, 8:57am UTC](https://discourse.paraview.org/t/unable-to-load-png-texture-in-texturemaptoplane-vtkopengltexture-error-in-paraview-5-13-1/17284/11 "2025-11-10T08:57:26Z")

</div>

Indeed, I confirm the issue with 5.13, this issue has been fixed in ParaView 6.0

---

<div class="post-metadata">

### Author: ![gesamarie](https://discourse.paraview.org/user_avatar/discourse.paraview.org/gesamarie/32/17187_2.png) [@gesamarie](https://discourse.paraview.org/u/gesamarie)
#### Post date: [November 11, 2025, 7:38am UTC](https://discourse.paraview.org/t/unable-to-load-png-texture-in-texturemaptoplane-vtkopengltexture-error-in-paraview-5-13-1/17284/12 "2025-11-11T07:38:08Z")

</div>

Okay, that is good to know, that this is an issue. I will be installing a newer version of Paraview. Thank you for your help
