# Problems with hdr image as path traced environment

**URL:** https://discourse.paraview.org/t/problems-with-hdr-image-as-path-traced-environment/7324
**Category:** ParaView Support
**Created:** [May 30, 2021, 11:49am UTC](https://discourse.paraview.org/t/problems-with-hdr-image-as-path-traced-environment/7324 "2021-05-30T11:49:24Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![benediktB](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/9f8e36/32.png) [@benediktB](https://discourse.paraview.org/u/benediktB)
#### Post date: [May 30, 2021, 11:49am UTC](https://discourse.paraview.org/t/problems-with-hdr-image-as-path-traced-environment/7324/1 "2021-05-30T11:49:24Z")

</div>

Hi,  
I am using Paraview 5.9.1.  
I have an axisymmetric data set, on which I use the rotational extrusion filter.  
In this filter, I enable the ray-tracing. Until this point everything works.  
But when I use a HDR image as background, I get the following error messages:

```
( 73.427s) [pvbatch]vtkOpenGLFramebufferObj:1376 ERR| vtkOpenGLFramebufferObject (0x6f0df9d0): The framebuffer is incomplete : FRAMEBUFFER_INCOMPLETE_ATTACHMENT
( 91.228s) [pvbatch]vtkOpenGLFramebufferObj:456 ERR| vtkOpenGLFramebufferObject (0x728c84f0): Frame buffer object was not initialized correctly.

```

and a lot of this output:

```
Current framebuffer is bind to framebuffer object 38
color attachment 0:
 this attachment is a texture with name: 89
 its mipmap level is: 0
 this is a cube map texture and the image is contained in face 34069
 this is a 3D texture and the zoffset of the attached image is 34069
color attachment 1:
 this attachment is a texture with name: 89
 its mipmap level is: 0
 this is a cube map texture and the image is contained in face 34070
 this is a 3D texture and the zoffset of the attached image is 34070
color attachment 2:
 this attachment is a texture with name: 89
 its mipmap level is: 0
 this is a cube map texture and the image is contained in face 34071
 this is a 3D texture and the zoffset of the attached image is 34071
color attachment 3:
 this attachment is a texture with name: 89
 its mipmap level is: 0
 this is a cube map texture and the image is contained in face 34072
 this is a 3D texture and the zoffset of the attached image is 34072
color attachment 4:
 this attachment is a texture with name: 89
 its mipmap level is: 0
 this is a cube map texture and the image is contained in face 34073
 this is a 3D texture and the zoffset of the attached image is 34073
color attachment 5:
 this attachment is a texture with name: 89
 its mipmap level is: 0
 this is a cube map texture and the image is contained in face 34074
 this is a 3D texture and the zoffset of the attached image is 34074
color attachment 6:
 this attachment is empty
color attachment 7:
 this attachment is empty
depth attachment :
 this attachment is empty
stencil attachment :
 this attachment is empty
there are 8 draw buffers.
draw buffer[0]=GL_COLOR_ATTACHMENT0
draw buffer[1]=GL_COLOR_ATTACHMENT1
draw buffer[2]=GL_COLOR_ATTACHMENT2
draw buffer[3]=GL_COLOR_ATTACHMENT3
draw buffer[4]=GL_COLOR_ATTACHMENT4
draw buffer[5]=GL_COLOR_ATTACHMENT5
draw buffer[6]=GL_NONE
draw buffer[7]=GL_NONE
read buffer=GL_COLOR_ATTACHMENT0

```

In spite of this messages, the image is rendered, but a lot RAM is used, which eventually leads to an abortion of the program.

Please find attached the python files I use.  
The first one is for the pvbatch command, the second one can be loaded as state into the GUI.  
A data set can be downloaded with [Link - LRZ Sync+Share](https://syncandshare.lrz.de/getlink/fiTe5sZVaEZS6BrvfYTbKwXW/).  
The HDR image can be downloaded via [HDRI: Lakeside | HDRI Haven](https://hdrihaven.com/hdri/?h=lakeside). I use the 16k version.

[generate\_3d\_image\_hdr\_background.py](https://discourse.paraview.org/uploads/short-url/4R6Qw0EfJ3m0qZlYvALfa1iQEqW.py) (7.9 KB)  
[generate\_3d\_image\_hdr\_background\_state.py](https://discourse.paraview.org/uploads/short-url/u0HLAOqML1dAxpUO0nY8oznmLDN.py) (7.0 KB)

---

<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: [May 31, 2021, 12:44pm UTC](https://discourse.paraview.org/t/problems-with-hdr-image-as-path-traced-environment/7324/2 "2021-05-31T12:44:35Z")

</div>

What if you use a smaller version of the HDRi ?

---

<div class="post-metadata">

### Author: ![benediktB](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/9f8e36/32.png) [@benediktB](https://discourse.paraview.org/u/benediktB)
#### Post date: [June 4, 2021, 10:46am UTC](https://discourse.paraview.org/t/problems-with-hdr-image-as-path-traced-environment/7324/3 "2021-06-04T10:46:41Z")

</div>

When I go down to a 4k HDRi it works.  
But at this resolution, the image isn’t sharp anymore, so I am looking for a solution which allows me to use the 16k or at least 8k 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: [June 4, 2021, 10:49am UTC](https://discourse.paraview.org/t/problems-with-hdr-image-as-path-traced-environment/7324/4 "2021-06-04T10:49:30Z")

</div>

upgrade your GPU.

You are running out of GPU memory with the 8K HDRi, you can check that with nvidia-smi

---

<div class="post-metadata">

### Author: ![benediktB](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/9f8e36/32.png) [@benediktB](https://discourse.paraview.org/u/benediktB)
#### Post date: [June 4, 2021, 10:57am UTC](https://discourse.paraview.org/t/problems-with-hdr-image-as-path-traced-environment/7324/5 "2021-06-04T10:57:57Z")

</div>

I’m running the jobs on our universities linux cluster, I’m not sure if they have a GPU at all.  
What I can say is that I have to use paraview mesa, because the “standard” paraview would require X-Server which the cluster does not have.

---

<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: [June 4, 2021, 1:26pm UTC](https://discourse.paraview.org/t/problems-with-hdr-image-as-path-traced-environment/7324/6 "2021-06-04T13:26:58Z")

</div>

Are you using ParaView in client/server mode ?

---

<div class="post-metadata">

### Author: ![benediktB](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/9f8e36/32.png) [@benediktB](https://discourse.paraview.org/u/benediktB)
#### Post date: [June 4, 2021, 1:48pm UTC](https://discourse.paraview.org/t/problems-with-hdr-image-as-path-traced-environment/7324/7 "2021-06-04T13:48:34Z")

</div>

I’m not 100 % sure but I think no. I use the precompiled binaries.

---

<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: [June 4, 2021, 1:50pm UTC](https://discourse.paraview.org/t/problems-with-hdr-image-as-path-traced-environment/7324/8 "2021-06-04T13:50:21Z")

</div>

Do you run pvserver on the cluster, paraview on your client and then use File-\>Connect ?  
Or, do you access your cluster through a graphical client and run paraview from there ?

---

<div class="post-metadata">

### Author: ![benediktB](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/9f8e36/32.png) [@benediktB](https://discourse.paraview.org/u/benediktB)
#### Post date: [June 4, 2021, 2:16pm UTC](https://discourse.paraview.org/t/problems-with-hdr-image-as-path-traced-environment/7324/9 "2021-06-04T14:16:44Z")

</div>

I access the cluster via a ssh-connection. The precompiled binaries are on the cluster. On the cluster the job is run with ‘pvbatch \< scriptname \> .py’

---

<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: [June 4, 2021, 2:41pm UTC](https://discourse.paraview.org/t/problems-with-hdr-image-as-path-traced-environment/7324/10 "2021-06-04T14:41:57Z")

</div>

Are you using local rendering or remote rendering ?

To know that, you can do the following:

Edit → Settings → RenderVies → ShowAnnotations → Enable

Then load your dataset and HDRis, it will be written top left of the render window.
