Switch Garden Bench 1 to mesh

This commit is contained in:
jp 2015-04-15 15:05:12 +02:00 committed by Vanessa Ezekowitz
parent 674435a0ec
commit 69bc9c374c
8 changed files with 373 additions and 59 deletions

View File

@ -2590,7 +2590,7 @@ minetest.register_craft( {
minetest.register_craft( { minetest.register_craft( {
output = "homedecor:bench_large_1_left", output = "homedecor:bench_large_1",
recipe = { recipe = {
{ "group:wood", "group:wood", "group:wood" }, { "group:wood", "group:wood", "group:wood" },
{ "group:wood", "group:wood", "group:wood" }, { "group:wood", "group:wood", "group:wood" },

View File

@ -30,68 +30,28 @@ homedecor.register("barbecue", {
minetest.register_alias("homedecor:barbecue_meat", "air") minetest.register_alias("homedecor:barbecue_meat", "air")
homedecor.register("bench_large_1_left", { local bl1_cbox = {
description = "Garden Bench (style 1)", type = "fixed",
fixed = { -0.5, -0.5, -0.25, 1.5, 0.5, 0.5 }
}
homedecor.register("bench_large_1", {
mesh = "homedecor_bench_large_1.obj",
tiles = { tiles = {
"homedecor_bench_large_1_left_top.png", "homedecor_old_wood.png",
"homedecor_bench_large_1_left_bottom.png", "homedecor_tile_wrought_iron2.png"
"homedecor_bench_large_1_ends.png^[transformFX",
"homedecor_bench_large_1_ends.png",
"homedecor_bench_large_1_left_back.png",
"homedecor_bench_large_1_left_front.png"
}, },
description = "Garden Bench (style 1)",
inventory_image = "homedecor_bench_large_1_inv.png", inventory_image = "homedecor_bench_large_1_inv.png",
groups = { snappy = 3 }, groups = { snappy = 3 },
node_box = { expand = { right="air" },
type = "fixed", sounds = default.node_sound_wood_defaults(),
fixed = { selection_box = bl1_cbox,
{-0.5, 0.25, 0.375, 0.5, 0.4375, 0.4375}, -- NodeBox1 collision_box = bl1_cbox,
{-0.5, 0, 0.375, 0.5, 0.1875, 0.4375}, -- NodeBox2
{-0.5, -0.125, 0.115, 0.5, -0.0625, 0.35}, -- NodeBox3
{-0.5, -0.125, -0.0872, 0.5, -0.0625, 0.079}, -- NodeBox4
{-0.3125, -0.5, 0.4375, -0.25, 0.375, 0.5}, -- NodeBox5
{-0.3125, -0.25, -0.0625, -0.25, -0.125, 0.4375}, -- NodeBox6
{-0.3125, -0.5, -0.0625, -0.25, -0.25, 0}, -- NodeBox7
}
},
selection_box = {
type = "fixed",
fixed = { -0.5, -0.5, -0.09375, 1.5, 0.5, 0.5 }
},
expand = { right="homedecor:bench_large_1_right" },
--[[
on_rightclick = function(pos, node, clicker)
pos.y = pos.y-0 -- player's sit position.
homedecor.sit_exec(pos, node, clicker)
end,
--]]
})
homedecor.register("bench_large_1_right", {
tiles = {
"homedecor_bench_large_1_left_top.png^[transformFX",
"homedecor_bench_large_1_left_bottom.png^[transformFX",
"homedecor_bench_large_1_ends.png^[transformFX",
"homedecor_bench_large_1_ends.png",
"homedecor_bench_large_1_left_back.png^[transformFX",
"homedecor_bench_large_1_left_front.png^[transformFX"
},
groups = {snappy=3},
node_box = {
type = "fixed",
fixed = {
{-0.5, 0.25, 0.375, 0.5, 0.4375, 0.4375}, -- NodeBox1
{-0.5, 0, 0.375, 0.5, 0.1875, 0.4375}, -- NodeBox2
{-0.5, -0.125, 0.115, 0.5, -0.0625, 0.35}, -- NodeBox3
{-0.5, -0.125, -0.0872, 0.5, -0.0625, 0.079}, -- NodeBox4
{0.25, -0.5, 0.4375, 0.3125, 0.375, 0.5}, -- NodeBox5
{0.25, -0.25, -0.0625, 0.3125, -0.125, 0.5}, -- NodeBox6
{0.25, -0.5, -0.0625, 0.3125, -0.25, 0}, -- NodeBox7
}
},
selection_box = homedecor.nodebox.null,
}) })
minetest.register_alias("homedecor:bench_large_1_left", "homedecor:bench_large_1")
minetest.register_alias("homedecor:bench_large_1_right", "air")
homedecor.register("bench_large_2_left", { homedecor.register("bench_large_2_left", {
description = "Garden Bench (style 2)", description = "Garden Bench (style 2)",

View File

@ -0,0 +1,354 @@
# Blender v2.73 (sub 0) OBJ File: 'garden-bench1.blend'
# www.blender.org
o wood_planks_wood_planks_None
v 0.499999 0.083461 0.325602
v 0.499999 0.203704 0.347882
v 0.499999 0.199117 0.374628
v 0.499999 0.078873 0.352348
v -1.500000 0.203704 0.347882
v -1.500000 0.199117 0.374628
v -1.500000 0.083461 0.325602
v -1.500000 0.078873 0.352348
v 0.499999 0.229372 0.352638
v 0.499999 0.349616 0.374918
v 0.499999 0.345028 0.401664
v 0.499999 0.224784 0.379384
v -1.500000 0.349616 0.374918
v -1.500000 0.345028 0.401664
v -1.500000 0.229372 0.352638
v -1.500000 0.224784 0.379384
v 0.499999 0.378036 0.380184
v 0.499999 0.498279 0.402464
v 0.499999 0.493692 0.429210
v 0.499999 0.373448 0.406930
v -1.500000 0.498279 0.402464
v -1.500000 0.493692 0.429210
v -1.500000 0.378036 0.380184
v -1.500000 0.373448 0.406930
v 0.499999 -0.013063 0.162452
v 0.499999 -0.013063 0.289398
v 0.499999 -0.039202 0.289398
v 0.499999 -0.039202 0.162452
v -1.500000 -0.013063 0.289398
v -1.500000 -0.039202 0.289398
v -1.500000 -0.013063 0.162452
v -1.500000 -0.039202 0.162452
v 0.499999 -0.013063 0.005502
v 0.499999 -0.013063 0.132448
v 0.499999 -0.039202 0.132448
v 0.499999 -0.039202 0.005502
v -1.500000 -0.013063 0.132448
v -1.500000 -0.039202 0.132448
v -1.500000 -0.013063 0.005502
v -1.500000 -0.039202 0.005502
v 0.499999 -0.013063 -0.148542
v 0.499999 -0.013063 -0.021596
v 0.499999 -0.039202 -0.021596
v 0.499999 -0.039202 -0.148542
v -1.500000 -0.013063 -0.021596
v -1.500000 -0.039202 -0.021596
v -1.500000 -0.013063 -0.148542
v -1.500000 -0.039202 -0.148542
v 0.319746 -0.038350 0.336909
v 0.319746 -0.004507 0.336909
v 0.371221 -0.004507 0.336909
v 0.371221 -0.038350 0.336909
v 0.319746 0.477133 0.426074
v 0.371221 0.477133 0.426074
v 0.319746 0.477133 0.460000
v 0.371221 0.477133 0.460000
v 0.319746 -0.499811 0.459999
v 0.371221 -0.499811 0.459999
v 0.371221 -0.117922 0.002852
v 0.371221 -0.117922 0.336909
v 0.319746 -0.117922 -0.098451
v 0.319746 -0.038350 -0.098451
v 0.371221 -0.038350 -0.098451
v 0.371221 -0.117922 -0.098451
v 0.371221 -0.499999 -0.186412
v 0.319746 -0.499999 -0.186413
v 0.371221 -0.499811 0.336909
v -1.375376 -0.117922 -0.098451
v -1.323900 -0.117922 -0.098451
v -1.323900 -0.499999 -0.186412
v -1.375376 -0.499999 -0.186413
v -1.323900 -0.038350 -0.098451
v -1.375376 -0.038350 -0.098451
v -1.323900 -0.499811 0.459999
v -1.323900 -0.499811 0.336909
v -1.323900 -0.117922 0.336909
v -1.323900 -0.117922 0.002852
v -1.323900 -0.038350 0.336909
v -1.323900 0.477133 0.460000
v -1.375376 0.477133 0.460000
v -1.375376 -0.499811 0.459999
v -1.375376 -0.117922 0.002852
v -1.375376 -0.499999 -0.085109
v -1.323900 -0.499999 -0.085109
v -1.375376 -0.117922 0.336909
v -1.323900 -0.004507 0.336909
v -1.375376 -0.004507 0.336909
v -1.375376 0.477133 0.426074
v -1.323900 0.477133 0.426074
v -1.375376 -0.038350 0.336909
v -1.375376 -0.499811 0.336909
v 0.319746 -0.499811 0.336909
v 0.319746 -0.117922 0.336909
v 0.319746 -0.117922 0.002852
v 0.319746 -0.499999 -0.085109
v 0.371221 -0.499999 -0.085109
v -0.500002 0.083461 0.325602
v -0.500002 -0.013063 0.005502
v -0.500002 0.498279 0.402464
v -0.500002 0.493692 0.429210
v -0.500002 -0.039202 -0.148542
v -0.500002 0.373448 0.406930
v -0.500002 -0.013063 0.289398
v -0.500002 -0.039202 0.289398
v -0.500002 -0.039202 0.162452
v -0.500002 0.349616 0.374918
v -0.500002 -0.013063 -0.021596
v -0.500002 0.345028 0.401664
v -0.500002 -0.039202 0.005502
v -0.500002 0.224784 0.379384
v -0.500002 0.378036 0.380184
v -0.500002 -0.013063 0.162452
v -0.500002 -0.039202 -0.021596
v -0.500002 0.203704 0.347882
v -0.500002 -0.013063 0.132448
v -0.500002 0.199117 0.374628
v -0.500002 0.078873 0.352348
v -0.500002 0.229372 0.352638
v -0.500002 -0.013063 -0.148542
v -0.500002 -0.039202 0.132448
vt 0.062500 0.125000
vt 0.062500 0.250000
vt 0.000000 0.250000
vt 0.000000 0.125000
vt 1.000000 0.812500
vt -0.000000 0.812500
vt -0.000000 0.750000
vt 1.000000 0.750000
vt 0.937500 0.250000
vt 0.937500 0.125000
vt 1.000000 0.125000
vt 1.000000 0.250000
vt 1.000000 0.875000
vt -0.000000 0.875000
vt 1.000000 -0.000000
vt 0.000000 -0.000000
vt 0.000000 0.625000
vt 0.000000 0.500000
vt 1.000000 0.500000
vt 1.000000 0.625000
vt 0.062500 0.312500
vt 0.062500 0.437500
vt 0.000000 0.437500
vt 0.000000 0.312500
vt -0.000000 0.687500
vt 1.000000 0.687500
vt 0.937500 0.437500
vt 0.937500 0.312500
vt 1.000000 0.312500
vt 1.000000 0.437500
vt 1.000000 0.937500
vt -0.000000 0.937500
vt 1.000000 0.187500
vt 0.000000 0.187500
vt 0.062500 0.500000
vt 0.062500 0.625000
vt 0.937500 0.625000
vt 0.937500 0.500000
vt 1.000000 1.000000
vt -0.000000 1.000000
vt 1.000000 0.375000
vt 0.000000 0.375000
vt 0.250000 0.062500
vt 0.125000 0.062500
vt 0.125000 0.000000
vt 0.250000 0.000000
vt 0.000000 0.062500
vt 1.000000 0.062500
vt 0.875000 0.062500
vt 0.750000 0.062500
vt 0.750000 0.000000
vt 0.875000 0.000000
vt 0.437500 0.062500
vt 0.312500 0.062500
vt 0.312500 0.000000
vt 0.437500 0.000000
vt 0.687500 0.062500
vt 0.562500 0.062500
vt 0.562500 0.000000
vt 0.687500 0.000000
vt 0.625000 0.062500
vt 0.500000 0.062500
vt 0.500000 0.000000
vt 0.625000 0.000000
vt 0.375000 0.062500
vt 0.375000 0.000000
vt 1.000000 0.562500
vt -0.000000 0.562500
vt 0.125000 0.375000
vt 0.125000 0.437500
vt 0.062500 0.375000
vt 0.125000 1.000000
vt 0.062500 1.000000
vt 0.875000 1.000000
vt 0.875000 0.937500
vt 0.937500 0.937500
vt 0.937500 1.000000
vt 0.062500 0.000000
vt 0.000000 0.997974
vt 0.000001 0.000192
vt 0.125717 0.000192
vt 0.125717 0.390227
vt 0.125717 0.471496
vt 0.125717 0.506061
vt 0.034650 0.997974
vt 0.937500 0.375000
vt 0.875000 0.375000
vt 0.937500 0.000000
vt 0.937500 0.687500
vt 0.875000 0.687500
vt 0.875000 0.250000
vt 0.875000 0.437500
vt 0.874284 0.390227
vt 0.874284 0.471496
vt 0.429638 0.471496
vt 0.429638 0.390227
vt 0.533101 0.390227
vt 0.125000 0.125000
vt 0.062500 0.937500
vt 0.125000 0.937500
vt 0.875000 0.125000
vt 0.570363 0.390227
vt 0.466899 0.390227
vt 0.556736 0.000000
vt 0.660201 0.000000
vt 0.443264 0.000000
vt 0.339800 0.000000
vt 0.874284 0.506061
vt 0.874284 0.000192
vt 0.999999 0.000192
vt 1.000000 0.997974
vt 0.965350 0.997974
vt 0.875000 0.500000
vt 0.570363 0.471496
vt 0.125000 0.500000
vt 0.125000 0.250000
vt 0.125000 0.687500
vt 0.062500 0.687500
vn 1.000000 0.000000 0.000000
vn 0.000000 0.985600 0.169000
vn -1.000000 -0.000000 0.000000
vn 0.000000 -0.985600 -0.169100
vn 0.000000 -0.182200 0.983300
vn 0.000000 0.182200 -0.983300
vn 0.000000 0.985600 0.169100
vn 0.000000 0.000000 1.000000
vn 0.000000 0.000000 -1.000000
vn 0.000000 -1.000000 -0.000000
vn 0.000000 1.000000 0.000000
vn 0.000000 0.182000 -0.983300
vn 0.000000 0.224400 -0.974500
vn 0.000000 -0.224300 0.974500
g wood_planks_wood_planks_None_wood_planks_wood_planks_None_seat
s off
f 1/1/1 2/2/1 3/3/1 4/4/1
f 114/5/2 5/6/2 6/7/2 116/8/2
f 5/9/3 7/10/3 8/11/3 6/12/3
f 97/6/4 1/5/4 4/13/4 117/14/4
f 117/15/5 116/11/5 6/4/5 8/16/5
f 114/17/6 97/18/6 7/19/6 5/20/6
f 9/21/1 10/22/1 11/23/1 12/24/1
f 106/8/7 13/7/7 14/25/7 108/26/7
f 13/27/3 15/28/3 16/29/3 14/30/3
f 118/14/4 9/13/4 12/31/4 110/32/4
f 110/33/5 108/29/5 14/24/5 16/34/5
f 118/26/6 106/5/6 10/6/6 9/25/6
f 17/35/1 18/36/1 19/17/1 20/18/1
f 99/26/2 21/25/2 22/17/2 100/20/2
f 21/37/3 23/38/3 24/19/3 22/20/3
f 111/32/4 17/31/4 20/39/4 102/40/4
f 102/41/5 100/19/5 22/18/5 24/42/5
f 111/13/6 99/39/6 18/40/6 17/14/6
f 25/43/1 26/44/1 27/45/1 28/46/1
f 103/11/8 29/4/8 30/47/8 104/48/8
f 29/49/3 31/50/3 32/51/3 30/52/3
f 112/48/9 25/47/9 28/16/9 105/15/9
f 105/13/10 104/39/10 30/40/10 32/14/10
f 112/4/11 103/16/11 26/15/11 25/11/11
f 33/53/1 34/54/1 35/55/1 36/56/1
f 115/11/8 37/4/8 38/47/8 120/48/8
f 37/57/3 39/58/3 40/59/3 38/60/3
f 98/48/9 33/47/9 36/16/9 109/15/9
f 109/26/10 120/5/10 38/6/10 40/25/10
f 98/24/11 115/34/11 34/33/11 33/29/11
f 41/61/1 42/62/1 43/63/1 44/64/1
f 107/11/8 45/4/8 46/47/8 113/48/8
f 45/62/3 47/65/3 48/66/3 46/63/3
f 119/48/9 41/47/9 44/16/9 101/15/9
f 101/30/10 113/67/10 46/68/10 48/23/10
f 119/18/11 107/42/11 42/41/11 41/19/11
f 47/18/11 45/42/11 107/41/11 119/19/11
f 44/19/10 43/20/10 113/17/10 101/18/10
f 47/48/9 119/47/9 101/16/9 48/15/9
f 42/11/8 107/4/8 113/47/8 43/48/8
f 39/24/11 37/34/11 115/33/11 98/29/11
f 36/26/10 35/5/10 120/6/10 109/25/10
f 39/48/9 98/47/9 109/16/9 40/15/9
f 34/11/8 115/4/8 120/47/8 35/48/8
f 31/4/11 29/16/11 103/15/11 112/11/11
f 28/13/10 27/39/10 104/40/10 105/14/10
f 31/48/9 112/47/9 105/16/9 32/15/9
f 26/11/8 103/4/8 104/47/8 27/48/8
f 23/13/6 21/39/6 99/40/6 111/14/6
f 20/41/5 19/19/5 100/18/5 102/42/5
f 23/32/4 111/31/4 102/39/4 24/40/4
f 18/26/2 99/25/2 100/17/2 19/20/2
f 15/26/6 13/5/6 106/6/6 118/25/6
f 12/33/5 11/29/5 108/24/5 110/34/5
f 15/14/4 118/13/4 110/31/4 16/32/4
f 10/8/7 106/7/7 108/25/7 11/26/7
f 2/17/6 1/18/6 97/19/6 114/20/6
f 4/15/5 3/11/5 116/4/5 117/16/5
f 7/6/4 97/5/4 117/13/4 8/14/4
f 2/5/2 114/6/2 116/7/2 3/8/2
g wood_planks_wood_planks_None_wood_planks_wood_planks_None_legs
f 49/69/9 50/70/9 51/22/9 52/71/9
f 51/22/12 50/70/12 53/72/12 54/73/12
f 53/74/11 55/75/11 56/76/11 54/77/11
f 61/69/9 62/70/9 63/22/9 64/71/9
f 61/69/13 64/71/13 65/78/13 66/45/13
f 79/79/1 74/80/1 75/81/1 76/82/1 78/83/1 86/84/1 89/85/1
f 68/86/13 69/87/13 70/52/13 71/88/13
f 52/9/11 63/89/11 62/90/11 49/91/11
f 68/86/9 73/27/9 72/92/9 69/87/9
f 93/93/3 49/94/3 62/95/3 61/96/3 94/97/3
f 82/22/14 83/78/14 84/45/14 77/70/14
f 85/71/10 82/1/10 77/98/10 76/69/10
f 86/92/12 87/27/12 88/77/12 89/74/12
f 90/86/9 87/27/9 86/92/9 78/87/9
f 88/73/11 80/99/11 79/100/11 89/72/11
f 76/87/9 75/52/9 91/88/9 85/86/9
f 60/71/9 67/78/9 92/45/9 93/69/9
f 93/87/10 94/101/10 59/10/10 60/86/10
f 94/92/14 95/52/14 96/88/14 59/27/14
f 64/102/1 59/103/1 96/104/1 65/105/1
f 95/106/3 94/97/3 61/96/3 66/107/3
f 85/93/3 90/94/3 73/95/3 68/96/3 82/97/3
f 50/108/3 49/94/3 93/93/3 92/109/3 57/110/3 55/111/3 53/112/3
f 58/80/1 67/81/1 60/82/1 52/83/1 51/84/1 54/85/1 56/79/1
f 65/88/10 96/10/10 95/101/10 66/52/10
f 58/38/10 57/113/10 92/87/10 67/86/10
f 80/111/3 88/112/3 87/108/3 90/94/3 85/93/3 91/109/3 81/110/3
f 69/102/1 77/103/1 84/104/1 70/105/1
f 83/106/3 82/97/3 68/96/3 71/107/3
f 59/103/1 64/102/1 63/114/1 52/83/1 60/82/1
f 70/45/10 84/98/10 83/1/10 71/78/10
f 74/115/10 81/35/10 91/71/10 75/69/10
f 81/78/8 74/45/8 79/72/8 80/73/8
f 55/74/8 57/52/8 58/88/8 56/77/8
f 77/103/1 69/102/1 72/114/1 78/83/1 76/82/1
f 90/2/11 78/116/11 72/117/11 73/118/11

Binary file not shown.

Before

Width:  |  Height:  |  Size: 268 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 673 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 585 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 665 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 586 B

After

Width:  |  Height:  |  Size: 642 B