p2or / blender-loom

image sequence rendering, encoding and playback
175 stars 10 forks source link

rendering multiple viewlayers only writes to disk a single viewlayer (others are calculated though) #44

Closed jerry-nz closed 1 year ago

jerry-nz commented 1 year ago

hi there!

i may have found a bug, but i admit i'm both new to blender and new to loom... please be gentle!

it looks like if i try to render via ctrl+shift+alt+F12 and select a single file that contains two viewlayers, both are seemingly rendered, but then only the last one is written to disk and labelled whatever the 'output' was set at time of saving the file.

it's like it needs a forced refresh when switching viewlayers or something...?

Cheers, Jeremy

here's my repro steps: -- have two viewlayers: image -- have them both set to render: image image -- have the output path set to: D:\Work\training\blender\camera_tracking\render\cg\$VIEWLAYER\v07\$VIEWLAYER_v07. image -- save the file -- hit ctrl+shift_alt+F12 and load the file: image -- hit 'ok' and watch it render, noting it renders both viewlayers, but only writes to disk one.

Blender 3.4.1 (hash 55485cb379f7 built 2022-12-20 01:51:19)
Read prefs: C:\Users\OEM\AppData\Roaming\Blender Foundation\Blender\3.4\config\userpref.blend
Read blend: D:\Work\training\blender\camera_tracking\building_scene_v03.blend
Info: Read library:  'D:\Work\training\blender\assetLibrary\donut\donut_base_v01_bundle.blend', '//..\assetLibrary\donut\donut_base_v01_bundle.blend', parent '<direct>'
Info: 'D:\Work\training\blender\camera_tracking\render\cg\prpDonut01\v07' created
Fra:1 Mem:138.98M (Peak 138.99M) | Time:00:00.32 | Mem:0.00M, Peak:0.00M | Scene, prpDonut01 | Synchronizing object | chair
Fra:1 Mem:139.02M (Peak 139.02M) | Time:00:00.32 | Mem:0.00M, Peak:0.00M | Scene, prpDonut01 | Synchronizing object | donut
Fra:1 Mem:140.30M (Peak 143.55M) | Time:00:00.33 | Mem:0.00M, Peak:0.00M | Scene, prpDonut01 | Synchronizing object | icing
Fra:1 Mem:154.48M (Peak 157.25M) | Time:00:00.35 | Mem:0.00M, Peak:0.00M | Scene, prpDonut01 | Synchronizing object | sprinkle_source.001
Fra:1 Mem:154.50M (Peak 157.25M) | Time:00:00.35 | Mem:0.00M, Peak:0.00M | Scene, prpDonut01 | Synchronizing object | sprinkle_source.004
Fra:1 Mem:154.52M (Peak 157.25M) | Time:00:00.35 | Mem:0.00M, Peak:0.00M | Scene, prpDonut01 | Synchronizing object | sprinkle_source.003
Fra:1 Mem:154.54M (Peak 157.25M) | Time:00:00.35 | Mem:0.00M, Peak:0.00M | Scene, prpDonut01 | Synchronizing object | sprinkle_source.002
Fra:1 Mem:154.55M (Peak 157.25M) | Time:00:00.35 | Mem:0.00M, Peak:0.00M | Scene, prpDonut01 | Synchronizing object | sprinkle_source
Fra:1 Mem:154.59M (Peak 157.25M) | Time:00:00.35 | Mem:0.00M, Peak:0.00M | Scene, prpDonut01 | Synchronizing object | Sphere
Fra:1 Mem:154.66M (Peak 157.25M) | Time:00:00.35 | Mem:0.00M, Peak:0.00M | Scene, prpDonut01 | Synchronizing object | Sphere.001
Fra:1 Mem:154.72M (Peak 157.25M) | Time:00:00.35 | Mem:0.00M, Peak:0.00M | Scene, prpDonut01 | Synchronizing object | Sphere.002
Fra:1 Mem:154.79M (Peak 157.25M) | Time:00:00.35 | Mem:0.00M, Peak:0.00M | Scene, prpDonut01 | Synchronizing object | Sphere.003
Fra:1 Mem:154.86M (Peak 157.25M) | Time:00:00.35 | Mem:0.00M, Peak:0.00M | Scene, prpDonut01 | Synchronizing object | Sphere.004
Fra:1 Mem:154.88M (Peak 157.25M) | Time:00:00.35 | Mem:0.00M, Peak:0.00M | Scene, prpDonut01 | Synchronizing object | sunscreen
Fra:1 Mem:154.89M (Peak 157.25M) | Time:00:00.36 | Mem:0.00M, Peak:0.00M | Scene, prpDonut01 | Initializing
Fra:1 Mem:154.88M (Peak 166.00M) | Time:00:00.36 | Mem:0.00M, Peak:0.00M | Scene, prpDonut01 | Updating Images | Loading donut_base
Fra:1 Mem:155.90M (Peak 166.00M) | Time:00:00.41 | Mem:1.00M, Peak:1.00M | Scene, prpDonut01 | Waiting for render to start
Fra:1 Mem:155.90M (Peak 166.00M) | Time:00:00.41 | Mem:1.00M, Peak:1.00M | Scene, prpDonut01 | Loading render kernels (may take a few minutes the first time)
Fra:1 Mem:155.90M (Peak 173.67M) | Time:00:00.46 | Mem:1.02M, Peak:1.02M | Scene, prpDonut01 | Updating Scene
Fra:1 Mem:155.90M (Peak 173.67M) | Time:00:00.46 | Mem:1.02M, Peak:1.02M | Scene, prpDonut01 | Updating Shaders
Fra:1 Mem:156.41M (Peak 173.67M) | Time:00:00.47 | Mem:1.03M, Peak:1.03M | Scene, prpDonut01 | Updating Procedurals
Fra:1 Mem:156.41M (Peak 173.67M) | Time:00:00.47 | Mem:1.03M, Peak:1.03M | Scene, prpDonut01 | Updating Background
Fra:1 Mem:156.41M (Peak 173.67M) | Time:00:00.47 | Mem:1.03M, Peak:1.03M | Scene, prpDonut01 | Updating Camera
Fra:1 Mem:156.41M (Peak 173.67M) | Time:00:00.47 | Mem:1.03M, Peak:1.03M | Scene, prpDonut01 | Updating Meshes Flags
Fra:1 Mem:156.41M (Peak 173.67M) | Time:00:00.47 | Mem:1.03M, Peak:1.03M | Scene, prpDonut01 | Updating Objects
Fra:1 Mem:156.41M (Peak 173.67M) | Time:00:00.47 | Mem:1.03M, Peak:1.03M | Scene, prpDonut01 | Updating Objects | Copying Transformations to device
Fra:1 Mem:156.43M (Peak 173.67M) | Time:00:00.47 | Mem:1.07M, Peak:1.07M | Scene, prpDonut01 | Updating Objects | Applying Static Transformations
Fra:1 Mem:156.43M (Peak 173.67M) | Time:00:00.47 | Mem:1.07M, Peak:1.07M | Scene, prpDonut01 | Updating Particle SystemsFra:1 Mem:156.43M (Peak 173.67M) | Time:00:00.47 | Mem:1.07M, Peak:1.07M | Scene, prpDonut01 | Updating Particle Systems | Copying Particles to device
Fra:1 Mem:156.43M (Peak 173.67M) | Time:00:00.47 | Mem:1.07M, Peak:1.07M | Scene, prpDonut01 | Updating Meshes
Fra:1 Mem:162.37M (Peak 173.67M) | Time:00:00.48 | Mem:1.07M, Peak:1.07M | Scene, prpDonut01 | Updating Mesh | Computing attributes
Fra:1 Mem:165.09M (Peak 173.67M) | Time:00:00.48 | Mem:1.07M, Peak:1.07M | Scene, prpDonut01 | Updating Mesh | Copying Attributes to device
Fra:1 Mem:165.07M (Peak 173.67M) | Time:00:00.48 | Mem:3.77M, Peak:3.77M | Scene, prpDonut01 | Updating Geometry BVH Cylinder 15/15 | Building BVH
Fra:1 Mem:165.07M (Peak 173.67M) | Time:00:00.48 | Mem:3.77M, Peak:3.77M | Scene, prpDonut01 | Updating Geometry BVH Torus.003 4/15 | Building OptiX acceleration structure
Fra:1 Mem:165.07M (Peak 173.67M) | Time:00:00.50 | Mem:12.23M, Peak:46.14M | Scene, prpDonut01 | Updating Scene BVH | Building
Fra:1 Mem:165.08M (Peak 173.67M) | Time:00:00.50 | Mem:12.23M, Peak:46.14M | Scene, prpDonut01 | Updating Scene BVH | Building OptiX acceleration structure
Fra:1 Mem:165.08M (Peak 173.67M) | Time:00:00.56 | Mem:12.27M, Peak:46.14M | Scene, prpDonut01 | Updating Scene BVH | Copying BVH to device
Fra:1 Mem:165.08M (Peak 173.67M) | Time:00:00.56 | Mem:12.27M, Peak:46.14M | Scene, prpDonut01 | Updating Mesh | Computing normals
Fra:1 Mem:191.10M (Peak 191.10M) | Time:00:00.57 | Mem:12.27M, Peak:46.14M | Scene, prpDonut01 | Updating Mesh | Copying Mesh to device
Fra:1 Mem:191.10M (Peak 191.10M) | Time:00:00.57 | Mem:38.29M, Peak:46.14M | Scene, prpDonut01 | Updating Objects Flags
Fra:1 Mem:191.10M (Peak 191.10M) | Time:00:00.57 | Mem:38.29M, Peak:46.14M | Scene, prpDonut01 | Updating Primitive Offsets
Fra:1 Mem:191.10M (Peak 191.10M) | Time:00:00.57 | Mem:38.29M, Peak:46.14M | Scene, prpDonut01 | Updating Images
Fra:1 Mem:191.10M (Peak 191.10M) | Time:00:00.57 | Mem:38.29M, Peak:46.14M | Scene, prpDonut01 | Updating Images | Loading Image0001.exr
Fra:1 Mem:191.10M (Peak 191.10M) | Time:00:00.57 | Mem:38.29M, Peak:46.14M | Scene, prpDonut01 | Updating Images | Loading IMG_20230208_145920.jpg
Fra:1 Mem:389.17M (Peak 389.17M) | Time:00:00.68 | Mem:236.36M, Peak:236.36M | Scene, prpDonut01 | Updating Camera Volume
Fra:1 Mem:389.17M (Peak 389.17M) | Time:00:00.68 | Mem:236.36M, Peak:236.36M | Scene, prpDonut01 | Updating Lookup Tables
Fra:1 Mem:389.17M (Peak 389.17M) | Time:00:00.68 | Mem:236.62M, Peak:236.62M | Scene, prpDonut01 | Updating Lights
Fra:1 Mem:389.17M (Peak 389.17M) | Time:00:00.69 | Mem:236.62M, Peak:236.62M | Scene, prpDonut01 | Updating Lights | Computing distribution
Fra:1 Mem:389.17M (Peak 389.17M) | Time:00:00.69 | Mem:236.62M, Peak:236.62M | Scene, prpDonut01 | Updating Integrator
Fra:1 Mem:390.17M (Peak 390.17M) | Time:00:00.69 | Mem:237.62M, Peak:237.62M | Scene, prpDonut01 | Updating Film
Fra:1 Mem:390.17M (Peak 390.43M) | Time:00:00.69 | Mem:237.37M, Peak:237.62M | Scene, prpDonut01 | Updating Lookup Tables
Fra:1 Mem:390.17M (Peak 390.43M) | Time:00:00.69 | Mem:237.62M, Peak:237.62M | Scene, prpDonut01 | Updating Baking
Fra:1 Mem:390.17M (Peak 390.43M) | Time:00:00.69 | Mem:237.62M, Peak:237.62M | Scene, prpDonut01 | Updating Device | Writing constant memory
Fra:1 Mem:390.18M (Peak 390.43M) | Time:00:00.69 | Mem:237.62M, Peak:237.62M | Scene, prpDonut01 | Loading denoising kernels (may take a few minutes the first time)
Fra:1 Mem:396.56M (Peak 396.56M) | Time:00:00.71 | Mem:766.75M, Peak:766.75M | Scene, prpDonut01 | Sample 0/512
Fra:1 Mem:546.85M (Peak 546.85M) | Time:00:00.72 | Remaining:00:07.10 | Mem:917.05M, Peak:917.05M | Scene, prpDonut01 | Sample 1/512
Fra:1 Mem:546.86M (Peak 546.88M) | Time:00:00.99 | Remaining:00:01.51 | Mem:917.06M, Peak:917.06M | Scene, prpDonut01 | Sample 80/512
Fra:1 Mem:546.86M (Peak 546.88M) | Time:00:01.00 | Remaining:00:01.27 | Mem:917.06M, Peak:917.06M | Scene, prpDonut01 | Sample 96/512
Fra:1 Mem:546.86M (Peak 546.88M) | Time:00:01.02 | Remaining:00:01.09 | Mem:917.06M, Peak:917.06M | Scene, prpDonut01 | Sample 112/512
Fra:1 Mem:546.86M (Peak 546.88M) | Time:00:01.03 | Remaining:00:00.95 | Mem:917.06M, Peak:917.06M | Scene, prpDonut01 | Sample 128/512
Fra:1 Mem:546.86M (Peak 546.88M) | Time:00:01.04 | Remaining:00:00.84 | Mem:917.06M, Peak:917.06M | Scene, prpDonut01 | Sample 144/512
Fra:1 Mem:546.86M (Peak 546.88M) | Time:00:01.05 | Remaining:00:00.75 | Mem:917.06M, Peak:917.06M | Scene, prpDonut01 | Sample 160/512
Fra:1 Mem:546.86M (Peak 546.88M) | Time:00:01.07 | Remaining:00:00.68 | Mem:917.06M, Peak:917.06M | Scene, prpDonut01 | Sample 176/512
Fra:1 Mem:546.86M (Peak 546.88M) | Time:00:01.08 | Remaining:00:00.61 | Mem:917.06M, Peak:917.06M | Scene, prpDonut01 | Sample 192/512
Fra:1 Mem:546.86M (Peak 546.88M) | Time:00:01.09 | Remaining:00:00.55 | Mem:917.06M, Peak:917.06M | Scene, prpDonut01 | Sample 208/512
Fra:1 Mem:546.86M (Peak 546.88M) | Time:00:01.11 | Remaining:00:00.50 | Mem:917.06M, Peak:917.06M | Scene, prpDonut01 | Sample 224/512
Fra:1 Mem:546.86M (Peak 546.88M) | Time:00:01.12 | Remaining:00:00.46 | Mem:917.06M, Peak:917.06M | Scene, prpDonut01 | Sample 240/512
Fra:1 Mem:546.86M (Peak 546.88M) | Time:00:01.13 | Remaining:00:00.42 | Mem:917.06M, Peak:917.06M | Scene, prpDonut01 | Sample 256/512
Fra:1 Mem:546.86M (Peak 546.88M) | Time:00:01.14 | Remaining:00:00.38 | Mem:917.06M, Peak:917.06M | Scene, prpDonut01 | Sample 272/512
Fra:1 Mem:546.86M (Peak 546.88M) | Time:00:01.15 | Remaining:00:00.34 | Mem:917.06M, Peak:917.06M | Scene, prpDonut01 | Sample 288/512
Fra:1 Mem:546.86M (Peak 546.88M) | Time:00:01.17 | Remaining:00:00.31 | Mem:917.06M, Peak:917.06M | Scene, prpDonut01 | Sample 304/512
Fra:1 Mem:546.86M (Peak 546.88M) | Time:00:01.18 | Remaining:00:00.28 | Mem:917.06M, Peak:917.06M | Scene, prpDonut01 | Sample 320/512
Fra:1 Mem:546.86M (Peak 546.88M) | Time:00:01.19 | Remaining:00:00.25 | Mem:917.06M, Peak:917.06M | Scene, prpDonut01 | Sample 336/512
Fra:1 Mem:546.86M (Peak 546.88M) | Time:00:01.20 | Remaining:00:00.22 | Mem:917.06M, Peak:917.06M | Scene, prpDonut01 | Sample 352/512
Fra:1 Mem:546.86M (Peak 546.88M) | Time:00:01.22 | Remaining:00:00.19 | Mem:917.06M, Peak:917.06M | Scene, prpDonut01 | Sample 368/512
Fra:1 Mem:546.86M (Peak 546.88M) | Time:00:01.23 | Remaining:00:00.17 | Mem:917.06M, Peak:917.06M | Scene, prpDonut01 | Sample 384/512
Fra:1 Mem:546.86M (Peak 546.88M) | Time:00:01.24 | Remaining:00:00.14 | Mem:917.06M, Peak:917.06M | Scene, prpDonut01 | Sample 400/512
Fra:1 Mem:546.86M (Peak 546.88M) | Time:00:01.25 | Remaining:00:00.12 | Mem:917.06M, Peak:917.06M | Scene, prpDonut01 | Sample 416/512
Fra:1 Mem:546.86M (Peak 546.88M) | Time:00:01.26 | Remaining:00:00.10 | Mem:917.06M, Peak:917.06M | Scene, prpDonut01 | Sample 432/512
Fra:1 Mem:546.86M (Peak 546.88M) | Time:00:01.28 | Remaining:00:00.08 | Mem:917.06M, Peak:917.06M | Scene, prpDonut01 | Sample 448/512
Fra:1 Mem:546.86M (Peak 546.88M) | Time:00:01.29 | Remaining:00:00.05 | Mem:917.06M, Peak:917.06M | Scene, prpDonut01 | Sample 464/512
Fra:1 Mem:546.86M (Peak 546.88M) | Time:00:01.30 | Remaining:00:00.03 | Mem:917.06M, Peak:917.06M | Scene, prpDonut01 | Sample 480/512
Fra:1 Mem:546.86M (Peak 546.88M) | Time:00:01.31 | Remaining:00:00.01 | Mem:917.06M, Peak:917.06M | Scene, prpDonut01 | Sample 496/512
Fra:1 Mem:720.89M (Peak 815.81M) | Time:00:03.39 | Mem:917.06M, Peak:917.06M | Scene, prpDonut01 | Sample 512/512
Fra:1 Mem:720.89M (Peak 815.81M) | Time:00:03.39 | Mem:917.06M, Peak:917.06M | Scene, prpDonut01 | Finished
Fra:1 Mem:720.81M (Peak 815.81M) | Time:00:03.39 | Mem:917.06M, Peak:917.06M | Scene, contactDonutToBook01 | Synchronizing object | table.001
Fra:1 Mem:720.84M (Peak 815.81M) | Time:00:03.39 | Mem:917.06M, Peak:917.06M | Scene, contactDonutToBook01 | Synchronizing object | chair.001
Fra:1 Mem:720.84M (Peak 815.81M) | Time:00:03.39 | Mem:917.06M, Peak:917.06M | Scene, contactDonutToBook01 | Initializing
Fra:1 Mem:720.83M (Peak 815.81M) | Time:00:03.39 | Mem:917.06M, Peak:917.06M | Scene, contactDonutToBook01 | Waiting for render to start
Fra:1 Mem:720.83M (Peak 815.81M) | Time:00:03.40 | Mem:917.06M, Peak:917.06M | Scene, contactDonutToBook01 | Loading render kernels (may take a few minutes the first time)
Fra:1 Mem:720.83M (Peak 815.81M) | Time:00:03.40 | Mem:917.06M, Peak:917.06M | Scene, contactDonutToBook01 | Updating Scene
Fra:1 Mem:720.83M (Peak 815.81M) | Time:00:03.40 | Mem:917.06M, Peak:917.06M | Scene, contactDonutToBook01 | Updating Shaders
Fra:1 Mem:720.83M (Peak 815.81M) | Time:00:03.40 | Mem:917.06M, Peak:917.06M | Scene, contactDonutToBook01 | Updating Background
Fra:1 Mem:720.83M (Peak 815.81M) | Time:00:03.40 | Mem:917.06M, Peak:917.06M | Scene, contactDonutToBook01 | Updating Camera
Fra:1 Mem:720.83M (Peak 815.81M) | Time:00:03.40 | Mem:917.06M, Peak:917.06M | Scene, contactDonutToBook01 | Updating Meshes Flags
Fra:1 Mem:720.83M (Peak 815.81M) | Time:00:03.40 | Mem:917.06M, Peak:917.06M | Scene, contactDonutToBook01 | Updating Objects
Fra:1 Mem:720.79M (Peak 815.81M) | Time:00:03.40 | Mem:917.02M, Peak:917.06M | Scene, contactDonutToBook01 | Updating Objects | Copying Transformations to device
Fra:1 Mem:720.80M (Peak 815.81M) | Time:00:03.40 | Mem:917.05M, Peak:917.06M | Scene, contactDonutToBook01 | Updating Objects | Applying Static Transformations
Fra:1 Mem:720.80M (Peak 815.81M) | Time:00:03.40 | Mem:917.05M, Peak:917.06M | Scene, contactDonutToBook01 | Updating Particle Systems
Fra:1 Mem:720.80M (Peak 815.81M) | Time:00:03.41 | Mem:917.05M, Peak:917.06M | Scene, contactDonutToBook01 | Updating Meshes
Fra:1 Mem:692.08M (Peak 815.81M) | Time:00:03.41 | Mem:888.33M, Peak:917.06M | Scene, contactDonutToBook01 | Updating Mesh | Computing attributes
Fra:1 Mem:694.80M (Peak 815.81M) | Time:00:03.41 | Mem:888.34M, Peak:917.06M | Scene, contactDonutToBook01 | Updating Mesh | Copying Attributes to device
Fra:1 Mem:694.78M (Peak 815.81M) | Time:00:03.41 | Mem:891.04M, Peak:917.06M | Scene, contactDonutToBook01 | Updating Geometry BVH Cube.003 2/2 | Building BVH
Fra:1 Mem:694.78M (Peak 815.81M) | Time:00:03.41 | Mem:891.04M, Peak:917.06M | Scene, contactDonutToBook01 | Updating Geometry BVH Cube.004 1/2 | Building BVH
Fra:1 Mem:694.78M (Peak 815.81M) | Time:00:03.41 | Mem:890.99M, Peak:917.06M | Scene, contactDonutToBook01 | Updating Geometry BVH Cube.004 1/2 | Building OptiX acceleration structure
Fra:1 Mem:694.78M (Peak 815.81M) | Time:00:03.41 | Mem:890.99M, Peak:917.06M | Scene, contactDonutToBook01 | Updating Scene BVH | Building
Fra:1 Mem:694.78M (Peak 815.81M) | Time:00:03.41 | Mem:890.99M, Peak:917.06M | Scene, contactDonutToBook01 | Updating Scene BVH | Building OptiX acceleration structure
Fra:1 Mem:694.78M (Peak 815.81M) | Time:00:03.41 | Mem:891.03M, Peak:917.06M | Scene, contactDonutToBook01 | Updating Scene BVH | Copying BVH to device
Fra:1 Mem:694.78M (Peak 815.81M) | Time:00:03.42 | Mem:891.03M, Peak:917.06M | Scene, contactDonutToBook01 | Updating Mesh | Computing normals
Fra:1 Mem:720.79M (Peak 815.81M) | Time:00:03.43 | Mem:891.03M, Peak:917.06M | Scene, contactDonutToBook01 | Updating Mesh | Copying Mesh to device
Fra:1 Mem:720.79M (Peak 815.81M) | Time:00:03.43 | Mem:917.04M, Peak:917.06M | Scene, contactDonutToBook01 | Updating Objects Flags
Fra:1 Mem:720.79M (Peak 815.81M) | Time:00:03.43 | Mem:917.04M, Peak:917.06M | Scene, contactDonutToBook01 | Updating Primitive Offsets
Fra:1 Mem:720.79M (Peak 815.81M) | Time:00:03.43 | Mem:917.04M, Peak:917.06M | Scene, contactDonutToBook01 | Updating Images
Fra:1 Mem:720.79M (Peak 815.81M) | Time:00:03.44 | Mem:917.04M, Peak:917.06M | Scene, contactDonutToBook01 | Updating Camera Volume
Fra:1 Mem:720.79M (Peak 815.81M) | Time:00:03.44 | Mem:917.04M, Peak:917.06M | Scene, contactDonutToBook01 | Updating Lookup Tables
Fra:1 Mem:720.79M (Peak 815.81M) | Time:00:03.44 | Mem:917.04M, Peak:917.06M | Scene, contactDonutToBook01 | Updating Lights
Fra:1 Mem:720.79M (Peak 815.81M) | Time:00:03.44 | Mem:917.04M, Peak:917.06M | Scene, contactDonutToBook01 | Updating Lights | Computing distribution
Fra:1 Mem:720.79M (Peak 815.81M) | Time:00:03.44 | Mem:917.04M, Peak:917.06M | Scene, contactDonutToBook01 | Updating Integrator
Fra:1 Mem:720.29M (Peak 815.81M) | Time:00:03.44 | Mem:916.54M, Peak:917.06M | Scene, contactDonutToBook01 | Updating Film
Fra:1 Mem:720.29M (Peak 815.81M) | Time:00:03.44 | Mem:916.54M, Peak:917.06M | Scene, contactDonutToBook01 | Updating Lookup Tables
Fra:1 Mem:720.29M (Peak 815.81M) | Time:00:03.44 | Mem:916.54M, Peak:917.06M | Scene, contactDonutToBook01 | Updating Baking
Fra:1 Mem:720.29M (Peak 815.81M) | Time:00:03.44 | Mem:916.54M, Peak:917.06M | Scene, contactDonutToBook01 | Updating Device | Writing constant memory
Fra:1 Mem:720.29M (Peak 815.81M) | Time:00:03.44 | Mem:916.54M, Peak:917.06M | Scene, contactDonutToBook01 | Sample 0/128
Fra:1 Mem:838.95M (Peak 838.95M) | Time:00:03.49 | Remaining:00:05.63 | Mem:1035.19M, Peak:1035.19M | Scene, contactDonutToBook01 | Sample 1/128
Fra:1 Mem:838.95M (Peak 838.96M) | Time:00:04.83 | Remaining:00:00.83 | Mem:1035.19M, Peak:1035.19M | Scene, contactDonutToBook01 | Sample 80/128
Fra:1 Mem:838.95M (Peak 838.96M) | Time:00:05.12 | Remaining:00:00.56 | Mem:1035.19M, Peak:1035.19M | Scene, contactDonutToBook01 | Sample 96/128
Fra:1 Mem:838.95M (Peak 838.96M) | Time:00:05.42 | Remaining:00:00.28 | Mem:1035.19M, Peak:1035.19M | Scene, contactDonutToBook01 | Sample 112/128
Fra:1 Mem:838.95M (Peak 981.33M) | Time:00:09.34 | Mem:1035.19M, Peak:1035.19M | Scene, contactDonutToBook01 | Sample 128/128
Fra:1 Mem:838.95M (Peak 981.33M) | Time:00:09.34 | Mem:1035.19M, Peak:1035.19M | Scene, contactDonutToBook01 | Finished
Saved: 'D:\Work\training\blender\camera_tracking\render\cg\prpDonut01\v07\prpDonut01_v07.0001.exr'
 Time: 00:09.48 (Saving: 00:00.14)

Info: Saved "building_scene_v03.blend"

Blender quit
Press any key to continue . . .`

-- further backed up by both not appearing on disk: image image

p2or commented 1 year ago

Hi @jerry-nz,

thanks for your report. Your thoughts are great and this should work. Unfortunately it doesn't work because Blender (at its current state) saves the image only once per frame and not two times as we would expect. You can see the same behavior if you're rendering without Loom (Render > Render Animation): Even if both layers are rendered, only one is saved and the other one is lost in space.

If you want one image per viewlayer, Blender wants you to setup a comp like:

Screenshot 2023-02-09 at 08 21 42

If you're lazy, you can also set the 'File Format' to 'OpenEXR Multilayer' (as you did) without the comp:

Screenshot 2023-02-09 at 08 24 46

but this will automatically save both layers in one file (therefore called multilayer) and you'll have to 'unpack' the layers using any comp package of your choice. Unfortunatly you're getting some extra junk too (see both noisy layers):

Screenshot 2023-02-09 at 08 48 45

Following file is set up to render one multichannel exr file to <vl-debug.blend>/render/vl_all_0001.exr: vl-debug.blend.zip with Loom or even without it. If you want single files for each viewlayer, enable 'Use Nodes' in the header of the comp area. Does this help?

Regarding to the $VIEWLAYER variable: Right now I don't see any way of using it the way we want it to, since this is out of the scope of what we can do with python. It would be really nice if this would work out of the box, but I think this is one of those Blender limitations we have to deal with...

Cheers, Christian

jerry-nz commented 1 year ago

ah yep, dang software limitations! thank you for the in depth reply, Cheers!

p2or commented 1 year ago

Ez, glad I could help. Cheers, Christian