demos/car.py
branchpyrit
changeset 62 07c2f8084719
parent 60 a23b5089b9c3
child 69 303583d2fb97
equal deleted inserted replaced
61:7006036eb0db 62:07c2f8084719
    11 rotx=0.3
    11 rotx=0.3
    12 cam.rotate((cos(rotx),-sin(rotx),0.,0.))
    12 cam.rotate((cos(rotx),-sin(rotx),0.,0.))
    13 rt.setcamera(cam)
    13 rt.setcamera(cam)
    14 
    14 
    15 mat = Material(colour=(0.9, 0.9, 0.9))
    15 mat = Material(colour=(0.9, 0.9, 0.9))
    16 LoadLightwaveLwoFile(rt, "../models/car/Nissan300ZX.lwo", mat, smooth=False, scale=0.4)
    16 LoadLightwaveLwoFile(rt, "../models/lwo/Nissan300ZX.lwo", mat, smooth=False, scale=0.4)
    17 
    17 
    18 light = Light(position=(-5.0, 10.0, 8.0), colour=(0.9, 0.9, 0.9))
    18 light = Light(position=(-5.0, 10.0, 8.0), colour=(0.9, 0.9, 0.9))
    19 rt.addlight(light)
    19 rt.addlight(light)
    20 
    20 
    21 imagesize = (800, 600)
    21 imagesize = (800, 600)