demos/buddha.py
branchpyrit
changeset 19 4e0955fca797
parent 13 fbd1d2f7d94e
child 24 d0d76e8a5203
--- a/demos/buddha.py	Mon Nov 26 17:31:37 2007 +0100
+++ b/demos/buddha.py	Mon Nov 26 23:12:40 2007 +0100
@@ -26,9 +26,7 @@
 	while (vertex_num):
 		tokens = fp.readline().split()
 		v = [scale*float(x) for x in tokens[0:3]]
-		v[0] = -v[0]
-		v[1] = v[1]-5
-		v[2] = -v[2]
+		v[1] = v[1]-3
 		vertices.append(tuple(v))
 		vertex_num -= 1
 
@@ -44,9 +42,9 @@
 
 rt = Raytracer()
 mat = Material(colour=(0.9, 0.9, 0.9))
-LoadStanfordPlyFile(rt, mat, "happy_vrip_res2.ply", 30.0)
+LoadStanfordPlyFile(rt, mat ,"happy_vrip_res2.ply", 20.0)
 
-light = Light(position=(-5.0, 2.0, -8.0), colour=(0.9, 0.3, 0.6))
+light = Light(position=(-5.0, 2.0, 8.0), colour=(0.9, 0.3, 0.6))
 rt.addlight(light)
 
 imagesize = (800, 600)