10 rt = Raytracer() |
10 rt = Raytracer() |
11 #rt.ambientocclusion(samples=100, distance=16.0, angle=0.5) |
11 #rt.ambientocclusion(samples=100, distance=16.0, angle=0.5) |
12 |
12 |
13 mat = Material(colour=(0.9, 0.9, 0.9)) |
13 mat = Material(colour=(0.9, 0.9, 0.9)) |
14 mat.setTransmissivity(0.8) |
14 mat.setTransmissivity(0.8) |
|
15 mat.setSmooth(True) |
15 LoadStanfordPlyFile(rt, "../models/ply/bunny/bun_zipper.ply", |
16 LoadStanfordPlyFile(rt, "../models/ply/bunny/bun_zipper.ply", |
16 mat, smooth=True, scale=(-29.0, 29.0, 29.0), trans=(-1,-2.5,-3)) |
17 mat, scale=(-29.0, 29.0, 29.0), trans=(-1,-2.5,-3)) |
17 |
18 |
18 mat0 = Material(colour=(0.1, 0.2, 0.6)) |
19 mat0 = Material(colour=(0.1, 0.2, 0.6)) |
19 box1 = Box(L=(-20.0, -1.7, -20.0), H=(20.0, -1.5, 20.0), material=mat0) |
20 box1 = Box(L=(-20.0, -1.7, -20.0), H=(20.0, -1.5, 20.0), material=mat0) |
20 rt.addshape(box1) |
21 rt.addshape(box1) |
21 |
22 |