1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-24 13:50:49 +03:00

0030575: Tests - v3d/materials unstable image screenshots of alpha-blending on GeForce with MSAA

testdiff now looks for "IMAGE_COLOR_TOLERANCE: Tol" statements in log
to execute diffimage with -toleranceOfColor Tol parameter.

Image difference is first performed with 0 tolerance and then optionally with non-zero tolerance,
so that the log always includes information that some images are different,
but with two different messages:
- "IMAGE differs" for images failed comparison;
- "IMAGE is similar" for images passed comparison only with non-zero tolerance.

v3d/materials - disabled MSAA and removed duplicate.
demo/samples/materials - compare screenshots with 0.8% color tolerance (2/255).
This commit is contained in:
kgv
2019-03-15 00:12:12 +03:00
committed by apn
parent 6072d5975a
commit f2b42160f4
8 changed files with 76 additions and 50 deletions

View File

@@ -1,4 +1,8 @@
# test for visual properties of materials in 3d viewer
puts "Test visual properties of materials in 3d viewer"
puts "Workaround instability on GeForce cards with MSAA at semitransparent sphere"
puts "IMAGE_COLOR_TOLERANCE: 0.008"
source $env(CSF_OCCTSamplesPath)/tcl/materials.tcl
# make a snapshot