vk: add rendertest maker script
This commit is contained in:
parent
1ac00a8792
commit
4897f97726
|
@ -1,7 +1,7 @@
|
|||
# 2023-11-21 E334
|
||||
- [ ] reproducible rendering
|
||||
- [ ] dump all components
|
||||
- [ ] script
|
||||
- [x] script
|
||||
- [ ] try also dumping in native code
|
||||
- [ ] script for running and comparing results
|
||||
- [ ] command for random seed fixation
|
||||
|
|
|
@ -0,0 +1,40 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
displays = {
|
||||
'full': '',
|
||||
'basecolor': 'basecolor',
|
||||
'emissive': 'emissive',
|
||||
'nshade': 'nshade',
|
||||
'ngeom': 'ngeom',
|
||||
'lighting': 'lighting',
|
||||
'direct': 'direct',
|
||||
'indirect': 'indirect',
|
||||
'indirect_spec': 'indirect_spec',
|
||||
'indirect_diff': 'indirect_diff',
|
||||
}
|
||||
|
||||
saves = [
|
||||
'brush2_01',
|
||||
'brush_01',
|
||||
'brush_02',
|
||||
'c0a0d_emissive',
|
||||
'light_01',
|
||||
]
|
||||
|
||||
header = '''m_ignore 1
|
||||
scr_conspeed 100000
|
||||
con_notifytime 0
|
||||
hud_draw 0
|
||||
r_speeds 0
|
||||
developer 0'''
|
||||
|
||||
print(header)
|
||||
|
||||
for save in saves:
|
||||
screenshot_base = 'rendertest/'
|
||||
print('')
|
||||
print(f'load rendertest_{save}; wait 20')
|
||||
for name, display in displays.items():
|
||||
print(f'rt_debug_display_only "{display}"; screenshot {screenshot_base}{save}_{name}.png; wait 1')
|
||||
|
||||
print('quit')
|
|
@ -1,12 +0,0 @@
|
|||
m_ignore 1
|
||||
scr_conspeed 100000
|
||||
hud_draw 0
|
||||
r_speeds 0
|
||||
developer 0
|
||||
rt_debug_display_only indirect
|
||||
load rendertest_brush2_01; wait 20; screenshot rendertest/brush2_01.png; wait 1
|
||||
load rendertest_brush_01; wait 20; screenshot rendertest/brush_01.png; wait 1
|
||||
load rendertest_brush_02; wait 20; screenshot rendertest/brush_02.png; wait 1
|
||||
load rendertest_c0a0d_emissive; wait 20; screenshot rendertest/c0a0d_emissive.png; wait 1
|
||||
load rendertest_light_01; wait 20; screenshot rendertest/light_01.png; wait 1
|
||||
quit
|
Loading…
Reference in New Issue