added a textured checkerball model, but not loading textures to draw yet

git-svn-id: svn://anubis/anaglym/trunk@89 99a6e188-d820-4881-8870-2d33a10e2619
This commit is contained in:
Josh Holtrop 2009-10-14 04:43:15 +00:00
parent 967b6ac5b5
commit dd00b76d50
7 changed files with 1709 additions and 2 deletions

BIN
lib/checker.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

13
lib/checkerball.mtl Normal file
View File

@ -0,0 +1,13 @@
# Blender3D MTL File: checkerball.blend
# Material Count: 1
newmtl Material.001_checker.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 checker.jpg

1694
lib/checkerball.obj Normal file

File diff suppressed because it is too large Load Diff

1
lib/checkerball.phy Normal file
View File

@ -0,0 +1 @@
sphere "Sphere" 1.000000 0.000000 0.000000 0.000000

BIN
libsrc/checker.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
libsrc/checkerball.blend Normal file

Binary file not shown.

View File

@ -4,9 +4,8 @@ function update()
ag.setCamera(7, -6, 15, ballx, bally, ballz, 0, 0, 1) ag.setCamera(7, -6, 15, ballx, bally, ballz, 0, 0, 1)
end end
--ag.setCamera(8, -8, 15, -8, 8, 4, 0, 0, 1)
arena = ag.loadStaticModel("boxarena") arena = ag.loadStaticModel("boxarena")
ball = ag.loadModel("ball") ball = ag.loadModel("checkerball")
ball:setPosition(-7, 7.4, 12) ball:setPosition(-7, 7.4, 12)
ball2 = ball:clone() ball2 = ball:clone()
ball2:setPosition(-7, 7.4, 14) ball2:setPosition(-7, 7.4, 14)