- Introduced `render-parity` crate for comparing rendered frames against reference images. - Added command-line options for specifying manifest and output directory. - Implemented image comparison metrics: mean absolute difference, maximum absolute difference, and changed pixel ratio. - Created a configuration file `cases.toml` for defining test cases with global defaults and specific parameters. - Added functionality to capture frames from `render-demo` and save diff images on discrepancies. - Updated documentation to include usage instructions and CI model for automated testing.
28 lines
568 B
TOML
28 lines
568 B
TOML
[meta]
|
|
# Global defaults for all cases.
|
|
width = 1280
|
|
height = 720
|
|
lod = 0
|
|
group = 0
|
|
angle = 0.0
|
|
|
|
# Per-pixel change threshold for the "changed pixel ratio" metric.
|
|
diff_threshold = 8
|
|
|
|
# Allowed thresholds (case fails if any limit is exceeded).
|
|
max_mean_abs = 2.0
|
|
max_changed_ratio = 0.010
|
|
|
|
# Add one block per model.
|
|
#
|
|
# [[case]]
|
|
# id = "animals_a_l_01"
|
|
# archive = "../testdata/Parkan - Iron Strategy/animals.rlb"
|
|
# model = "A_L_01.msh"
|
|
# reference = "reference/animals_a_l_01.png"
|
|
# lod = 0
|
|
# group = 0
|
|
# angle = 0.0
|
|
# max_mean_abs = 2.0
|
|
# max_changed_ratio = 0.010
|