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

Added New "ParallaxDepthArtifacts" Screenshot Tests #423

Conversation

santorac
Copy link
Contributor

@santorac santorac commented Apr 23, 2022

Added new screenshot tests that focus on exposing depth-test artifacts in parallax surfaces.
I added a new setting to the Parallax sample that allows turning off all lights, so the surface is rendered black. This allows us to use a much tighter threshold on the screenshot comparison, since an entirely black unlit surface will not exhibit the sensitive platform differences we are used to seeing on parallax materials. This should ensure any depth-test calculation noise, which show up as gray firefly pixels, will cause the test threshold to fail.
I included many screenshots because the noise seems to be platform - and/or driver-dependent, so having more screenshots increases the chances of detecting failures.
Also made sure any IBL is cleared when closing a sample. There were some cases where the IBL from one sample could persist when opening another sample, for example when going directly from the Mesh sample to the Parallax sample.

Corresponds to these code changes o3de/o3de#9135

The expected screenshots all look similar to this:
screenshot_1

…s in parallax surfaces.

I added a new setting to the Parallax sample that allows turning off all lights, so the surface is rendered black. This allows us to use a much tighter threshold on the screenshot comparison, since an entirely black unlit surface will not exhibit the sensitive platform differences we are used to seeing on parallax materials. This should ensure any depth-test calculation noise, which show up as gray firefly pixels, will cause the test threshold to fail.
I included many screenshots because the noise seems to be platform - and/or driver-dependent, so having more screenshots increases the chances of detecting failures.

Signed-off-by: santorac <55155825+santorac@users.noreply.github.com>
Signed-off-by: santorac <55155825+santorac@users.noreply.github.com>
…ases where the IBL from one sample could persist when opening another sample, for example when going directly from the Mesh sample to the Parallax sample.

Signed-off-by: santorac <55155825+santorac@users.noreply.github.com>
…c/FixingParallaxIssues

Signed-off-by: santorac <55155825+santorac@users.noreply.github.com>
@santorac santorac requested review from antonmic and a team April 23, 2022 23:24
@santorac santorac changed the title q Added New "ParallaxDepthArtifacts" Screenshot Tests Apr 23, 2022
OpenSample('Features/Parallax')
ResizeViewport(512, 512)

-- Several times there have bugs that appeared, related to inconsistent depth calculations causing unwanted clipping of pixels on parallax surfaces.
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: have bugs->have been bugs

Copy link
Contributor

Choose a reason for hiding this comment

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

Or even better
"Several times there have been bugs that appeared," -> "There have been several bugs related..."

Signed-off-by: santorac <55155825+santorac@users.noreply.github.com>
@santorac santorac merged commit 4b8bb33 into o3de:development Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants