From 31bc60f0556a270c123d4caf3ae06430984232d2 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Sun, 26 Apr 2015 22:25:18 -0400 Subject: [PATCH] use mesh node for filing cabinet --- homedecor/misc-nodes.lua | 18 ++---- homedecor/models/homedecor_filing_cabinet.obj | 56 +++++++++++++++++++ 2 files changed, 60 insertions(+), 14 deletions(-) create mode 100644 homedecor/models/homedecor_filing_cabinet.obj diff --git a/homedecor/misc-nodes.lua b/homedecor/misc-nodes.lua index 728d38a..d1c598a 100644 --- a/homedecor/misc-nodes.lua +++ b/homedecor/misc-nodes.lua @@ -273,22 +273,12 @@ homedecor.register("dvd_cd_cabinet", { homedecor.register("filing_cabinet", { description = S("Filing Cabinet"), + mesh = "homedecor_filing_cabinet.obj", tiles = { - 'forniture_wood.png', - 'homedecor_filing_cabinet_bottom.png', - 'forniture_wood.png', - 'forniture_wood.png', - 'forniture_wood.png', - 'homedecor_filing_cabinet_front.png' + "forniture_wood.png", + "homedecor_filing_cabinet_front.png", + "homedecor_filing_cabinet_bottom.png" }, - selection_box = { type = "regular" }, - node_box = { - type = "fixed", - fixed = { - { -8/16, -8/16, -30/64, 8/16, 8/16, 8/16 }, -- main body - { -7/16, -7/16, -8/16, 7/16, 7/16, 8/16 }, -- drawer - } - }, groups = { snappy = 3 }, sounds = default.node_sound_wood_defaults(), infotext=S("Filing cabinet"), diff --git a/homedecor/models/homedecor_filing_cabinet.obj b/homedecor/models/homedecor_filing_cabinet.obj new file mode 100644 index 0000000..f4970df --- /dev/null +++ b/homedecor/models/homedecor_filing_cabinet.obj @@ -0,0 +1,56 @@ +# Blender v2.73 (sub 0) OBJ File: 'filing-cabinet.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.437500 -0.437500 -0.437500 +v 0.437500 -0.437500 -0.437500 +v -0.437500 0.437500 -0.437500 +v 0.437500 0.437500 -0.437500 +v -0.437500 -0.437500 -0.500000 +v 0.437500 -0.437500 -0.500000 +v -0.437500 0.437500 -0.500000 +v 0.437500 0.437500 -0.500000 +vt 1.000000 1.000000 +vt 0.000000 1.000000 +vt 0.000000 0.000000 +vt 1.000000 0.000000 +vt 0.937500 0.937500 +vt 0.062500 0.937500 +vt 0.062500 0.062500 +vt 0.937500 0.062500 +vt 0.937500 0.125000 +vt 0.062500 0.125000 +vt 0.125000 0.062500 +vt 0.125000 0.937500 +vt 0.062500 0.875000 +vt 0.937500 0.875000 +vt 0.875000 0.937500 +vt 0.875000 0.062500 +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 +g Cylinder_Cylinder_sides +s off +f 5/1/1 6/2/1 2/3/1 1/4/1 +f 6/1/2 7/2/2 3/3/2 2/4/2 +f 7/1/3 8/2/3 4/3/3 3/4/3 +f 8/1/4 5/2/4 1/3/4 4/4/4 +f 8/2/5 7/3/5 6/4/5 5/1/5 +g Cylinder_Cylinder_drawer +f 15/5/2 16/6/2 14/7/2 13/8/2 +f 10/7/6 9/8/6 13/9/6 14/10/6 +f 12/6/3 10/7/3 14/11/3 16/12/3 +f 11/5/5 12/6/5 16/13/5 15/14/5 +f 9/8/1 11/5/1 15/15/1 13/16/1 +g Cylinder_Cylinder_bottom +f 1/4/6 2/1/6 3/2/6 4/3/6