EEVEE: Update Render tests script
Last month we have been in the process of fixing the render tests of EEVEE-Next. These render tests had some issues. Currently we are in a state that render differences can be explained or related to an existing issue. Having these render tests will also enable testing differences between Metal and OpenGL. The new setup alters the position of the reflection probe so it doesn't intersect the ground or the sphere at the same time. An offset was added, which adds a small difference between cycles and eevee-next renders. There is a known issue with the HiZ buffers when render size is too small. We change the reflection probe render size as a temporary fix. Pull Request: https://projects.blender.org/blender/blender/pulls/117447
This commit is contained in:
@@ -25,17 +25,21 @@ def setup():
|
||||
eevee.use_volumetric_shadows = True
|
||||
eevee.volumetric_tile_size = '2'
|
||||
eevee.use_motion_blur = True
|
||||
# Due to an issue in HiZ-buffer set the probbe resolution to 256. When the
|
||||
# probe resolution is to high it will be corrupted as the HiZ buffer isn't
|
||||
# large enough
|
||||
eevee.gi_cubemap_resolution = '256'
|
||||
|
||||
# Does not work in edit mode
|
||||
try:
|
||||
# Simple probe setup
|
||||
bpy.ops.object.lightprobe_add(type='SPHERE', location=(0.5, 0, 1.5))
|
||||
bpy.ops.object.lightprobe_add(type='SPHERE', location=(0.05, 0.0, 0.03))
|
||||
cubemap = bpy.context.selected_objects[0]
|
||||
cubemap.scale = (2.5, 2.5, 1.0)
|
||||
cubemap.data.falloff = 0
|
||||
cubemap.data.clip_start = 2.4
|
||||
cubemap.scale = (1.0, 1.0, 1.0)
|
||||
cubemap.data.falloff = 0.0
|
||||
cubemap.data.clip_start = 0.975
|
||||
|
||||
bpy.ops.object.lightprobe_add(type='VOLUME', location=(0, 0, 0.25))
|
||||
bpy.ops.object.lightprobe_add(type='VOLUME', location=(0.0, 0.0, 0.0))
|
||||
grid = bpy.context.selected_objects[0]
|
||||
grid.scale = (1.735, 1.735, 1.735)
|
||||
grid.data.bake_samples = 256
|
||||
@@ -141,7 +145,6 @@ def main():
|
||||
report.set_fail_threshold(0.051)
|
||||
|
||||
ok = report.run(test_dir, blender, get_arguments, batch=args.batch)
|
||||
|
||||
sys.exit(not ok)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user