demos/bunny.py
branchpyrit
changeset 62 07c2f8084719
parent 60 a23b5089b9c3
child 69 303583d2fb97
equal deleted inserted replaced
61:7006036eb0db 62:07c2f8084719
    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 LoadStanfordPlyFile(rt, "../models/bunny/bun_zipper.ply",
    15 LoadStanfordPlyFile(rt, "../models/ply/bunny/bun_zipper.ply",
    16 	mat, smooth=True, scale=(-29.0, 29.0, 29.0), trans=(-1,-2.5,-3))
    16 	mat, smooth=True, scale=(-29.0, 29.0, 29.0), trans=(-1,-2.5,-3))
    17 
    17 
    18 mat0 = Material(colour=(0.1, 0.2, 0.6))
    18 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)
    19 box1 = Box(L=(-20.0, -1.7, -20.0), H=(20.0, -1.5, 20.0), material=mat0)
    20 rt.addshape(box1)
    20 rt.addshape(box1)