Use mesh node for small square table

This commit is contained in:
Vanessa Ezekowitz 2014-12-14 13:22:44 -05:00
parent 84506cab4c
commit 9d903b82be
9 changed files with 51 additions and 17 deletions

Binary file not shown.

View File

@ -0,0 +1,48 @@
# Blender v2.69 (sub 0) OBJ File: 'table_small_square.blend'
# www.blender.org
mtllib homedecor_table_small_square.mtl
o Cube
v 0.499000 -0.499000 -0.499000
v 0.499000 -0.499000 0.499000
v -0.499000 -0.499000 0.499000
v -0.499000 -0.499000 -0.499000
v 0.499000 -0.468750 -0.499000
v 0.499000 -0.468750 0.499000
v -0.499000 -0.468750 0.499000
v -0.499000 -0.468750 -0.499000
v 0.468750 -0.437500 -0.468750
v 0.468750 -0.437500 0.468750
v -0.468750 -0.437500 0.468750
v -0.468750 -0.437500 -0.468750
vt 0.500000 0.029412
vt 0.970588 0.029412
vt 0.970588 0.500000
vt 0.500000 0.500000
vt 0.014706 0.985294
vt 0.014706 0.514706
vt 0.029412 0.529412
vt 0.029412 0.970588
vt 0.985294 0.500000
vt 0.985294 0.029412
vt 0.500000 0.514706
vt 0.970588 0.514706
vt 0.485294 0.029412
vt 0.485294 0.500000
vt 0.970588 0.014706
vt 0.500000 0.014706
vt 0.470588 0.970588
vt 0.470588 0.529412
vt 0.485294 0.514706
vt 0.485294 0.985294
usemtl Material
s off
f 1/1 2/2 3/3 4/4
f 8/5 7/6 11/7 12/8
f 1/9 5/3 6/2 2/10
f 2/11 6/4 7/3 3/12
f 3/13 7/1 8/4 4/14
f 5/15 1/2 4/1 8/16
f 9/17 12/8 11/7 10/18
f 7/6 6/19 10/18 11/7
f 5/20 8/5 12/8 9/17
f 6/19 5/20 9/17 10/18

View File

@ -22,15 +22,9 @@ for i in ipairs(materials) do
minetest.register_node("homedecor:"..m.."_table_small_square", { minetest.register_node("homedecor:"..m.."_table_small_square", {
description = S(d.." Table (Small, Square)"), description = S(d.." Table (Small, Square)"),
drawtype = 'nodebox', drawtype = 'mesh',
tiles = { mesh = "homedecor_table_small_square.obj",
'homedecor_'..m..'_table_small_square_tb.png', tiles = { 'homedecor_'..m..'_table_small_square.png' },
'homedecor_'..m..'_table_small_square_tb.png',
'homedecor_'..m..'_table_small_square_edges.png',
'homedecor_'..m..'_table_small_square_edges.png',
'homedecor_'..m..'_table_small_square_edges.png',
'homedecor_'..m..'_table_small_square_edges.png'
},
wield_image = 'homedecor_'..m..'_table_small_square_tb.png', wield_image = 'homedecor_'..m..'_table_small_square_tb.png',
inventory_image = 'homedecor_'..m..'_table_small_square_tb.png', inventory_image = 'homedecor_'..m..'_table_small_square_tb.png',
sunlight_propagates = true, sunlight_propagates = true,
@ -39,14 +33,6 @@ for i in ipairs(materials) do
groups = { snappy = 3 }, groups = { snappy = 3 },
sounds = s, sounds = s,
paramtype2 = "facedir", paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
{ -0.4375, -0.5, -0.5, 0.4375, -0.4375, 0.5 },
{ -0.5, -0.5, -0.4375, 0.5, -0.4375, 0.4375 }
},
},
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = { -0.5, -0.5, -0.5, 0.5, -0.4375, 0.5 }, fixed = { -0.5, -0.5, -0.5, 0.5, -0.4375, 0.5 },

Binary file not shown.

After

Width:  |  Height:  |  Size: 592 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 285 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 193 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 708 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1011 B