{ "id": "single-software-execution--cli--blender--task-15--ubuntu", "snapshot": "Blender-4.2.3", "instruction": "Compositor Glare (Fog Glow) vs raw. `/home/user/Desktop/scene.blend` contains: - A tiny bright emissive sphere (radius 0.1) at the origin. Launch Blender by running `blender` from a terminal. For this workflow, use `/opt/blender/blender` for Blender command-line or background runs when working on `scene.blend`.\n\nIts material is a Principled/Emission shader with color white and strength ~50, so the final render has a single intensely bright point near the image center on an otherwise pitch-black frame. - A `Camera` at (0, -3, 0) rotated +90 degrees around X so it looks along +Y (the sphere is centered in frame). - A pitch-black world background (`Background` color = (0,0,0), strength 0). - Render engine CYCLES at 512x512, 32 samples, denoising OFF. - `scene.use_nodes = False` (compositor NOT built yet). Task: build a compositor node graph that produces two PNG outputs side by side -- a 'raw' render and a 'glare' render where the glare comes from a Fog Glow filter applied to the same Render Layers image. Both PNGs go directly on the Desktop. 1. Enable the compositor: - `scene.use_nodes = True` - `tree = scene.node_tree` - Clear default nodes: `for n in list(tree.nodes): tree.nodes.remove(n)` 2. Add nodes: - `render_layers = tree.nodes.new('CompositorNodeRLayers')` - `glare = tree.nodes.new('CompositorNodeGlare')` - `glare.glare_type = 'FOG_GLOW'` - `glare.size = 9` (maximum FOG_GLOW spread; valid range 2..9) - `glare.threshold = 0.5` - `glare.mix = 1.0` (output is pure-glare, no original image mixed in) - `glare.quality = 'HIGH'` - `file_out = tree.nodes.new('CompositorNodeOutputFile')` - `file_out.base_path` = `/home/user/Desktop` or another path that writes directly to the Desktop - `file_out.format.file_format = 'PNG'`, color_mode='RGBA', color_depth='8' - Two slots: - Rename default slot 0 path to `'raw'`: `file_out.file_slots[0].path = 'raw'` - Add slot 1: `file_out.file_slots.new('glare')` - (Optional but recommended) a `CompositorNodeComposite` wired to `render_layers.Image` so the default render result is also populated. 3. Wire the links: - `render_layers.outputs['Image']` -> `file_out.inputs[0]` (raw slot) - `render_layers.outputs['Image']` -> `glare.inputs['Image']` - `glare.outputs['Image']` -> `file_out.inputs[1]` (glare slot) 4. Render so File Output writes to disk: - `scene.frame_start = scene.frame_end = 1` - `bpy.ops.render.render(write_still=True)` -- this produces e.g. `raw0001.png` and `glare0001.png` in `file_out.base_path`. - Optionally rename those to `raw.png` and `glare.png` (spec form) using `os.replace`. 5. Save the .blend to `/home/user/Desktop/answer.blend`. ## Requirements 1. The .blend exists and opens. 2. The scene contains an emissive source -- either a light object with energy >= 500, OR a mesh with an Emission-shader material (pure Emission strength > 0, OR Principled with Emission Strength > 0 and non-black Emission Color). 3. The scene contains a `Camera` object. 4. `scene.use_nodes == True`. 5. The compositor node tree contains a `CompositorNodeGlare`. 6. That glare node has `glare_type == 'FOG_GLOW'`. 7. After re-rendering with File Output, a `raw*.png` exists on the Desktop. 8. A `glare*.png` exists alongside it on the Desktop. 9. The glare PNG's annulus-ROI luma energy (BT.601 luma summed over pixels whose distance from the image center is in [40, 100] px on a 512x512 image) is at least 2.0x the raw PNG's annulus-ROI luma energy. (The inner annulus is set large enough to exclude the direct bright source, so the ratio measures the broad halo that FOG_GLOW produces.)", "source": "https://docs.blender.org/manual/en/4.1/; https://docs.blender.org/api/4.1/; https://developer.blender.org/docs/release_notes/4.1/; https://www.loc.gov/preservation/digital/formats/fdd/fdd000507.shtml", "config": [ { "type": "upload_file", "parameters": { "files": [ { "local_path": "task-15/init_file/scene.blend", "path": "/home/user/Desktop/scene.blend" } ] } } ], "trajectory": "trajectories/", "related_apps": [ "blender" ], "artifact_paths": [ "/home/user/Desktop/answer.blend", "/home/user/Desktop/glare.png", "/home/user/Desktop/glare0001.png", "/home/user/Desktop/raw.png", "/home/user/Desktop/raw0001.png" ], "evaluator": { "postconfig": [ { "type": "upload_file", "parameters": { "files": [ { "local_path": "task-15/eval.py", "path": "/home/user/Desktop/eval.py" } ] } } ], "func": "exact_match", "result": { "type": "vm_command_line", "command": "python3 /home/user/Desktop/eval.py", "shell": "true" }, "expected": { "type": "rule", "rules": { "expected": "True\n" } } }, "proxy": false, "fixed_ip": false, "possibility_of_env_change": "low" }