--- a/demos/car.py Sat Apr 12 02:02:45 2008 +0200
+++ b/demos/car.py Mon Apr 14 12:51:50 2008 +0200
@@ -7,16 +7,17 @@
rt = Raytracer()
-cam = Camera(eye=(0.,5.,8.))
-rotx=0.3
+cam = Camera(eye=(0.,2.,8.))
+rotx=0.15
cam.rotate((cos(rotx),-sin(rotx),0.,0.))
rt.setcamera(cam)
-mat = Material(colour=(0.9, 0.9, 0.9))
-LoadLightwaveLwoFile(rt, "../models/lwo/Nissan300ZX.lwo", mat, smooth=False, scale=0.4)
+LoadLightwaveLwoFile(rt, "../models/lwo/Nissan300ZX.lwo", scale=0.4, trans=(-0.2,0,0.3))
-light = Light(position=(-5.0, 10.0, 8.0), colour=(0.9, 0.9, 0.9))
-rt.addlight(light)
+light1 = Light(position=(-5.0, 20.0, 8.0), colour=(0.9, 0.9, 0.9))
+rt.addlight(light1)
+light2 = Light(position=(5.0, 10.0, 10.0), colour=(0.9, 0.7, 0.7))
+rt.addlight(light2)
imagesize = (800, 600)
data = rt.render(imagesize)