Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix occasional flickering issue when skybox and directional light shadows are enabled. #440

Merged
merged 2 commits into from
Sep 29, 2021

Conversation

iche033
Copy link
Contributor

@iche033 iche033 commented Sep 29, 2021

Signed-off-by: Ian Chen [email protected]

🦟 Bug fix

When both skybox and shadows are enabled in a complex scene (with lots of textures), there seem to be a weird "flickering" issue of objects. Turns out the problem is due to the skybox being rendered out of order. The skybox texture just gets rendered over the scene - so objects look like they are flickering.

Note this doesn't happen all the time. It's easier to reproduce on some machines than others.

The updated compositor setup follows the same setup in ogre samples:
https://github.com/OGRECave/ogre-next/blob/v2-2/Samples/Media/2.0/scripts/Compositors/TutorialSky_Postprocess.compositor#L8-L32

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge

Signed-off-by: Ian Chen <[email protected]>
@codecov
Copy link

codecov bot commented Sep 29, 2021

Codecov Report

Merging #440 (ef11ba8) into main (34d1d0a) will increase coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #440      +/-   ##
==========================================
+ Coverage   53.46%   53.49%   +0.03%     
==========================================
  Files         192      192              
  Lines       19536    19549      +13     
==========================================
+ Hits        10444    10458      +14     
+ Misses       9092     9091       -1     
Impacted Files Coverage Δ
ogre2/src/Ogre2DepthCamera.cc 87.30% <100.00%> (+0.17%) ⬆️
ogre2/src/Ogre2RenderTarget.cc 86.05% <100.00%> (+0.20%) ⬆️
...e/ignition/rendering/base/BaseGaussianNoisePass.hh 100.00% <0.00%> (+3.33%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 34d1d0a...ef11ba8. Read the comment docs.

Copy link
Contributor

@ahcorde ahcorde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fix the issue for me

@chapulina chapulina added beta Targeting beta release of upcoming collection bug Something isn't working labels Sep 29, 2021
Copy link
Contributor

@chapulina chapulina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me 👍

@chapulina chapulina merged commit 6d08ef3 into main Sep 29, 2021
@chapulina chapulina deleted the skybox_render branch September 29, 2021 23:30
@iche033 iche033 mentioned this pull request Mar 1, 2022
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beta Targeting beta release of upcoming collection bug Something isn't working 🏯 fortress Ignition Fortress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants