render: add a bunch of new channels to compare

New channels:
- material: red = roughness, green = metalness
- direct_diffuse: direct lighting diffuse channel
- direct_specular: direct lighting specular channel
- diffuset: direct + indirect diffuse, spatially denoised
- specular: direct + indirect specular, spatially denoised
This commit is contained in:
Ivan Avdeev 2024-02-01 12:16:36 -05:00
parent 42a2d778e3
commit 6e809543f3
71 changed files with 217 additions and 0 deletions

BIN
render/gold/additive_cullback_diffuse.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/additive_cullback_direct_diffuse.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/additive_cullback_direct_specular.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/additive_cullback_material.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/additive_cullback_specular.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/blendmode01_diffuse.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/blendmode01_direct_diffuse.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/blendmode01_direct_specular.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/blendmode01_material.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/blendmode01_specular.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/blendoversky_diffuse.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/blendoversky_direct_diffuse.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/blendoversky_direct_specular.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/blendoversky_material.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/blendoversky_specular.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/brush2_01_diffuse.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/brush2_01_direct_diffuse.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/brush2_01_direct_specular.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/brush2_01_material.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/brush2_01_specular.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/brush_01_diffuse.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/brush_01_direct_diffuse.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/brush_01_direct_specular.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/brush_01_material.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/brush_01_specular.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/brush_02_diffuse.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/brush_02_direct_diffuse.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/brush_02_direct_specular.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/brush_02_material.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/brush_02_specular.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/c0a0d_emissive_diffuse.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/c0a0d_emissive_direct_diffuse.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/c0a0d_emissive_direct_specular.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/c0a0d_emissive_material.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/c0a0d_emissive_specular.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/c1a3_fan_material_669_diffuse.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/c1a3_fan_material_669_direct_diffuse.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/c1a3_fan_material_669_direct_specular.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/c1a3_fan_material_669_material.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/c1a3_fan_material_669_specular.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/c2a1b_toxicgrn_672_diffuse.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/c2a1b_toxicgrn_672_direct_diffuse.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/c2a1b_toxicgrn_672_direct_specular.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/c2a1b_toxicgrn_672_material.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/c2a1b_toxicgrn_672_specular.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/c2a5_skybox_diffuse.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/c2a5_skybox_direct_diffuse.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/c2a5_skybox_direct_specular.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/c2a5_skybox_material.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/c2a5_skybox_specular.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/light_01_diffuse.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/light_01_direct_diffuse.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/light_01_direct_specular.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/light_01_material.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/light_01_specular.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/material_2light0_679_diffuse.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/material_2light0_679_direct_diffuse.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/material_2light0_679_direct_specular.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/material_2light0_679_material.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/material_2light0_679_specular.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/material_2light1_679_diffuse.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/material_2light1_679_direct_diffuse.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/material_2light1_679_direct_specular.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/material_2light1_679_material.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/material_2light1_679_specular.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/shaders_alphatest_721_diffuse.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/shaders_alphatest_721_direct_diffuse.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/shaders_alphatest_721_direct_specular.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/shaders_alphatest_721_material.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
render/gold/shaders_alphatest_721_specular.png (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -21,6 +21,7 @@ for (_, _, files) in os.walk(os.path.join(ROOT, 'save')):
saves.append(file.removesuffix('.sav').removeprefix('rendertest_')) saves.append(file.removesuffix('.sav').removeprefix('rendertest_'))
channels = { channels = {
# channel name: rt_debug_display_only value
'full': '', 'full': '',
'basecolor': 'basecolor', 'basecolor': 'basecolor',
'emissive': 'emissive', 'emissive': 'emissive',
@ -28,6 +29,11 @@ channels = {
'ngeom': 'ngeom', 'ngeom': 'ngeom',
'lighting': 'lighting', 'lighting': 'lighting',
'direct': 'direct', 'direct': 'direct',
'direct_diffuse': 'direct_diff',
'direct_specular': 'direct_spec',
'diffuse': 'diffuse',
'specular': 'specular',
'material': 'material',
'indirect': 'indirect', 'indirect': 'indirect',
'indirect_specular': 'indirect_spec', 'indirect_specular': 'indirect_spec',
'indirect_diffuse': 'indirect_diff', 'indirect_diffuse': 'indirect_diff',
@ -110,6 +116,7 @@ def render():
env['LD_LIBRARY_PATH'] = '.' env['LD_LIBRARY_PATH'] = '.'
subprocess.run([f'{args.xash_dir}/xash3d', '-ref', 'vk', subprocess.run([f'{args.xash_dir}/xash3d', '-ref', 'vk',
'-nowriteconfig', '-nosound', '-log', '-nowriteconfig', '-nosound', '-log',
#'-dev', '2', '-vkverboselogs',
'-width', '1280', '-height', '800', '-width', '1280', '-height', '800',
'+exec', 'rendertest.script'], '+exec', 'rendertest.script'],
env=env, check=True) env=env, check=True)