use mesh node for paintings
|
@ -679,27 +679,24 @@ for _, i in ipairs(n) do
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local p_cbox = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{ -0.5, -0.5, 0.4375, 0.5, 0.5, 0.5 }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for i = 1,20 do
|
for i = 1,20 do
|
||||||
homedecor.register("painting_"..i, {
|
homedecor.register("painting_"..i, {
|
||||||
description = "Decorative painting #"..i,
|
description = "Decorative painting #"..i,
|
||||||
|
mesh = "homedecor_painting.obj",
|
||||||
tiles = {
|
tiles = {
|
||||||
"homedecor_painting_edges.png",
|
"default_wood.png",
|
||||||
"homedecor_painting_edges.png",
|
"homedecor_blank_canvas.png",
|
||||||
"homedecor_painting_edges.png",
|
|
||||||
"homedecor_painting_edges.png",
|
|
||||||
"homedecor_painting_back.png",
|
|
||||||
"homedecor_painting"..i..".png"
|
"homedecor_painting"..i..".png"
|
||||||
},
|
},
|
||||||
node_box = {
|
selection_box = p_cbox,
|
||||||
type = "fixed",
|
walkable = false,
|
||||||
fixed = {
|
|
||||||
{ -32/64, -32/64, 28/64, -30/64, 32/64, 32/64 }, -- left edge
|
|
||||||
{ 30/64, -32/64, 28/64, 32/64, 32/64, 32/64 }, -- right edge
|
|
||||||
{ -32/64, 30/64, 28/64, 32/64, 32/64, 32/64 }, -- top edge
|
|
||||||
{ -32/64, -30/64, 28/64, 32/64, -32/64, 32/64 }, -- bottom edge
|
|
||||||
{ -32/64, -32/64, 29/64, 32/64, 32/64, 29/64 } -- the canvas
|
|
||||||
}
|
|
||||||
},
|
|
||||||
groups = {snappy=3},
|
groups = {snappy=3},
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
})
|
})
|
||||||
|
|
111
homedecor/models/homedecor_painting.obj
Normal file
|
@ -0,0 +1,111 @@
|
||||||
|
# Blender v2.73 (sub 0) OBJ File: 'painting.blend'
|
||||||
|
# www.blender.org
|
||||||
|
o Cylinder
|
||||||
|
v -0.500000 -0.500000 0.500000
|
||||||
|
v -0.500000 -0.500000 0.437500
|
||||||
|
v 0.500000 -0.500000 0.437500
|
||||||
|
v 0.500000 -0.500000 0.500000
|
||||||
|
v -0.500000 0.500000 0.500000
|
||||||
|
v -0.500000 0.500000 0.437500
|
||||||
|
v 0.500000 0.500000 0.437500
|
||||||
|
v 0.500000 0.500000 0.500000
|
||||||
|
v -0.500000 0.468750 0.437500
|
||||||
|
v 0.500000 0.468750 0.437500
|
||||||
|
v -0.500000 -0.468750 0.437500
|
||||||
|
v 0.500000 -0.468750 0.437500
|
||||||
|
v -0.468750 0.468750 0.437500
|
||||||
|
v -0.468750 -0.468750 0.437500
|
||||||
|
v 0.468750 0.468750 0.437500
|
||||||
|
v 0.468750 -0.468750 0.437500
|
||||||
|
v -0.468750 0.468750 0.468750
|
||||||
|
v -0.468750 -0.468750 0.468750
|
||||||
|
v 0.468750 0.468750 0.468750
|
||||||
|
v 0.468750 -0.468750 0.468750
|
||||||
|
v -0.468750 0.468750 0.500000
|
||||||
|
v -0.468750 -0.468750 0.500000
|
||||||
|
v 0.468750 0.468750 0.500000
|
||||||
|
v 0.468750 -0.468750 0.500000
|
||||||
|
v -0.500000 -0.468750 0.500000
|
||||||
|
v 0.500000 -0.468750 0.500000
|
||||||
|
v -0.500000 0.468750 0.500000
|
||||||
|
v 0.500000 0.468750 0.500000
|
||||||
|
vt 0.250000 1.000000
|
||||||
|
vt 0.500000 1.000000
|
||||||
|
vt 0.500000 -3.000000
|
||||||
|
vt 0.250000 -3.000000
|
||||||
|
vt 0.000000 1.000000
|
||||||
|
vt 0.000000 -3.000000
|
||||||
|
vt 0.250000 1.062500
|
||||||
|
vt 0.500000 1.062500
|
||||||
|
vt 0.500000 -2.937500
|
||||||
|
vt 0.250000 -2.937500
|
||||||
|
vt 0.000000 -2.937500
|
||||||
|
vt 0.000000 1.062500
|
||||||
|
vt 0.375000 1.000000
|
||||||
|
vt 0.375000 -3.000000
|
||||||
|
vt 0.125000 1.000000
|
||||||
|
vt 0.125000 -3.000000
|
||||||
|
vt 0.250000 0.875000
|
||||||
|
vt 0.250000 -2.875000
|
||||||
|
vt 0.375000 -2.875000
|
||||||
|
vt 0.375000 0.875000
|
||||||
|
vt 0.125000 0.875000
|
||||||
|
vt 0.000000 0.875000
|
||||||
|
vt 0.000000 -2.875000
|
||||||
|
vt 0.125000 -2.875000
|
||||||
|
vt 0.750000 -2.875000
|
||||||
|
vt 0.500000 -2.875000
|
||||||
|
vt 0.500000 0.875000
|
||||||
|
vt 0.750000 0.875000
|
||||||
|
vt 1.000000 -2.875000
|
||||||
|
vt 1.000000 0.875000
|
||||||
|
vt 1.000000 -2.812500
|
||||||
|
vt 1.000000 0.937500
|
||||||
|
vt 0.750000 0.937500
|
||||||
|
vt 0.750000 -2.812500
|
||||||
|
vt 0.625000 -3.000000
|
||||||
|
vt 0.625000 1.000000
|
||||||
|
vt 0.750000 1.000000
|
||||||
|
vt 0.750000 -3.000000
|
||||||
|
vt 1.000000 1.000000
|
||||||
|
vt 1.000000 -3.000000
|
||||||
|
vt 0.875000 -3.000000
|
||||||
|
vt 0.875000 1.000000
|
||||||
|
vt 0.500000 -2.812500
|
||||||
|
vt 0.500000 0.937500
|
||||||
|
vt 0.875000 0.875000
|
||||||
|
vt 0.875000 -2.875000
|
||||||
|
vt 0.625000 -2.875000
|
||||||
|
vt 0.625000 0.875000
|
||||||
|
vt 0.031250 0.031250
|
||||||
|
vt 0.968750 0.031250
|
||||||
|
vt 0.968750 0.968750
|
||||||
|
vt 0.031250 0.968750
|
||||||
|
vn -1.000000 0.000000 0.000000
|
||||||
|
vn 1.000000 0.000000 0.000000
|
||||||
|
vn 0.000000 -1.000000 0.000000
|
||||||
|
vn 0.000000 1.000000 0.000000
|
||||||
|
vn 0.000000 0.000000 -1.000000
|
||||||
|
vn 0.000000 0.000000 1.000000
|
||||||
|
g Cylinder_Cylinder_wood
|
||||||
|
s off
|
||||||
|
f 5/1/1 6/2/1 2/3/1 1/4/1
|
||||||
|
f 7/1/2 8/5/2 4/6/2 3/4/2
|
||||||
|
f 1/7/3 2/8/3 3/9/3 4/10/3
|
||||||
|
f 8/11/4 7/10/4 6/7/4 5/12/4
|
||||||
|
f 6/3/5 7/2/5 10/13/5 9/14/5
|
||||||
|
f 3/15/5 2/16/5 11/4/5 12/1/5
|
||||||
|
f 13/17/5 14/18/5 11/19/5 9/20/5
|
||||||
|
f 15/21/5 10/22/5 12/23/5 16/24/5
|
||||||
|
f 16/25/1 20/26/1 19/27/1 15/28/1
|
||||||
|
f 14/29/2 13/30/2 17/28/2 18/25/2
|
||||||
|
f 16/31/4 14/32/4 18/33/4 20/34/4
|
||||||
|
f 1/35/6 4/36/6 26/37/6 25/38/6
|
||||||
|
f 8/39/6 5/40/6 27/41/6 28/42/6
|
||||||
|
f 19/43/3 17/44/3 13/33/3 15/34/3
|
||||||
|
f 22/25/6 21/28/6 27/45/6 25/46/6
|
||||||
|
f 24/47/6 26/26/6 28/27/6 23/48/6
|
||||||
|
g Cylinder_Cylinder_canvas
|
||||||
|
f 22/49/6 24/50/6 23/51/6 21/52/6
|
||||||
|
g Cylinder_Cylinder_picture
|
||||||
|
f 18/50/5 17/51/5 19/52/5 20/49/5
|
Before Width: | Height: | Size: 9.3 KiB After Width: | Height: | Size: 8.9 KiB |
Before Width: | Height: | Size: 9.3 KiB After Width: | Height: | Size: 8.8 KiB |
Before Width: | Height: | Size: 7.2 KiB After Width: | Height: | Size: 6.6 KiB |
Before Width: | Height: | Size: 9.2 KiB After Width: | Height: | Size: 8.7 KiB |
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 6.1 KiB |
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.3 KiB |
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 6.2 KiB |
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 5.6 KiB |
Before Width: | Height: | Size: 7.5 KiB After Width: | Height: | Size: 7.2 KiB |
Before Width: | Height: | Size: 8.2 KiB After Width: | Height: | Size: 7.7 KiB |
Before Width: | Height: | Size: 8.5 KiB After Width: | Height: | Size: 8.1 KiB |
Before Width: | Height: | Size: 8.8 KiB After Width: | Height: | Size: 8.3 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 9.6 KiB |
Before Width: | Height: | Size: 8.7 KiB After Width: | Height: | Size: 8.2 KiB |
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 8.9 KiB |
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 8.6 KiB |
Before Width: | Height: | Size: 9.7 KiB After Width: | Height: | Size: 9.2 KiB |
Before Width: | Height: | Size: 7.9 KiB After Width: | Height: | Size: 7.3 KiB |
Before Width: | Height: | Size: 7.7 KiB After Width: | Height: | Size: 7.2 KiB |
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 292 B |