From 7f7ba92bc8e72d7f2eeeb9794bea06576a78c869 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Sun, 26 Apr 2015 23:23:45 -0400 Subject: [PATCH] use mesh node for cd/dvd cabinet --- homedecor/misc-nodes.lua | 21 +-- homedecor/models/homedecor_dvd_cabinet.obj | 137 ++++++++++++++++++ .../textures/homedecor_dvdcd_cabinet_back.png | Bin 515 -> 501 bytes .../homedecor_dvdcd_cabinet_front.png | Bin 625 -> 705 bytes .../homedecor_dvdcd_cabinet_sides.png | Bin 151 -> 0 bytes .../textures/homedecor_dvdcd_cabinet_top.png | Bin 171 -> 0 bytes 6 files changed, 140 insertions(+), 18 deletions(-) create mode 100644 homedecor/models/homedecor_dvd_cabinet.obj delete mode 100644 homedecor/textures/homedecor_dvdcd_cabinet_sides.png delete mode 100644 homedecor/textures/homedecor_dvdcd_cabinet_top.png diff --git a/homedecor/misc-nodes.lua b/homedecor/misc-nodes.lua index da8dac0f..663da5d9 100644 --- a/homedecor/misc-nodes.lua +++ b/homedecor/misc-nodes.lua @@ -236,26 +236,11 @@ homedecor.register("cardboard_box", { homedecor.register("dvd_cd_cabinet", { description = "DVD/CD cabinet", + mesh = "homedecor_dvd_cabinet.obj", tiles = { - "homedecor_dvdcd_cabinet_top.png", - "homedecor_dvdcd_cabinet_top.png", - "homedecor_dvdcd_cabinet_sides.png", - "homedecor_dvdcd_cabinet_sides.png^[transformFX", - "homedecor_dvdcd_cabinet_back.png", + "default_wood.png", "homedecor_dvdcd_cabinet_front.png", - }, - node_box = { - type = "fixed", - fixed = { - {-0.5, -0.5, 0, -0.4375, 0.5, 0.5}, - {0.4375, -0.5, 0, 0.5, 0.5, 0.5}, - {-0.0625, -0.5, 0, 0.0625, 0.5, 0.5}, - {-0.5, 0.4375, 0, 0.5, 0.5, 0.5}, - {-0.5, -0.5, 0, 0.5, -0.4375, 0.5}, - {-0.5, -0.5, 0.0625, 0.5, 0.5, 0.4375}, - {-0.375, -0.5, 0.02756, -0.125, 0.5, 0.5}, - {0.125, -0.5, 0.01217, 0.375, 0.5, 0.5}, - } + "homedecor_dvdcd_cabinet_back.png" }, selection_box = homedecor.nodebox.slab_z(0.5), groups = {choppy=2,oddly_breakable_by_hand=2,flammable=3}, diff --git a/homedecor/models/homedecor_dvd_cabinet.obj b/homedecor/models/homedecor_dvd_cabinet.obj new file mode 100644 index 00000000..09fc2920 --- /dev/null +++ b/homedecor/models/homedecor_dvd_cabinet.obj @@ -0,0 +1,137 @@ +# Blender v2.73 (sub 0) OBJ File: 'dvd-cabinet.blend' +# www.blender.org +o Cylinder +v -0.500000 -0.500000 0.500000 +v -0.500000 -0.500000 0.000000 +v 0.500000 -0.500000 0.000000 +v 0.500000 -0.500000 0.500000 +v -0.500000 0.500000 0.500000 +v -0.500000 0.500000 0.000000 +v 0.500000 0.500000 0.000000 +v 0.500000 0.500000 0.500000 +v 0.437500 -0.500000 0.000000 +v 0.437500 -0.500000 0.500000 +v 0.437500 0.500000 0.000000 +v 0.437500 0.500000 0.500000 +v -0.437500 -0.500000 0.500000 +v -0.437500 -0.500000 0.000000 +v -0.437500 0.500000 0.500000 +v -0.437500 0.500000 0.000000 +v -0.437500 0.437500 0.500000 +v -0.437500 0.437500 0.000000 +v 0.437500 0.437500 0.000000 +v 0.437500 0.437500 0.500000 +v 0.437500 -0.437500 0.000000 +v 0.437500 -0.437500 0.500000 +v -0.437500 -0.437500 0.500000 +v -0.437500 -0.437500 0.000000 +v -0.375000 0.437500 0.062500 +v -0.375000 -0.437500 0.062500 +v -0.437500 -0.437500 0.062500 +v 0.437500 -0.437500 0.062500 +v 0.437500 0.437500 0.062500 +v -0.437500 0.437500 0.062500 +v 0.062500 -0.437500 0.000000 +v 0.062500 0.437500 0.000000 +v -0.062500 -0.437500 0.000000 +v -0.062500 0.437500 0.000000 +v 0.375000 -0.437500 0.062500 +v 0.375000 0.437500 0.062500 +v -0.375000 0.437500 0.031250 +v -0.375000 -0.437500 0.031250 +v 0.375000 -0.437500 0.031250 +v 0.375000 0.437500 0.031250 +v 0.125000 -0.437500 0.031250 +v 0.125000 0.437500 0.031250 +v -0.125000 -0.437500 0.031250 +v -0.125000 0.437500 0.031250 +v 0.125000 -0.437500 0.062500 +v 0.125000 0.437500 0.062500 +v -0.125000 -0.437500 0.062500 +v -0.125000 0.437500 0.062500 +v 0.062500 -0.437500 0.062500 +v 0.062500 0.437500 0.062500 +v -0.062500 -0.437500 0.062500 +v -0.062500 0.437500 0.062500 +v 0.062500 0.437500 0.500000 +v 0.062500 -0.437500 0.500000 +v -0.062500 0.437500 0.500000 +v -0.062500 -0.437500 0.500000 +vt 1.000000 0.250000 +vt 1.000000 0.750000 +vt 0.000000 0.750000 +vt 0.000000 0.250000 +vt 0.937500 0.062500 +vt 0.562500 0.062500 +vt 0.437500 0.062500 +vt 0.062500 0.062500 +vt 0.062500 0.000000 +vt 0.937500 0.000000 +vt 0.000000 0.000000 +vt 0.062500 1.000000 +vt 0.000000 1.000000 +vt 0.937500 0.937500 +vt 0.937500 1.000000 +vt 0.062500 0.937500 +vt 0.437500 0.937500 +vt 0.562500 0.937500 +vt 1.000000 0.000000 +vt 1.000000 1.000000 +vt 0.875000 0.937500 +vt 0.875000 0.062500 +vt 0.125000 0.062500 +vt 0.125000 0.937500 +vt 0.625000 0.937500 +vt 0.625000 0.062500 +vt 0.375000 0.937500 +vt 0.375000 0.062500 +vt 0.812500 0.062500 +vt 0.812500 0.937500 +vt 0.187500 0.937500 +vt 0.187500 0.062500 +vt 0.312500 0.937500 +vt 0.312500 0.062500 +vt 0.687500 0.937500 +vt 0.687500 0.062500 +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_sides +s off +f 5/1/1 6/2/1 2/3/1 1/4/1 +f 7/3/2 8/4/2 4/1/2 3/2/2 +f 1/1/3 2/2/3 3/3/3 4/4/3 +f 8/1/4 7/2/4 6/3/4 5/4/4 +f 24/5/5 33/6/5 31/7/5 21/8/5 9/9/5 14/10/5 +f 3/11/5 9/9/5 11/12/5 7/13/5 +f 18/14/5 16/15/5 11/12/5 19/16/5 32/17/5 34/18/5 +f 2/19/5 6/20/5 16/15/5 14/10/5 +f 5/13/6 1/11/6 13/9/6 15/12/6 +f 4/19/6 8/20/6 12/15/6 10/10/6 +f 17/16/6 20/14/6 12/15/6 15/12/6 +f 23/8/6 13/9/6 10/10/6 22/5/6 +f 24/5/2 18/14/2 30/21/2 27/22/2 +f 19/16/1 21/8/1 28/23/1 29/24/1 +f 30/11/3 18/19/3 19/20/3 29/13/3 +f 24/11/4 27/19/4 28/20/4 21/13/4 +f 52/25/1 34/18/1 33/6/1 51/26/1 +f 33/6/5 34/18/5 32/17/5 31/7/5 +f 50/27/2 49/28/2 31/7/2 32/17/2 +f 56/7/6 54/6/6 53/18/6 55/17/6 +g Cylinder_Cylinder_front +f 27/5/5 30/14/5 25/21/5 26/22/5 +f 36/24/5 29/16/5 28/8/5 35/23/5 +f 37/21/1 38/22/1 26/29/1 25/30/1 +f 40/31/2 36/24/2 35/23/2 39/32/2 +f 42/27/5 40/24/5 39/23/5 41/28/5 +f 43/26/5 38/22/5 37/21/5 44/25/5 +f 46/33/1 42/27/1 41/28/1 45/34/1 +f 44/35/2 48/25/2 47/26/2 43/36/2 +f 50/17/5 46/27/5 45/28/5 49/7/5 +f 48/25/5 52/18/5 51/6/5 47/26/5 +g Cylinder_Cylinder_back +f 23/8/6 56/7/6 55/17/6 17/16/6 +f 54/6/6 22/5/6 20/14/6 53/18/6 diff --git a/homedecor/textures/homedecor_dvdcd_cabinet_back.png b/homedecor/textures/homedecor_dvdcd_cabinet_back.png index ac60f928d535c27dbfb57ebc43a73f96c82691c0..f9241083218589b6fece566c752ac4f5009c7eb5 100644 GIT binary patch delta 302 zcmV+}0nz@01oZ=uBnaV9OjJbx005CGSCNAu5{Ze4ii(PijEs$qjgOCykdTm(ygz@l zv$M3cw6?akx3{;sxw*W&yu`%BXTX(O0002bNklr^%Hp!WAcMh&2M`Z?`rBJ(*B(f|yprB^0U5-N7{ zK+WeoY!axucJwy@UfGJP4+1R}3RZsvp8CVFnIlkMIwGh5U9}PJGlBfvSz5FdSr8>{ zsInE~9HF5pm9e7h(?~|4nPpo^Mys$>P8-}p?CTRb>T=vZEWfCJcWX!Ip|fgaiLl5+nx#-YDU*_L>5XIsW%SNnJyI4M6a5Wh3?W8@&AfMu1xz-K zlWhdsjq%*V>Uj*D5SVA04R!USBx;dnIH$9CTC?7z>C`ei02R~~)ByiZFl3a)W?(1) P015yANkvXXu0mjfPOFq1 diff --git a/homedecor/textures/homedecor_dvdcd_cabinet_front.png b/homedecor/textures/homedecor_dvdcd_cabinet_front.png index 0b63194ac089a8543622b8178a52ee341c99a65a..b155633c71e72798a0d5d2283353f4f7df7efed5 100644 GIT binary patch delta 692 zcmV;l0!#hz1i=N68Gi!+001a04^sdD0ijS#R7C&)06RN7JUl!-Jv~7|K}AJHM@L6V zNl8mfOH52mO-)TsPEJrzP*G7)Qc_Y=Q&Ut_R8>_~R#sM5S65kCSz20JTU%RPTwGmU zU0z;ZVPRoyV`y$>WVBG7bZumyV2x{ZYJqKbbaQBQbaabtf`651l!9_~e{^$;X}ytZ zrh9j3igb91cx82ai-UKKfq8*`dVq{|kBxVJmUeWRaHv>@kb`@Gk9Uc^XQYmJhk1X2 zo^qCXe~G=xQYk&Qwupza1S0L8#*Yhj>w*LW=-sACT8lZJrzRn5Xg~J=Eb-uE)f&p-f^}EbrdrLZbyD#bW`e)I_n^2>P zE~I2Dw}&-=!AD3}?-eCw(_EqMfE*6F@woQ%;Pd%lqYwve44p;@rBFnUBDjMIfUi#=2IbAKRidKq$Z*5} xY-(37#Zv_`A$(#5tpk3v*zhFyA-(ip+J7T=XOB!mC} diff --git a/homedecor/textures/homedecor_dvdcd_cabinet_sides.png b/homedecor/textures/homedecor_dvdcd_cabinet_sides.png deleted file mode 100644 index 3dea0db3054dd7cfdac302f5c8edc609acf3f932..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 151 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!73?$#)eFPE^3h)VW1=7*(nhD-I9hv46i(NK# z2W^-kF9;NM@N{tu;fPL7U|@0%7ETm6EAT>U4NvL}je`8;6>+WbZ?s$whpPH}Y6g7#OZ6@yXnks<;6(i^0>?&t;ucLK6T7I4WZR diff --git a/homedecor/textures/homedecor_dvdcd_cabinet_top.png b/homedecor/textures/homedecor_dvdcd_cabinet_top.png deleted file mode 100644 index 22d1a382278acaa89da4fdbf8d486e6292a031b1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 171 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!73?$#)eFPHV5AX?bjds^e@YdONBd