Add carpet model

This commit is contained in:
Wuzzy 2015-05-25 19:47:50 +02:00
parent 0230e1cad7
commit a15d554d50
4 changed files with 46 additions and 5 deletions

View File

@ -32,11 +32,9 @@ end
local carpet = {
physical = true,
collisionbox = {-1,-0.02,-1, 1,0.02,1},
--visual = "mesh",
visual_size = {x=2,y=0.04},
visual = "cube",
--mesh = "flying_carpet_carpet.x",
textures = {"flying_carpet_texture.png","flying_carpet_texture.png","flying_carpet_border.png","flying_carpet_border.png","flying_carpet_border.png","flying_carpet_border.png"},
visual = "mesh",
mesh = "flying_carpet_model.obj",
textures = {"flying_carpet_surface.png"},
driver = nil,
v = 0,

View File

@ -0,0 +1,43 @@
# Blender v2.74 (sub 0) OBJ File: 'Teppich.blend'
# www.blender.org
v 10.000000 0.250000 -6.870000
v 10.000000 -0.250000 -6.870000
v -10.000000 -0.250000 -6.870000
v -10.000000 0.250000 -6.870000
v -10.000000 -0.250000 6.870000
v -10.000000 0.250000 6.870000
v 10.000000 -0.250000 6.870000
v 9.999990 0.250000 6.870000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 1.008696
vt 0.000000 0.991304
vt 1.000000 0.991304
vt 1.000000 1.008696
vt 0.994048 1.000000
vt 1.005952 1.000000
vt 1.005952 0.000000
vt 0.994048 0.000000
vt 1.000000 0.008696
vt 1.000000 -0.008696
vt 0.000000 -0.008696
vt 0.000000 0.008696
vt -0.005952 0.000000
vt 0.005952 0.000000
vt 0.005952 1.000000
vt -0.005952 1.001087
vn 0.000000 1.000000 0.000000
vn 0.000000 -1.000000 -0.000000
vn 0.000000 0.000000 -1.000000
vn -1.000000 0.000000 0.000000
vn 0.000000 0.000000 1.000000
vn 1.000000 0.000000 0.000000
s off
f 1/1/1 4/2/1 6/3/1 8/4/1
f 2/2/2 7/3/2 5/4/2 3/1/2
f 1/5/3 2/6/3 3/7/3 4/8/3
f 5/9/4 6/10/4 4/11/4 3/12/4
f 7/13/5 8/14/5 6/15/5 5/16/5
f 2/17/6 1/18/6 8/19/6 7/20/6

Binary file not shown.

Before

Width:  |  Height:  |  Size: 214 B

View File

Before

Width:  |  Height:  |  Size: 51 KiB

After

Width:  |  Height:  |  Size: 51 KiB