HongchengGao's picture
Align task taxonomy and IDs with the updated paper; main evaluation 306
3de3b50 verified
Raw History Blame Contribute Delete
3.68 kB
{
"id": "single-software-execution--cli--blender--task-07--ubuntu",
"snapshot": "Blender-4.2.3",
"instruction": "Heightmap to Terrain Mesh `/home/user/Desktop/height.png` is a 64×64 8-bit grayscale PNG. `/home/user/Desktop/template.blend` is an empty scene. 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 `template.blend`.\n\nBuild a heightmap terrain mesh from the PNG and save the result to `/home/user/Desktop/answer.blend`. ## Mesh definition - One vertex per pixel, so the mesh has 64×64 = 4096 vertices. - For pixel at column `x` and row `y` with 8-bit grayscale value `v ∈ [0, 255]`, the corresponding vertex in the object's local space is `(x, y, v / 255 * 0.5)`. (So Z = 0 at black, Z = 0.5 at white.) Columns correspond to PNG x, rows to PNG y. - Adjacent 2×2 pixel blocks form faces. That is, for every `0 ≤ x < 63` and `0 ≤ y < 63` there is a face whose corners are the four vertices at `(x,y)`, `(x+1,y)`, `(x+1,y+1)`, `(x,y+1)`. Faces may be kept as quads (3969 total) or triangulated (7938 total) — both are accepted. - The mesh object is named `Terrain`. Its object origin is at world `(0, 0, 0)` and it has no modifiers. - No other mesh objects may be present in the saved scene. ## Requirements 1. `/home/user/Desktop/answer.blend` exists and opens. 2. The scene contains exactly one mesh object, named `Terrain`, with an empty modifier stack. 3. `Terrain.location` equals `(0, 0, 0)` within 1e-5. 4. The mesh has exactly 4096 vertices. 5. The mesh has either 3969 polygons (quads) or 7938 polygons (triangulated). 6. In object space, the vertex X coordinates span `[0, 63]` and the Y coordinates span `[0, 63]`, each endpoint within 1e-3. 7. In object space, Z values are in `[0, 0.5]`, and `max(z)` is consistent with the PNG's maximum pixel value at scale 0.5 within 0.01. 8. For each of the pixel coordinates `(0,0)`, `(0,63)`, `(63,0)`, `(31,31)` there is a vertex at the expected `(x, y, v/255 * 0.5)` within 1e-2. How you produce `/home/user/Desktop/answer.blend` (Blender UI, a Python script, or otherwise) is up to you; only the final state matters.",
"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-07/init_file/height.png",
"path": "/home/user/Desktop/height.png"
}
]
}
},
{
"type": "upload_file",
"parameters": {
"files": [
{
"local_path": "task-07/init_file/template.blend",
"path": "/home/user/Desktop/template.blend"
}
]
}
}
],
"trajectory": "trajectories/",
"related_apps": [
"blender"
],
"artifact_paths": [
"/home/user/Desktop/answer.blend"
],
"evaluator": {
"postconfig": [
{
"type": "upload_file",
"parameters": {
"files": [
{
"local_path": "task-07/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"
}