This repository has been archived on 2024-12-30. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
2024CG-project-render/data/bunny.json
github-classroom[bot] 6eef377959
Initial commit
2024-10-11 10:27:35 +00:00

124 lines
2.4 KiB
JSON

{
"camera": {
"type": "perspective",
"focal_length": 1,
"eye": [0,0,2],
"up": [0,1,0],
"look": [0,0,-1],
"height": 1,
"width": 1.7777777778
},
"lights":[
{
"type": "point",
"color": [0.3,0.3,0.3],
"position": [-0.9,0.9,2]
},
{
"type": "point",
"color": [0.3,0.3,0.3],
"position": [0.9,0.9,2]
},
{
"type": "point",
"color": [0.3,0.3,0.3],
"position": [0,0.9,2]
},
{
"type": "point",
"color": [0.3,0.3,0.3],
"position": [0,-0.9,2]
}
],
"materials": [
{
"name": "matte gray",
"ka": [0.90, 0.90, 0.90],
"kd": [0.95, 0.95, 0.95],
"ks": [0.3,0.3,0.3],
"km": [0.05,0.05,0.05],
"phong_exponent": 200
},
{
"name": "red metal",
"ka": [0.894118,0.101961,0.109804],
"kd": [0.894118,0.101961,0.109804],
"ks": [0.2,0.2,0.2],
"km": [0.1,0.1,0.1],
"phong_exponent": 500
},
{
"name": "blue metal",
"ka": [0.215686,0.494118,0.721569],
"kd": [0.215686,0.494118,0.721569],
"ks": [0.2,0.2,0.2],
"km": [0.1,0.1,0.1],
"phong_exponent": 500
},
{
"name": "green metal",
"ka": [0.301961,0.686275,0.290196],
"kd": [0.301961,0.686275,0.290196],
"ks": [0.2,0.2,0.2],
"km": [0.1,0.1,0.1],
"phong_exponent": 500
},
{
"name": "orange metal",
"ka": [1,0.49804,0],
"kd": [1,0.49804,0],
"ks": [0.2,0.2,0.2],
"km": [0.1,0.1,0.1],
"phong_exponent": 500
},
{
"name": "purple metal",
"ka": [0.596078,0.305882,0.639216],
"kd": [0.596078,0.305882,0.639216],
"ks": [0.2,0.2,0.2],
"km": [0.1,0.1,0.1],
"phong_exponent": 500
}
],
"objects": [
{
"type": "soup",
"material": "matte gray",
"stl": "bunny.stl"
},
{
"type": "plane",
"material": "red metal",
"point": [-1,0,0],
"normal": [1,0,0]
},
{
"type": "plane",
"material": "purple metal",
"point": [0,0,-1],
"normal": [0,0,1]
},
{
"type": "plane",
"material": "blue metal",
"point": [0,1,0],
"normal": [0,-1,0]
},
{
"type": "plane",
"material": "orange metal",
"point": [1,0,0],
"normal": [-1,0,0]
},
{
"material": "green metal",
"type": "plane",
"point": [0,-1,0],
"normal": [0,1,0]
}
]
}