use mesh node for towel on rod

This commit is contained in:
Vanessa Ezekowitz 2015-03-31 02:12:42 -04:00
parent 9bc7f5c5ba
commit 885e838b57
8 changed files with 315 additions and 20 deletions

View File

@ -30,30 +30,20 @@ for i in ipairs(bathroom_tile_colors) do
}) })
end end
homedecor.register("towel_rod", { local tr_cbox = {
description = "Towel rod with towel",
tiles = {
"homedecor_towel_rod_top.png",
"homedecor_towel_rod_bottom.png",
"homedecor_towel_rod_sides.png",
"homedecor_towel_rod_sides.png^[transformFX",
"homedecor_towel_rod_fb.png",
"homedecor_towel_rod_fb.png"
},
node_box = {
type = "fixed",
fixed = {
{-0.375, 0.1875, 0.25, -0.3125, 0.375, 0.5},
{ 0.3125, 0.1875, 0.25, 0.375, 0.375, 0.5},
{-0.3125, 0.25, 0.3125, 0.3125, 0.375, 0.375},
{-0.3125, 0, 0.375, 0.3125, 0.34375, 0.4375},
{-0.3125, -0.3125, 0.25, 0.3125, 0.34375, 0.3125},
}
},
selection_box = {
type = "fixed", type = "fixed",
fixed = { -0.375, -0.3125, 0.25, 0.375, 0.375, 0.5 } fixed = { -0.375, -0.3125, 0.25, 0.375, 0.375, 0.5 }
}
homedecor.register("towel_rod", {
description = "Towel rod with towel",
mesh = "homedecor_towel_rod.obj",
tiles = {
"homedecor_generic_terrycloth.png",
"default_wood.png",
}, },
selection_box = tr_cbox,
collision_box = tr_cbox,
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3}, groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3},
sounds = default.node_sound_defaults(), sounds = default.node_sound_defaults(),
}) })

View File

@ -0,0 +1,31 @@
# Blender MTL File: 'towel-rod.blend'
# Material Count: 3
newmtl none
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
newmtl towel
Ns 96.078431
Ka 0.000000 0.000000 0.000000
Kd 0.800000 0.800000 0.800000
Ks 0.500000 0.500000 0.500000
Ni 1.000000
d 1.000000
illum 2
map_Kd /home/vanessa/Minetest-related/mods/my_mods/homedecor_modpack/homedecor/textures/homedecor_generic_terrycloth.png
newmtl wood
Ns 96.078431
Ka 0.000000 0.000000 0.000000
Kd 0.140660 0.071954 0.022368
Ks 0.500000 0.500000 0.500000
Ni 1.000000
d 1.000000
illum 2
map_Kd /home/vanessa/Minetest-related/games/minetest_game/mods/default/textures/default_wood.png

View File

