use mesh node for barbecue

This commit is contained in:
Vanessa Ezekowitz 2015-03-29 02:53:23 -04:00
parent a8a052bde3
commit 0f0942d08c
4 changed files with 381 additions and 42 deletions

View File

@ -1,57 +1,34 @@
local S = homedecor.gettext local S = homedecor.gettext
dofile(homedecor.modpath.."/furniture.lua") dofile(homedecor.modpath.."/furniture.lua")
local bbq_cbox = {
type = "fixed",
fixed = { -0.5, -0.5, -0.3125, 0.5, 0.53125, 0.3125 }
}
homedecor.register("barbecue", { homedecor.register("barbecue", {
description = "Barbecue", description = "Barbecue",
mesh = "homedecor_barbecue.obj",
tiles = { tiles = {
{name="homedecor_barbecue_top.png", animation={type="vertical_frames",
aspect_w=16, aspect_h=16, length=2}},
"forniture_black_metal.png", "forniture_black_metal.png",
{ name="homedecor_embers.png",
animation={
type="vertical_frames",
aspect_w=16,
aspect_h=16,
length=2
}
},
"homedecor_barbecue_meat.png",
}, },
groups = { snappy=3 }, groups = { snappy=3 },
light_source = 9, light_source = 9,
node_box = { selection_box = bbq_cbox,
type = "fixed", collision_box = bbq_cbox,
fixed = { expand = { top="air" },
{-0.5, -0.5, 0.25, -0.4375, 0.0625, 0.3125}, -- NodeBox1
{0.4375, -0.5, 0.25, 0.5, 0.0625, 0.3125}, -- NodeBox2
{-0.5, -0.5, -0.3125, -0.4375, 0.0625, -0.25}, -- NodeBox3
{0.4375, -0.5, -0.3125, 0.5, 0.0625, -0.25}, -- NodeBox4
{-0.5, 0.0625, -0.3125, 0.5, 0.375, 0.3125}, -- NodeBox5
{-0.375, 0.5, -0.25, -0.313, 0.5, 0.251}, -- NodeBox6
{-0.25, 0.5, -0.25, -0.188, 0.5, 0.251}, -- NodeBox7
{-0.125, 0.5, -0.25, -0.063, 0.5, 0.251}, -- NodeBox8
{0, 0.5, -0.25, 0.062, 0.5, 0.251}, -- NodeBox9
{0.125, 0.5, -0.25, 0.187, 0.5, 0.251}, -- NodeBox10
{0.25, 0.5, -0.25, 0.312, 0.5, 0.251}, -- NodeBox11
{0.375, 0.5, -0.25, 0.437, 0.5, 0.251}, -- NodeBox12
{-0.5, 0.375, 0.251, 0.5, 0.5, 0.3125}, -- NodeBox13
{-0.5, 0.0625, -0.3125, 0.5, 0.5, -0.25}, -- NodeBox14
{-0.5, 0.0625, -0.3125, -0.438, 0.5, 0.3125}, -- NodeBox15
{0.4375, 0.0625, -0.3125, 0.5, 0.5, 0.3125}, -- NodeBox16
}
},
selection_box = {
type = "fixed",
fixed = { -0.5, -0.5, -0.3125, 0.5, 0.625, 0.3125 }
},
expand = { top="homedecor:barbecue_meat" },
}) })
homedecor.register("barbecue_meat", { minetest.register_alias("homedecor:barbecue_meat", "air")
tiles = {
"homedecor_barbecue_meat.png",
},
groups = { snappy=3, not_in_creative_inventory=1 },
node_box = {
type = "fixed",
fixed = {
{-0.25, -0.5, -0.125, -0.0625, -0.4375, 0.125}, -- NodeBox1
{0.125, -0.5, -0.125, 0.3125, -0.4375, 0.125}, -- NodeBox2
}
},
selection_box = homedecor.nodebox.null
})
homedecor.register("bench_large_1_left", { homedecor.register("bench_large_1_left", {
description = "Garden Bench (style 1)", description = "Garden Bench (style 1)",

View File

@ -0,0 +1,362 @@
# Blender v2.73 (sub 0) OBJ File: 'barbecue.blend'
# www.blender.org
o Cylinder
v -0.500000 0.062500 0.312500
v -0.500000 0.062500 -0.312500
v 0.500000 0.062500 -0.312500
v 0.500000 0.062500 0.312500
v -0.500000 0.500000 0.312500
v -0.500000 0.500000 -0.312500
v 0.500000 0.500000 -0.312500
v 0.500000 0.500000 0.312500
v -1.625000 -0.500000 0.500000
v -1.625000 -0.500000 -0.500000
v -0.625000 -0.500000 -0.500000
v -0.625000 -0.500000 0.500000
v -1.625000 0.500000 0.500000
v -1.625000 0.500000 -0.500000
v -0.625000 0.500000 -0.500000
v -0.625000 0.500000 0.500000
v -0.500000 -0.500000 0.312500
v -0.500000 -0.500000 0.250000
v -0.437500 -0.500000 0.250000
v -0.437500 -0.500000 0.312500
v -0.500000 0.062500 0.312500
v -0.500000 0.062500 0.250000
v -0.437500 0.062500 0.250000
v -0.437500 0.062500 0.312500
v -0.500000 -0.500000 -0.250000
v -0.500000 -0.500000 -0.312500
v -0.437500 -0.500000 -0.312500
v -0.437500 -0.500000 -0.250000
v -0.500000 0.062500 -0.250000
v -0.500000 0.062500 -0.312500
v -0.437500 0.062500 -0.312500
v -0.437500 0.062500 -0.250000
v 0.437500 -0.500000 -0.250000
v 0.437500 -0.500000 -0.312500
v 0.500000 -0.500000 -0.312500
v 0.500000 -0.500000 -0.250000
v 0.437500 0.062500 -0.250000
v 0.437500 0.062500 -0.312500
v 0.500000 0.062500 -0.312500
v 0.500000 0.062500 -0.250000
v 0.437500 -0.500000 0.312500
v 0.437500 -0.500000 0.250000
v 0.500000 -0.500000 0.250000
v 0.500000 -0.500000 0.312500
v 0.437500 0.062500 0.312500
v 0.437500 0.062500 0.250000
v 0.500000 0.062500 0.250000
v 0.500000 0.062500 0.312500
v -0.500000 0.500000 0.250000
v 0.500000 0.500000 0.250000
v -0.500000 0.500000 -0.250000
v 0.500000 0.500000 -0.250000
v -0.437500 0.500000 0.250000
v -0.437500 0.500000 -0.250000
v 0.437500 0.500000 0.250000
v 0.437500 0.500000 -0.250000
v -0.437500 0.312500 0.250000
v -0.437500 0.312500 -0.250000
v 0.437500 0.312500 0.250000
v 0.437500 0.312500 -0.250000
v -0.390625 0.453125 0.250000
v -0.390625 0.453125 -0.250000
v -0.359375 0.453125 -0.250000
v -0.359375 0.453125 0.250000
v -0.390625 0.488281 0.250000
v -0.390625 0.488281 -0.250000
v -0.359375 0.488281 -0.250000
v -0.359375 0.488281 0.250000
v -0.265625 0.453125 0.250000
v -0.265625 0.453125 -0.250000
v -0.234375 0.453125 -0.250000
v -0.234375 0.453125 0.250000
v -0.265625 0.488281 0.250000
v -0.265625 0.488281 -0.250000
v -0.234375 0.488281 -0.250000
v -0.234375 0.488281 0.250000
v -0.140625 0.453125 0.250000
v -0.140625 0.453125 -0.250000
v -0.109375 0.453125 -0.250000
v -0.109375 0.453125 0.250000
v -0.140625 0.488281 0.250000
v -0.140625 0.488281 -0.250000
v -0.109375 0.488281 -0.250000
v -0.109375 0.488281 0.250000
v -0.015625 0.453125 0.250000
v -0.015625 0.453125 -0.250000
v 0.015625 0.453125 -0.250000
v 0.015625 0.453125 0.250000
v -0.015625 0.488281 0.250000
v -0.015625 0.488281 -0.250000
v 0.015625 0.488281 -0.250000
v 0.015625 0.488281 0.250000
v 0.109375 0.453125 0.250000
v 0.109375 0.453125 -0.250000
v 0.140625 0.453125 -0.250000
v 0.140625 0.453125 0.250000
v 0.109375 0.488281 0.250000
v 0.109375 0.488281 -0.250000
v 0.140625 0.488281 -0.250000
v 0.140625 0.488281 0.250000
v 0.234375 0.453125 0.250000
v 0.234375 0.453125 -0.250000
v 0.265625 0.453125 -0.250000
v 0.265625 0.453125 0.250000
v 0.234375 0.488281 0.250000
v 0.234375 0.488281 -0.250000
v 0.265625 0.488281 -0.250000
v 0.265625 0.488281 0.250000
v 0.359375 0.453125 0.250000
v 0.359375 0.453125 -0.250000
v 0.390625 0.453125 -0.250000
v 0.390625 0.453125 0.250000
v 0.359375 0.488281 0.250000
v 0.359375 0.488281 -0.250000
v 0.390625 0.488281 -0.250000
v 0.390625 0.488281 0.250000
v 0.187500 0.511719 -0.093750
v 0.187500 0.488282 -0.093750
v -0.187500 0.488282 -0.093750
v -0.187500 0.511719 -0.093750
v -0.121209 0.488282 -0.066291
v -0.121209 0.511719 -0.066291
v -0.093750 0.488282 0.000000
v -0.093750 0.511719 0.000000
v -0.121209 0.488282 0.066291
v -0.121209 0.511719 0.066291
v -0.187500 0.488282 0.093750
v -0.187500 0.511719 0.093750
v -0.253791 0.488282 0.066291
v -0.253791 0.511719 0.066291
v -0.281250 0.488282 -0.000000
v -0.281250 0.511719 -0.000000
v -0.253791 0.488282 -0.066291
v -0.253791 0.511719 -0.066291
v 0.253791 0.488282 -0.066291
v 0.253791 0.511719 -0.066291
v 0.281250 0.488282 0.000000
v 0.281250 0.511719 0.000000
v 0.253791 0.488282 0.066291
v 0.253791 0.511719 0.066291
v 0.187500 0.488282 0.093750
v 0.187500 0.511719 0.093750
v 0.121209 0.488282 0.066291
v 0.121209 0.511719 0.066291
v 0.093750 0.488282 -0.000000
v 0.093750 0.511719 -0.000000
v 0.121209 0.488282 -0.066291
v 0.121209 0.511719 -0.066291
v -0.187500 0.511719 -0.000000
v 0.187500 0.511719 0.000000
vt 0.000000 0.812500
vt 0.000000 0.187500
vt 0.437500 0.187500
vt 0.437500 0.812500
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 0.437500 0.000000
vt 0.437500 1.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.812500 0.000000
vt 0.812500 1.000000
vt 0.750000 1.000000
vt 0.750000 0.000000
vt 0.437500 0.750000
vt 1.000000 0.750000
vt 1.000000 0.812500
vt 0.437500 0.937500
vt 1.000000 0.937500
vt 0.437500 0.250000
vt 1.000000 0.187500
vt 1.000000 0.250000
vt 0.437500 0.062500
vt 1.000000 0.062500
vt 0.062500 0.000000
vt 0.062500 0.062500
vt 0.000000 0.062500
vt 0.937500 0.000000
vt 0.937500 0.062500
vt 0.937500 0.937500
vt 0.937500 1.000000
vt 0.000000 0.937500
vt 0.062500 0.937500
vt 0.062500 1.000000
vt 0.187500 1.000000
vt 0.187500 0.000000
vt 0.250000 0.000000
vt 0.250000 1.000000
vt 0.750000 0.062500
vt 0.250000 0.062500
vt 0.750000 0.937500
vt 0.250000 0.937500
vt 0.000000 0.250000
vt 0.187500 0.250000
vt 0.187500 0.750000
vt 0.000000 0.750000
vt 0.187500 0.062500
vt 0.187500 0.937500
vt 0.890625 0.750000
vt 0.890625 0.250000
vt 0.921875 0.250000
vt 0.921875 0.750000
vt 0.062500 0.812500
vt 0.062500 0.187500
vt 0.937500 0.187500
vt 0.937500 0.812500
vt 0.421376 0.729703
vt 0.533337 0.683327
vt 0.533337 0.841663
vt 0.875000 0.125000
vt 0.937500 0.125000
vt 0.937500 0.250000
vt 0.875000 0.250000
vt 0.750000 0.500000
vt 0.812500 0.500000
vt 0.812500 0.625000
vt 0.750000 0.625000
vt 0.645298 0.729703
vt 0.875000 0.000000
vt 0.812500 0.750000
vt 0.750000 0.750000
vt 0.421376 0.953624
vt 0.375000 0.841663
vt 0.875000 0.875000
vt 0.937500 0.875000
vt 0.875000 1.000000
vt 0.812500 0.875000
vt 0.750000 0.875000
vt 0.533337 1.000000
vt 0.875000 0.750000
vt 0.937500 0.750000
vt 0.937500 0.375000
vt 0.875000 0.375000
vt 0.875000 0.625000
vt 0.937500 0.625000
vt 0.812500 0.125000
vt 0.750000 0.125000
vt 0.937500 0.500000
vt 0.875000 0.500000
vt 0.812500 0.250000
vt 0.750000 0.250000
vt 0.270298 0.953624
vt 0.158337 1.000000
vt 0.158337 0.841663
vt 0.750000 0.375000
vt 0.812500 0.375000
vt 0.645298 0.953624
vt 0.691673 0.841663
vt 0.046376 0.953624
vt 0.000000 0.841663
vt 0.046376 0.729703
vt 0.158337 0.683327
vt 0.270298 0.729703
vt 0.316673 0.841663
vn -1.000000 0.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 0.000000 -1.000000 0.000000
vn 0.000000 1.000000 0.000000
vn -0.923900 0.000000 0.382700
vn 0.382700 0.000000 -0.923900
vn -0.382700 0.000000 0.923900
vn 0.923900 0.000000 -0.382700
vn 0.382700 0.000000 0.923900
vn 0.923900 0.000000 0.382700
vn -0.923900 0.000000 -0.382700
vn -0.382700 0.000000 -0.923900
g Cylinder_Cylinder_metal
s off
f 5/1/1 6/2/1 2/3/1 1/4/1
f 6/5/2 7/6/2 3/7/2 2/8/2
f 7/1/3 8/2/3 4/3/3 3/4/3
f 8/5/4 5/6/4 1/7/4 4/8/4
f 1/6/5 2/9/5 3/10/5 4/5/5
f 5/11/6 8/12/6 50/13/6 49/14/6
f 21/4/1 22/15/1 18/16/1 17/17/1
f 22/8/2 23/18/2 19/19/2 18/10/2
f 23/20/3 24/3/3 20/21/3 19/22/3
f 24/23/4 21/7/4 17/9/4 20/24/4
f 17/6/5 18/25/5 19/26/5 20/27/5
f 29/20/1 30/3/1 26/21/1 25/22/1
f 30/8/2 31/18/2 27/19/2 26/10/2
f 31/4/3 32/15/3 28/16/3 27/17/3
f 32/23/4 29/7/4 25/9/4 28/24/4
f 25/28/5 26/9/5 27/24/5 28/29/5
f 37/20/1 38/3/1 34/21/1 33/22/1
f 38/23/2 39/7/2 35/9/2 34/24/2
f 39/4/3 40/15/3 36/16/3 35/17/3
f 40/8/4 37/18/4 33/19/4 36/10/4
f 33/30/5 34/19/5 35/10/5 36/31/5
f 45/4/1 46/15/1 42/16/1 41/17/1
f 46/23/2 47/7/2 43/9/2 42/24/2
f 47/20/3 48/3/3 44/21/3 43/22/3
f 48/8/4 45/18/4 41/19/4 44/10/4
f 41/32/5 42/33/5 43/34/5 44/5/5
f 7/35/6 6/36/6 51/37/6 52/38/6
f 53/39/6 54/40/6 51/37/6 49/14/6
f 55/41/6 50/13/6 52/38/6 56/42/6
f 56/43/1 60/44/1 59/45/1 55/46/1
f 54/46/3 53/43/3 57/44/3 58/45/3
f 56/32/4 54/27/4 58/47/4 60/48/4
f 59/47/2 57/48/2 53/32/2 55/27/2
f 65/31/1 66/28/1 62/9/1 61/10/1
f 67/31/3 68/28/3 64/9/3 63/10/3
f 68/49/6 67/50/6 66/51/6 65/52/6
f 73/31/1 74/28/1 70/9/1 69/10/1
f 75/31/3 76/28/3 72/9/3 71/10/3
f 76/49/6 75/50/6 74/51/6 73/52/6
f 81/31/1 82/28/1 78/9/1 77/10/1
f 83/31/3 84/28/3 80/9/3 79/10/3
f 84/49/6 83/50/6 82/51/6 81/52/6
f 89/31/1 90/28/1 86/9/1 85/10/1
f 91/31/3 92/28/3 88/9/3 87/10/3
f 92/49/6 91/50/6 90/51/6 89/52/6
f 97/31/1 98/28/1 94/9/1 93/10/1
f 99/31/3 100/28/3 96/9/3 95/10/3
f 100/49/6 99/50/6 98/51/6 97/52/6
f 105/31/1 106/28/1 102/9/1 101/10/1
f 107/31/3 108/28/3 104/9/3 103/10/3
f 108/49/6 107/50/6 106/51/6 105/52/6
f 113/31/1 114/28/1 110/9/1 109/10/1
f 115/31/3 116/28/3 112/9/3 111/10/3
f 116/49/6 115/50/6 114/51/6 113/52/6
g Cylinder_Cylinder_embers
f 58/53/6 57/54/6 59/55/6 60/56/6
g Cylinder_Cylinder_meat
f 130/57/6 128/58/6 149/59/6
f 143/60/7 144/61/7 146/62/7 145/63/7
f 119/64/8 120/65/8 122/66/8 121/67/8
f 128/58/6 126/68/6 149/59/6
f 141/69/9 142/28/9 144/61/9 143/60/9
f 121/67/10 122/66/10 124/70/10 123/71/10
f 134/72/6 132/73/6 149/59/6
f 139/74/11 140/75/11 142/31/11 141/76/11
f 123/71/12 124/70/12 126/77/12 125/78/12
f 120/79/6 134/72/6 149/59/6
f 137/80/12 138/81/12 140/75/12 139/74/12
f 125/78/11 126/77/11 128/12/11 127/13/11
f 145/63/13 146/62/13 148/82/13 147/83/13
f 135/84/10 136/85/10 138/81/10 137/80/10
f 127/14/9 128/11/9 130/86/9 129/87/9
f 147/83/14 148/82/14 117/88/14 118/89/14
f 118/89/8 117/88/8 136/85/8 135/84/8
f 129/87/7 130/86/7 132/90/7 131/91/7
f 136/92/6 117/93/6 150/94/6
f 133/95/14 134/96/14 120/65/14 119/64/14
f 131/91/13 132/90/13 134/96/13 133/95/13
f 132/73/6 130/57/6 149/59/6
f 122/97/6 120/79/6 149/59/6
f 126/68/6 124/98/6 149/59/6
f 124/98/6 122/97/6 149/59/6
f 117/93/6 148/99/6 150/94/6
f 148/99/6 146/100/6 150/94/6
f 146/100/6 144/101/6 150/94/6
f 144/101/6 142/102/6 150/94/6
f 142/102/6 140/103/6 150/94/6
f 140/103/6 138/104/6 150/94/6
f 138/104/6 136/92/6 150/94/6

Binary file not shown.

Before

Width:  |  Height:  |  Size: 531 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB