# Ambient Occulsion broken with scaled screenshots

**URL:** https://discourse.paraview.org/t/ambient-occulsion-broken-with-scaled-screenshots/7393
**Category:** Development
**Created:** [June 11, 2021, 2:21am UTC](https://discourse.paraview.org/t/ambient-occulsion-broken-with-scaled-screenshots/7393 "2021-06-11T02:21:57Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![GregVernon](https://discourse.paraview.org/user_avatar/discourse.paraview.org/gregvernon/32/1494_2.png) [@GregVernon](https://discourse.paraview.org/u/GregVernon)
#### Post date: [June 11, 2021, 2:21am UTC](https://discourse.paraview.org/t/ambient-occulsion-broken-with-scaled-screenshots/7393/1 "2021-06-11T02:21:57Z")

</div>

To replicate, simply take any model (here I used a `cylinder` source geometry) and turn on ambient occlusion. Then save a screenshot to disk, but use the `x2` option to increase the output resolution.

## Original resolution

 ![cylinder_x1](https://discourse.paraview.org/uploads/default/original/2X/9/95b81f83e421f4856d0d29d1f611c6bdce70eaa3.jpeg)

## 2X Resolution

 ![cylinder_x2](https://discourse.paraview.org/uploads/default/original/2X/d/d3dac108b12e953e959377e062a7e3fb92532540.jpeg)

## 4X Resolution

 ![cylinder_x4](https://discourse.paraview.org/uploads/default/original/2X/6/6b596f8a302bf82195f0d5c8d044a4fc4bdccd8f.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: [June 11, 2021, 6:28am UTC](https://discourse.paraview.org/t/ambient-occulsion-broken-with-scaled-screenshots/7393/2 "2021-06-11T06:28:10Z")

</div>

This is the expected behavior since SSAO is, as the name indicate, computed screen space.

But we can definitelly open an issue to see if there is a solution.

@LfxPaul

---

<div class="post-metadata">

### Author: ![Roman](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/ed8c4c/32.png) [@Roman](https://discourse.paraview.org/u/Roman)
#### Post date: [October 16, 2023, 4:34pm UTC](https://discourse.paraview.org/t/ambient-occulsion-broken-with-scaled-screenshots/7393/3 "2023-10-16T16:34:44Z")

</div>

I’d like to second this request. It’s essentially precluding me from using ambient occlusion.

---

<div class="post-metadata">

### Author: ![Ni\_Mz](https://discourse.paraview.org/user_avatar/discourse.paraview.org/ni_mz/32/14894_2.png) [@Ni\_Mz](https://discourse.paraview.org/u/Ni_Mz)
#### Post date: [July 24, 2024, 1:38am UTC](https://discourse.paraview.org/t/ambient-occulsion-broken-with-scaled-screenshots/7393/4 "2024-07-24T01:38:44Z")

</div>

Exactly! I am also dealing with the same issue in 2024. Is there any solution or update?!

---

<div class="post-metadata">

### Author: ![Lucas\_Givord](https://discourse.paraview.org/user_avatar/discourse.paraview.org/lucas_givord/32/6851_2.png) [@Lucas\_Givord](https://discourse.paraview.org/u/Lucas_Givord)
#### Post date: [July 24, 2024, 6:19am UTC](https://discourse.paraview.org/t/ambient-occulsion-broken-with-scaled-screenshots/7393/5 "2024-07-24T06:19:27Z")

</div>

AFAIK there is no solution, we have a dedicate issue created few months ago regarding that [https://gitlab.kitware.com/paraview/paraview/-/issues/20627](https://gitlab.kitware.com/paraview/paraview/-/issues/20627)

---

<div class="post-metadata">

### Author: ![Lucas\_Givord](https://discourse.paraview.org/user_avatar/discourse.paraview.org/lucas_givord/32/6851_2.png) [@Lucas\_Givord](https://discourse.paraview.org/u/Lucas_Givord)
#### Post date: [July 24, 2024, 6:32am UTC](https://discourse.paraview.org/t/ambient-occulsion-broken-with-scaled-screenshots/7393/6 "2024-07-24T06:32:18Z")

</div>

Tested on master and the issue is still present indeed, however there is a workaround.

This tiling effect occurs when the RenderView displayed in paraview doesn’t fit exaclty the dimension of the screenshot generated. If you setup the renderView to 4K then generate your png it works as expected.

To set your RenderView to a specific size go to `View > Preview > ...`

---

<div class="post-metadata">

### Author: ![Ni\_Mz](https://discourse.paraview.org/user_avatar/discourse.paraview.org/ni_mz/32/14894_2.png) [@Ni\_Mz](https://discourse.paraview.org/u/Ni_Mz)
#### Post date: [August 8, 2024, 1:23am UTC](https://discourse.paraview.org/t/ambient-occulsion-broken-with-scaled-screenshots/7393/7 "2024-08-08T01:23:41Z")

</div>

Thank you very much. It worked as instructed.

_-Nima_
