equal
deleted
inserted
replaced
12 mat.setSmooth(True) |
12 mat.setSmooth(True) |
13 LoadStanfordPlyFile(rt, "../models/ply/happy/happy_vrip_res2.ply", |
13 LoadStanfordPlyFile(rt, "../models/ply/happy/happy_vrip_res2.ply", |
14 mat, scale=20.0, trans=(0,-3,0)) |
14 mat, scale=20.0, trans=(0,-3,0)) |
15 |
15 |
16 light = Light(position=(-5.0, 2.0, 8.0), colour=(0.9, 0.3, 0.6)) |
16 light = Light(position=(-5.0, 2.0, 8.0), colour=(0.9, 0.3, 0.6)) |
17 rt.addlight(light) |
17 rt.addLight(light) |
18 |
18 |
19 imagesize = (800, 600) |
19 imagesize = (800, 600) |
20 data = rt.render(imagesize) |
20 data = rt.render(imagesize) |
21 img = Image.fromstring("RGB", imagesize, data) |
21 img = Image.fromstring("RGB", imagesize, data) |
22 img.save('buddha.png') |
22 img.save('buddha.png') |