File size: 3,398 Bytes
5154c4e
3de3b50
5154c4e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
  "id": "single-software-execution--cli--blender--task-34--ubuntu",
  "snapshot": "Blender-4.2.3",
  "instruction": "glTF 2.0 roundtrip with PBR materials `/home/user/Desktop/ch.blend` contains a simple character scene: three mesh objects (`Body`, `Head`, `Arms`) each with its own Principled BSDF material. Launch Blender by running `blender` from a terminal. For this task, use `/opt/blender/blender` for Blender command-line or background runs when working on `ch.blend`.\n\nThe scene also has a camera and a point light. Export the whole scene to binary glTF 2.0 (GLB) at `/home/user/Desktop/output/character.glb`, then re-import that GLB into a fresh Blender scene and save the result as `/home/user/Desktop/output/verify.blend`. Both output files must be produced. ## Requirements 1. `/home/user/Desktop/answer.blend` exists and opens in Blender. 2. `answer.blend` (the original scene) has the three expected Principled BSDF materials (`Mat_Body`, `Mat_Head`, `Mat_Arms`) with Base Colors (0.2, 0.3, 0.6) / (0.85, 0.7, 0.6) / (0.2, 0.3, 0.6) respectively (tolerance 0.05 per channel). 3. `/home/user/Desktop/output/character.glb` exists and is readable. 4. The GLB has a valid header: first 4 bytes = `b'glTF'`, version (LE uint32) = 2, length (LE uint32) equals the file size, and the first chunk is a JSON chunk followed optionally by a BIN chunk. 5. The JSON chunk parses as a glTF document with a `materials` array containing at least three entries, including entries named `Mat_Body`, `Mat_Head`, `Mat_Arms`. 6. For each of those three materials, `pbrMetallicRoughness.baseColorFactor` (RGB) matches the original Principled BSDF Base Color within 0.05 per channel. 7. `/home/user/Desktop/output/verify.blend` exists and opens in Blender. 8. The re-imported `verify.blend` contains at least three materials with a Principled BSDF node whose Base Color matches each of the three expected values within 0.05 per channel (material name may be a substring match to allow for importer-added `.001` suffixes).",
  "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://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html; https://www.loc.gov/preservation/digital/formats/fdd/fdd000507.shtml",
  "config": [
    {
      "type": "upload_file",
      "parameters": {
        "files": [
          {
            "local_path": "task-34/init_file/ch.blend",
            "path": "/home/user/Desktop/ch.blend"
          }
        ]
      }
    }
  ],
  "trajectory": "trajectories/",
  "related_apps": [
    "blender"
  ],
  "artifact_paths": [
    "/home/user/Desktop/answer.blend",
    "/home/user/Desktop/output/character.glb",
    "/home/user/Desktop/output/verify.blend"
  ],
  "evaluator": {
    "postconfig": [
      {
        "type": "upload_file",
        "parameters": {
          "files": [
            {
              "local_path": "task-34/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"
}