demos/buddha.py
branchpyrit
changeset 62 07c2f8084719
parent 60 a23b5089b9c3
child 69 303583d2fb97
equal deleted inserted replaced
61:7006036eb0db 62:07c2f8084719
     7 from plyreader import LoadStanfordPlyFile
     7 from plyreader import LoadStanfordPlyFile
     8 import Image
     8 import Image
     9 
     9 
    10 rt = Raytracer()
    10 rt = Raytracer()
    11 mat = Material(colour=(0.9, 0.9, 0.9))
    11 mat = Material(colour=(0.9, 0.9, 0.9))
    12 LoadStanfordPlyFile(rt, "../models/happy/happy_vrip_res2.ply",
    12 LoadStanfordPlyFile(rt, "../models/ply/happy/happy_vrip_res2.ply",
    13 	mat, smooth=True, scale=20.0, trans=(0,-3,0))
    13 	mat, smooth=True, scale=20.0, trans=(0,-3,0))
    14 
    14 
    15 light = Light(position=(-5.0, 2.0, 8.0), colour=(0.9, 0.3, 0.6))
    15 light = Light(position=(-5.0, 2.0, 8.0), colour=(0.9, 0.3, 0.6))
    16 rt.addlight(light)
    16 rt.addlight(light)
    17 
    17