@ -0,0 +1,274 @@
# Blender v2.73 (sub 0) OBJ File: 'towel-rod.blend'
# www.blender.org
o Cube
v -0.500000 0.250000 0.437500
v -0.500000 0.250000 0.250000
v -0.437500 0.250000 0.250000
v -0.437500 0.250000 0.437500
v -0.500000 0.312500 0.437500
v -0.500000 0.312500 0.250000
v -0.437500 0.312500 0.250000
v -0.437500 0.312500 0.437500
v -0.500000 0.187500 0.500000
v -0.500000 0.187500 0.437500
v -0.437500 0.187500 0.437500
v -0.437500 0.187500 0.500000
v -0.500000 0.375000 0.500000
v -0.500000 0.375000 0.437500
v -0.437500 0.375000 0.437500
v -0.437500 0.375000 0.500000
v 0.437500 0.250000 0.437500
v 0.437500 0.250000 0.250000
v 0.500000 0.250000 0.250000
v 0.500000 0.250000 0.437500
v 0.437500 0.312500 0.437500
v 0.437500 0.312500 0.250000
v 0.500000 0.312500 0.250000
v 0.500000 0.312500 0.437500
v 0.437500 0.187500 0.500000
v 0.437500 0.187500 0.437500
v 0.500000 0.187500 0.437500
v 0.500000 0.187500 0.500000
v 0.437500 0.375000 0.500000
v 0.437500 0.375000 0.437500
v 0.500000 0.375000 0.437500
v 0.500000 0.375000 0.500000
v -0.437500 0.250000 0.312500
v -0.437500 0.250000 0.250000
v 0.437500 0.250000 0.250000
v 0.437500 0.250000 0.312500
v -0.437500 -0.312500 0.250000
v -0.437500 -0.312500 0.218750
v 0.437500 -0.312500 0.218750
v 0.437500 -0.312500 0.250000
v -0.437500 0.312500 0.250000
v -0.437500 0.312500 0.218750
v 0.437500 0.312500 0.218750
v 0.437500 0.312500 0.250000
v -0.437500 0.000000 0.343750
v -0.437500 0.000000 0.312500
v 0.437500 0.000000 0.312500
v 0.437500 0.000000 0.343750
v -0.437500 0.312500 0.343750
v -0.437500 0.312500 0.312500
v 0.437500 0.312500 0.312500
v 0.437500 0.312500 0.343750
v -0.437500 0.343750 0.250000
v 0.437500 0.343750 0.250000
v -0.437500 0.343750 0.312500
v 0.437500 0.343750 0.312500
vt 1.000000 0.875000
vt 0.000000 0.875000
vt 0.000000 0.187500
vt 1.000000 0.187500
vt 0.062500 0.125000
vt 0.062500 0.062500
vt 0.937500 0.062500
vt 0.937500 0.125000
vt 0.000000 0.562500
vt 1.000000 0.562500
vt 0.062500 0.250000
vt 0.062500 0.187500
vt 0.937500 0.187500
vt 0.937500 0.250000
vt 0.812500 0.562500
vt 0.812500 0.875000
vt 0.750000 0.875000
vt 0.750000 0.562500
vt 0.937500 0.875000
vt 0.875000 0.875000
vt 0.875000 0.187500
vt 0.125000 0.187500
vt 0.125000 0.875000
vt 0.062500 0.875000
vt 0.250000 0.562500
vt 0.250000 0.875000
vt 0.187500 0.875000
vt 0.187500 0.562500
vt 0.187500 0.937500
vt 0.125000 0.937500
vt 0.875000 0.937500
vt 0.812500 0.937500
vt 1.000000 0.937500
vt -0.000000 0.937500
vt 0.937500 0.375000
vt 0.062500 0.375000
vt 0.062500 0.312500
vt 0.937500 0.312500
vt 0.250000 0.250000
vt 0.250000 0.187500
vt 0.000000 0.250000
vt 0.250000 0.062500
vt 0.250000 0.125000
vt 0.312500 0.062500
vt 0.500000 0.062500
vt 0.500000 0.125000
vt 0.312500 0.125000
vt 0.250000 0.312500
vt 0.687500 0.750000
vt 0.687500 0.812500
vt 0.500000 0.812500
vt 0.500000 0.750000
vt 0.687500 0.875000
vt 0.500000 0.875000
vt 0.250000 0.812500
vt 0.250000 0.750000
vt 0.437500 0.750000
vt 0.437500 0.812500
vt 0.250000 0.687500
vt 0.437500 0.687500
vt 0.750000 0.750000
vt 0.750000 0.812500
vt 0.562500 0.250000
vt 0.500000 0.250000
vt 0.500000 0.187500
vt 0.562500 0.187500
vt 0.312500 0.250000
vt 0.312500 0.187500
vt 0.500000 0.312500
vt 0.312500 0.312500
vt 0.750000 0.500000
vt 0.562500 0.562500
vt 0.562500 0.500000
vt 0.312500 0.625000
vt 0.312500 0.562500
vt 0.500000 0.562500
vt 0.500000 0.625000
vt 0.312500 0.500000
vt 0.500000 0.500000
vt 0.750000 0.437500
vt 0.562500 0.437500
vt 0.250000 0.500000
vt 0.062500 1.000000
vt 0.062500 0.937500
vt 0.937500 0.937500
vt 0.937500 1.000000
vn 0.000000 0.000000 1.000000
vn 0.000000 0.000000 -1.000000
vn 0.000000 -1.000000 0.000000
vn 1.000000 0.000000 0.000000
vn -1.000000 0.000000 0.000000
vn 0.000000 0.707100 -0.707100
vn 0.000000 0.707100 0.707100
vn 0.000000 1.000000 0.000000
g Cube_Cube_towel
s off
f 44/1/1 41/2/1 37/3/1 40/4/1
f 42/1/2 43/2/2 39/3/2 38/4/2
f 37/5/3 38/6/3 39/7/3 40/8/3
f 52/1/1 49/2/1 45/9/1 48/10/1
f 50/1/2 51/2/2 47/9/2 46/10/2
f 45/11/3 46/12/3 47/13/3 48/14/3
f 47/15/4 51/16/4 52/17/4 48/18/4
f 39/13/4 43/19/4 44/20/4 40/21/4
f 37/22/5 41/23/5 42/24/5 38/12/5
f 45/25/5 49/26/5 50/27/5 46/28/5
f 55/29/5 50/27/5 49/26/5
f 53/30/5 42/24/5 7/23/5
f 54/31/4 22/20/4 43/19/4
f 56/32/4 52/17/4 51/16/4
f 53/33/6 54/34/6 43/2/6 42/1/6
f 56/33/7 55/34/7 49/2/7 52/1/7
f 56/32/4 51/16/4 44/20/4 54/31/4
f 54/35/8 53/36/8 55/37/8 56/38/8
f 53/30/5 41/23/5 50/27/5 55/29/5
g Cube_Cube_wood
f 5/39/5 6/11/5 2/12/5 1/40/5
f 6/11/2 7/41/2 3/3/2 2/12/2
f 7/6/4 8/42/4 4/43/4 3/5/4
f 21/44/5 22/45/5 18/46/5 17/47/5
f 1/40/3 2/12/3 3/5/3 4/43/3
f 8/48/8 7/37/8 6/11/8 5/39/8
f 13/49/5 14/50/5 10/51/5 9/52/5
f 14/50/2 15/53/2 11/54/2 10/51/2
f 15/55/4 16/56/4 12/57/4 11/58/4
f 16/56/1 13/59/1 9/60/1 12/57/1
f 9/52/3 10/51/3 11/58/3 12/57/3
f 16/61/8 15/62/8 14/50/8 13/49/8
f 22/63/2 23/64/2 19/65/2 18/66/2
f 23/64/4 24/67/4 20/68/4 19/65/4
f 17/47/3 18/46/3 19/65/3 20/68/3
f 24/67/8 23/64/8 22/69/8 21/70/8
f 29/71/5 30/18/5 26/72/5 25/73/5
f 30/74/2 31/75/2 27/76/2 26/77/2
f 31/75/4 32/78/4 28/79/4 27/76/4
f 32/80/1 29/71/1 25/73/1 28/81/1
f 25/73/3 26/72/3 27/76/3 28/79/3
f 32/78/8 31/75/8 30/25/8 29/82/8
f 33/83/3 34/84/3 35/85/3 36/86/3
o nodebox-5
v 3.312500 0.250000 0.250000
v 3.312500 0.250000 0.312500
v 3.312500 0.375000 0.312500
v 3.312500 0.375000 0.250000
v 2.687500 0.250000 0.250000
v 2.687500 0.250000 0.312500
v 2.687500 0.375000 0.312500
v 2.687500 0.375000 0.250000
v 2.687500 0.187500 0.187500
v 2.687500 0.187500 0.437500
v 2.687500 0.375000 0.437500
v 2.687500 0.375000 0.187500
v 2.625000 0.187500 0.187500
v 2.625000 0.187500 0.437500
v 2.625000 0.375000 0.437500
v 2.625000 0.375000 0.187500
v 3.312500 -0.312500 0.187500
v 3.312500 -0.312500 0.250000
v 3.312500 0.343750 0.250000
v 3.312500 0.343750 0.187500
v 2.687500 -0.312500 0.187500
v 2.687500 -0.312500 0.250000
v 2.687500 0.343750 0.250000
v 2.687500 0.343750 0.187500
v 3.375000 0.187500 0.187500
v 3.375000 0.187500 0.437500
v 3.375000 0.375000 0.437500
v 3.375000 0.375000 0.187500
v 3.312500 0.187500 0.187500
v 3.312500 0.187500 0.437500
v 3.312500 0.375000 0.437500
v 3.312500 0.375000 0.187500
v 3.312500 -0.000000 0.312500
v 3.312500 -0.000000 0.375000
v 3.312500 0.343750 0.375000
v 3.312500 0.343750 0.312500
v 2.687500 -0.000000 0.312500
v 2.687500 -0.000000 0.375000
v 2.687500 0.343750 0.375000
v 2.687500 0.343750 0.312500
vn -1.000000 0.000000 0.000000
vn 0.000000 -0.000000 1.000000
vn 0.000000 -1.000000 0.000000
g nodebox-5_nodebox-5_none
s off
f 57//9 58//9 59//9 60//9
f 61//9 62//9 63//9 64//9
f 57//10 60//10 64//10 61//10
f 58//10 59//10 63//10 62//10
f 57//11 58//11 62//11 61//11
f 60//11 59//11 63//11 64//11
f 65//9 66//9 67//9 68//9
f 69//9 70//9 71//9 72//9
f 65//10 68//10 72//10 69//10
f 66//10 67//10 71//10 70//10
f 65//11 66//11 70//11 69//11
f 68//11 67//11 71//11 72//11
f 73//9 74//9 75//9 76//9
f 77//9 78//9 79//9 80//9
f 73//10 76//10 80//10 77//10
f 74//10 75//10 79//10 78//10
f 73//11 74//11 78//11 77//11
f 76//11 75//11 79//11 80//11
f 81//9 82//9 83//9 84//9
f 85//9 86//9 87//9 88//9
f 81//10 84//10 88//10 85//10
f 82//10 83//10 87//10 86//10
f 81//11 82//11 86//11 85//11
f 84//11 83//11 87//11 88//11
f 89//9 90//9 91//9 92//9
f 93//9 94//9 95//9 96//9
f 89//10 92//10 96//10 93//10
f 90//10 91//10 95//10 94//10
f 89//11 90//11 94//11 93//11
f 92//11 91//11 95//11 96//11

Binary file not shown.

After

Width:  |  Height:  |  Size: 620 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 173 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 353 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 152 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 192 B