# (open)\[HOU-3728\]Aerial perspective sun bug

**URL:** <https://forums.chaos.com/t/open-hou-3728-aerial-perspective-sun-bug/114219>\
**Category:** Issues\
**Created:** [March 8, 2023, 2:04pm UTC](https://forums.chaos.com/t/open-hou-3728-aerial-perspective-sun-bug/114219 "2023-03-08T14:04:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![stereocolor\_ab](https://avatars.discourse-cdn.com/v4/letter/s/b19c9b/32.png) [@stereocolor\_ab](https://forums.chaos.com/u/stereocolor_ab)\
**Post date:** [March 8, 2023, 2:04pm UTC](https://forums.chaos.com/t/open-hou-3728-aerial-perspective-sun-bug/114219/1 "2023-03-08T14:04:25Z")

</div>

Hi,  
I’m trying to render a scene using a vraySunLight together with the Aerial Perspective effect.  
The resulting atmosphere does not match the angle of the light. Seems to me like some transform math is just off, it doesn’t seem to just be a rotation ‘offset’.

I’ve replicated the issue in a basic scene.  
[https://www.dropbox.com/t/rAVmsSoZLRn3fv8w](https://www.dropbox.com/t/rAVmsSoZLRn3fv8w)

There’s some geo and a vraySunLight pointing straight down. When rendering without the aerial perspective you can see that everything is top lit.  
When turning the aerial perspective on the rendered atmosphere and Inscattered light seems to come from a 90 degree angle.

Seems like a bug to me, but if I’m missing something let me know.

 ![Viewport_Sun_pointing_down.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/5/f/5ff494026589119b028777f67dde5011ded01e07.jpeg)  
 ![Aerial_Perspective_off__exposure-8.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/8/4/84df3e08200e75814beeadfbcecf64b007b13ec7.jpeg)  
 ![Aerial_Perspective_on__exposure-8.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/5/1/51047b9bdb7051725669f2dccb07d56ed5db1277.jpeg)

---

<div class="post-metadata">

**Author:** ![chakarov](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/chakarov/32/29561_2.png) [@chakarov](https://forums.chaos.com/u/chakarov)\
**Post date:** [March 21, 2023, 9:19am UTC](https://forums.chaos.com/t/open-hou-3728-aerial-perspective-sun-bug/114219/2 "2023-03-21T09:19:39Z")

</div>

Hello @stereocolor_ab , sorry for late replay. I’ve reproduced and reported the issue. This is not the sunlight, shadows are were they should be. The highlight seems to be affected by scene scale and aerial perspective settings.

---

<div class="post-metadata">

**Author:** ![stereocolor\_ab](https://avatars.discourse-cdn.com/v4/letter/s/b19c9b/32.png) [@stereocolor\_ab](https://forums.chaos.com/u/stereocolor_ab)\
**Post date:** [March 21, 2023, 2:45pm UTC](https://forums.chaos.com/t/open-hou-3728-aerial-perspective-sun-bug/114219/3 "2023-03-21T14:45:39Z")

</div>

Hey Georgy,  
Yea, the direct light seems to be correct, but the atmos and inscattered light from the aerial perspective don’t behave as expected.

Is there also an issue with the scene scale? Was there something I did wrong in my test scene?

---

<div class="post-metadata">

**Author:** ![chakarov](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/chakarov/32/29561_2.png) [@chakarov](https://forums.chaos.com/u/chakarov)\
**Post date:** [March 22, 2023, 12:01pm UTC](https://forums.chaos.com/t/open-hou-3728-aerial-perspective-sun-bug/114219/4 "2023-03-22T12:01:01Z")

</div>

The scene scale shouldn’t be an issue, we are still investigating what is causing this wrong highlight.
