added skeleton bowling_lane model and bowling.lua script

git-svn-id: svn://anubis/anaglym/trunk@204 99a6e188-d820-4881-8870-2d33a10e2619
This commit is contained in:
Josh Holtrop 2009-12-11 00:49:00 +00:00
parent 084412ec7a
commit cc608d7b83
6 changed files with 62 additions and 0 deletions

13
lib/bowling_lane.mtl Normal file
View File

@ -0,0 +1,13 @@
# Blender3D MTL File: bowling_lane.blend
# Material Count: 1
newmtl Material_woodfloor.jpg
Ns 96.078431
Ka 0.000000 0.000000 0.000000
Kd 0.640000 0.640000 0.640000
Ks 0.500000 0.500000 0.500000
Ni 1.000000
d 1.000000
illum 2
map_Kd woodfloor.jpg

33
lib/bowling_lane.obj Normal file
View File

@ -0,0 +1,33 @@
# Blender3D v249 OBJ File: bowling_lane.blend
# www.blender3d.org
mtllib bowling_lane.mtl
v 2.500000 19.999998 -0.100000
v 2.500000 -20.000000 -0.100000
v -2.500000 -19.999996 -0.100000
v -2.499999 20.000008 -0.100000
v 2.500001 19.999989 0.100000
v 2.499998 -20.000011 0.100000
v -2.500001 -19.999992 0.100000
v -2.500000 20.000000 0.100000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt -0.500000 -4.500000
vt 1.500000 -4.500000
vt 1.500000 5.500000
vt -0.500000 5.500000
vn 0.000000 0.000000 -1.000000
vn 0.000000 0.000000 1.000000
vn 1.000000 -0.000000 0.000001
vn -0.000002 -1.000000 -0.000019
vn -1.000000 0.000000 -0.000004
vn 0.000002 1.000000 0.000043
usemtl Material_woodfloor.jpg
s off
f 1/1/1 2/2/1 3/3/1 4/4/1
f 5/5/2 8/6/2 7/7/2 6/8/2
f 1/1/3 5/2/3 6/3/3 2/4/3
f 2/1/4 6/2/4 7/3/4 3/4/4
f 3/1/5 7/2/5 8/3/5 4/4/5
f 5/1/6 1/2/6 4/3/6 8/4/6

1
lib/bowling_lane.phy Normal file
View File

@ -0,0 +1 @@
cube "Cube" 5.000000 40.000000 0.200000 0.000000 0.000000 0.000000 0.000000 -0.000000 0.000000

15
lib/demo/bowling.lua Normal file
View File

@ -0,0 +1,15 @@
function setupPins()
for i = 1, 10 do
if (pins[i] ~= nil) then
pins[i]:destroy()
end
end
end
function init_event()
pins = {}
lane = ag.loadModelStatic("bowling_lane")
setupPins()
ag.setCamera(0, -20, 5, 0, 20, 0)
end

BIN
lib/woodfloor.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

BIN
libsrc/bowling_lane.blend Normal file

Binary file not shown.