mirror of
https://github.com/vonhyou/ray-tracer-comp371.git
synced 2025-06-08 07:22:01 +00:00
init
This commit is contained in:
commit
de866d23bf
28 changed files with 46878 additions and 0 deletions
127
assets/cornell_box_empty_pl.json
Normal file
127
assets/cornell_box_empty_pl.json
Normal file
|
@ -0,0 +1,127 @@
|
|||
{
|
||||
"geometry":[{
|
||||
"comment":"back_wall",
|
||||
"type":"rectangle",
|
||||
"p2":[556, 0, -559],
|
||||
"p1":[0, 0, -559],
|
||||
"p4":[0, 548.8, -559],
|
||||
"p3":[556, 548.8, -559],
|
||||
|
||||
|
||||
"ac":[1,1,1],
|
||||
"dc":[1,1,1],
|
||||
"sc":[0,0,0],
|
||||
|
||||
"ka":0,
|
||||
"kd":0.5,
|
||||
"ks":0,
|
||||
|
||||
"pc":0
|
||||
|
||||
},
|
||||
{
|
||||
"comment":"right_wall",
|
||||
"type":"rectangle",
|
||||
"p1":[556, 0, -559],
|
||||
"p2":[556, 0, 0],
|
||||
"p3":[556, 548.8, 0],
|
||||
"p4":[556, 548.8, -559],
|
||||
|
||||
|
||||
"ac":[1,0,0],
|
||||
"dc":[1,0,0],
|
||||
"sc":[0,0,0],
|
||||
|
||||
"ka":0,
|
||||
"kd":0.5,
|
||||
"ks":0,
|
||||
|
||||
"pc":0
|
||||
|
||||
},
|
||||
{
|
||||
"comment":"left_wall",
|
||||
"type":"rectangle",
|
||||
"p2":[0, 0, -559],
|
||||
"p1":[0, 0, 0],
|
||||
"p4":[0, 548.8, 0],
|
||||
"p3":[0, 548.8, -559],
|
||||
|
||||
"ac":[0,1,0],
|
||||
"dc":[0,1,0],
|
||||
"sc":[0,0,0],
|
||||
|
||||
"ka":0,
|
||||
"kd":0.5,
|
||||
"ks":0,
|
||||
|
||||
"pc":0
|
||||
|
||||
},
|
||||
{
|
||||
"comment":"ceiling",
|
||||
"type":"rectangle",
|
||||
"p1":[0, 548.8, 0],
|
||||
"p2":[0, 548.8, -559],
|
||||
"p3":[556, 548.8, -559.0],
|
||||
"p4":[556, 548.8, 0],
|
||||
|
||||
|
||||
"ac":[1,1,1],
|
||||
"dc":[1,1,1],
|
||||
"sc":[0,0,0],
|
||||
|
||||
"ka":0,
|
||||
"kd":1,
|
||||
"ks":0,
|
||||
|
||||
"pc":0
|
||||
|
||||
},
|
||||
{
|
||||
"comment":"floor",
|
||||
"type":"rectangle",
|
||||
"p1":[0, 0, 0],
|
||||
"p4":[0, 0, -559],
|
||||
"p3":[556, 0, -559.0],
|
||||
"p2":[556, 0, 0],
|
||||
|
||||
|
||||
"ac":[1,1,1],
|
||||
"dc":[1,1,1],
|
||||
"sc":[0,0,0],
|
||||
|
||||
"ka":0,
|
||||
"kd":0.5,
|
||||
"ks":0,
|
||||
|
||||
"pc":0
|
||||
|
||||
}
|
||||
|
||||
],
|
||||
"light":[
|
||||
{
|
||||
"type":"point",
|
||||
"centre":[278, 540,-279.5],
|
||||
"id":[1, 1, 1],
|
||||
"is":[1, 1, 1]
|
||||
}
|
||||
],
|
||||
"output":[{
|
||||
"filename":"cornell_box_empty_pl.ppm",
|
||||
"size":[500,500],
|
||||
"lookat":[0,0,-1],
|
||||
"up":[0,1,0],
|
||||
"fov":40,
|
||||
"centre":[278, 273, 800],
|
||||
"ai":[1,1,1],
|
||||
"bkc":[0.5,0.5,0.5],
|
||||
|
||||
"globalillum": true,
|
||||
"raysperpixel": [10, 10],
|
||||
"maxbounces": 3,
|
||||
"probterminate": 0.3333
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue