From 885e838b5705862cb42b61afa45a2396e5e2860f Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Tue, 31 Mar 2015 02:12:42 -0400 Subject: [PATCH] use mesh node for towel on rod --- homedecor/bathroom_furniture.lua | 30 +- homedecor/models/homedecor_towel_rod.mtl | 31 ++ homedecor/models/homedecor_towel_rod.obj | 274 ++++++++++++++++++ .../textures/homedecor_generic_terrycloth.png | Bin 0 -> 620 bytes .../textures/homedecor_towel_rod_bottom.png | Bin 173 -> 0 bytes homedecor/textures/homedecor_towel_rod_fb.png | Bin 353 -> 0 bytes .../textures/homedecor_towel_rod_sides.png | Bin 152 -> 0 bytes .../textures/homedecor_towel_rod_top.png | Bin 192 -> 0 bytes 8 files changed, 315 insertions(+), 20 deletions(-) create mode 100644 homedecor/models/homedecor_towel_rod.mtl create mode 100644 homedecor/models/homedecor_towel_rod.obj create mode 100644 homedecor/textures/homedecor_generic_terrycloth.png delete mode 100644 homedecor/textures/homedecor_towel_rod_bottom.png delete mode 100644 homedecor/textures/homedecor_towel_rod_fb.png delete mode 100644 homedecor/textures/homedecor_towel_rod_sides.png delete mode 100644 homedecor/textures/homedecor_towel_rod_top.png diff --git a/homedecor/bathroom_furniture.lua b/homedecor/bathroom_furniture.lua index 50c17316..b844dbbd 100644 --- a/homedecor/bathroom_furniture.lua +++ b/homedecor/bathroom_furniture.lua @@ -30,30 +30,20 @@ for i in ipairs(bathroom_tile_colors) do }) end +local tr_cbox = { + type = "fixed", + fixed = { -0.375, -0.3125, 0.25, 0.375, 0.375, 0.5 } +} + homedecor.register("towel_rod", { description = "Towel rod with towel", + mesh = "homedecor_towel_rod.obj", tiles = { - "homedecor_towel_rod_top.png", - "homedecor_towel_rod_bottom.png", - "homedecor_towel_rod_sides.png", - "homedecor_towel_rod_sides.png^[transformFX", - "homedecor_towel_rod_fb.png", - "homedecor_towel_rod_fb.png" - }, - node_box = { - type = "fixed", - fixed = { - {-0.375, 0.1875, 0.25, -0.3125, 0.375, 0.5}, - { 0.3125, 0.1875, 0.25, 0.375, 0.375, 0.5}, - {-0.3125, 0.25, 0.3125, 0.3125, 0.375, 0.375}, - {-0.3125, 0, 0.375, 0.3125, 0.34375, 0.4375}, - {-0.3125, -0.3125, 0.25, 0.3125, 0.34375, 0.3125}, - } - }, - selection_box = { - type = "fixed", - fixed = { -0.375, -0.3125, 0.25, 0.375, 0.375, 0.5 } + "homedecor_generic_terrycloth.png", + "default_wood.png", }, + selection_box = tr_cbox, + collision_box = tr_cbox, groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3}, sounds = default.node_sound_defaults(), }) diff --git a/homedecor/models/homedecor_towel_rod.mtl b/homedecor/models/homedecor_towel_rod.mtl new file mode 100644 index 00000000..0a1339d7 --- /dev/null +++ b/homedecor/models/homedecor_towel_rod.mtl @@ -0,0 +1,31 @@ +# Blender MTL File: 'towel-rod.blend' +# Material Count: 3 + +newmtl none +Ns 96.078431 +Ka 0.000000 0.000000 0.000000 +Kd 0.640000 0.640000 0.640000 +Ks 0.500000 0.500000 0.500000 +Ni 1.000000 +d 1.000000 +illum 2 + +newmtl towel +Ns 96.078431 +Ka 0.000000 0.000000 0.000000 +Kd 0.800000 0.800000 0.800000 +Ks 0.500000 0.500000 0.500000 +Ni 1.000000 +d 1.000000 +illum 2 +map_Kd /home/vanessa/Minetest-related/mods/my_mods/homedecor_modpack/homedecor/textures/homedecor_generic_terrycloth.png + +newmtl wood +Ns 96.078431 +Ka 0.000000 0.000000 0.000000 +Kd 0.140660 0.071954 0.022368 +Ks 0.500000 0.500000 0.500000 +Ni 1.000000 +d 1.000000 +illum 2 +map_Kd /home/vanessa/Minetest-related/games/minetest_game/mods/default/textures/default_wood.png diff --git a/homedecor/models/homedecor_towel_rod.obj b/homedecor/models/homedecor_towel_rod.obj new file mode 100644 index 00000000..f3194359 --- /dev/null +++ b/homedecor/models/homedecor_towel_rod.obj @@ -0,0 +1,274 @@ +# Blender v2.73 (sub 0) OBJ File: 'towel-rod.blend' +# www.blender.org +o Cube +v -0.500000 0.250000 0.437500 +v -0.500000 0.250000 0.250000 +v -0.437500 0.250000 0.250000 +v -0.437500 0.250000 0.437500 +v -0.500000 0.312500 0.437500 +v -0.500000 0.312500 0.250000 +v -0.437500 0.312500 0.250000 +v -0.437500 0.312500 0.437500 +v -0.500000 0.187500 0.500000 +v -0.500000 0.187500 0.437500 +v -0.437500 0.187500 0.437500 +v -0.437500 0.187500 0.500000 +v -0.500000 0.375000 0.500000 +v -0.500000 0.375000 0.437500 +v -0.437500 0.375000 0.437500 +v -0.437500 0.375000 0.500000 +v 0.437500 0.250000 0.437500 +v 0.437500 0.250000 0.250000 +v 0.500000 0.250000 0.250000 +v 0.500000 0.250000 0.437500 +v 0.437500 0.312500 0.437500 +v 0.437500 0.312500 0.250000 +v 0.500000 0.312500 0.250000 +v 0.500000 0.312500 0.437500 +v 0.437500 0.187500 0.500000 +v 0.437500 0.187500 0.437500 +v 0.500000 0.187500 0.437500 +v 0.500000 0.187500 0.500000 +v 0.437500 0.375000 0.500000 +v 0.437500 0.375000 0.437500 +v 0.500000 0.375000 0.437500 +v 0.500000 0.375000 0.500000 +v -0.437500 0.250000 0.312500 +v -0.437500 0.250000 0.250000 +v 0.437500 0.250000 0.250000 +v 0.437500 0.250000 0.312500 +v -0.437500 -0.312500 0.250000 +v -0.437500 -0.312500 0.218750 +v 0.437500 -0.312500 0.218750 +v 0.437500 -0.312500 0.250000 +v -0.437500 0.312500 0.250000 +v -0.437500 0.312500 0.218750 +v 0.437500 0.312500 0.218750 +v 0.437500 0.312500 0.250000 +v -0.437500 0.000000 0.343750 +v -0.437500 0.000000 0.312500 +v 0.437500 0.000000 0.312500 +v 0.437500 0.000000 0.343750 +v -0.437500 0.312500 0.343750 +v -0.437500 0.312500 0.312500 +v 0.437500 0.312500 0.312500 +v 0.437500 0.312500 0.343750 +v -0.437500 0.343750 0.250000 +v 0.437500 0.343750 0.250000 +v -0.437500 0.343750 0.312500 +v 0.437500 0.343750 0.312500 +vt 1.000000 0.875000 +vt 0.000000 0.875000 +vt 0.000000 0.187500 +vt 1.000000 0.187500 +vt 0.062500 0.125000 +vt 0.062500 0.062500 +vt 0.937500 0.062500 +vt 0.937500 0.125000 +vt 0.000000 0.562500 +vt 1.000000 0.562500 +vt 0.062500 0.250000 +vt 0.062500 0.187500 +vt 0.937500 0.187500 +vt 0.937500 0.250000 +vt 0.812500 0.562500 +vt 0.812500 0.875000 +vt 0.750000 0.875000 +vt 0.750000 0.562500 +vt 0.937500 0.875000 +vt 0.875000 0.875000 +vt 0.875000 0.187500 +vt 0.125000 0.187500 +vt 0.125000 0.875000 +vt 0.062500 0.875000 +vt 0.250000 0.562500 +vt 0.250000 0.875000 +vt 0.187500 0.875000 +vt 0.187500 0.562500 +vt 0.187500 0.937500 +vt 0.125000 0.937500 +vt 0.875000 0.937500 +vt 0.812500 0.937500 +vt 1.000000 0.937500 +vt -0.000000 0.937500 +vt 0.937500 0.375000 +vt 0.062500 0.375000 +vt 0.062500 0.312500 +vt 0.937500 0.312500 +vt 0.250000 0.250000 +vt 0.250000 0.187500 +vt 0.000000 0.250000 +vt 0.250000 0.062500 +vt 0.250000 0.125000 +vt 0.312500 0.062500 +vt 0.500000 0.062500 +vt 0.500000 0.125000 +vt 0.312500 0.125000 +vt 0.250000 0.312500 +vt 0.687500 0.750000 +vt 0.687500 0.812500 +vt 0.500000 0.812500 +vt 0.500000 0.750000 +vt 0.687500 0.875000 +vt 0.500000 0.875000 +vt 0.250000 0.812500 +vt 0.250000 0.750000 +vt 0.437500 0.750000 +vt 0.437500 0.812500 +vt 0.250000 0.687500 +vt 0.437500 0.687500 +vt 0.750000 0.750000 +vt 0.750000 0.812500 +vt 0.562500 0.250000 +vt 0.500000 0.250000 +vt 0.500000 0.187500 +vt 0.562500 0.187500 +vt 0.312500 0.250000 +vt 0.312500 0.187500 +vt 0.500000 0.312500 +vt 0.312500 0.312500 +vt 0.750000 0.500000 +vt 0.562500 0.562500 +vt 0.562500 0.500000 +vt 0.312500 0.625000 +vt 0.312500 0.562500 +vt 0.500000 0.562500 +vt 0.500000 0.625000 +vt 0.312500 0.500000 +vt 0.500000 0.500000 +vt 0.750000 0.437500 +vt 0.562500 0.437500 +vt 0.250000 0.500000 +vt 0.062500 1.000000 +vt 0.062500 0.937500 +vt 0.937500 0.937500 +vt 0.937500 1.000000 +vn 0.000000 0.000000 1.000000 +vn 0.000000 0.000000 -1.000000 +vn 0.000000 -1.000000 0.000000 +vn 1.000000 0.000000 0.000000 +vn -1.000000 0.000000 0.000000 +vn 0.000000 0.707100 -0.707100 +vn 0.000000 0.707100 0.707100 +vn 0.000000 1.000000 0.000000 +g Cube_Cube_towel +s off +f 44/1/1 41/2/1 37/3/1 40/4/1 +f 42/1/2 43/2/2 39/3/2 38/4/2 +f 37/5/3 38/6/3 39/7/3 40/8/3 +f 52/1/1 49/2/1 45/9/1 48/10/1 +f 50/1/2 51/2/2 47/9/2 46/10/2 +f 45/11/3 46/12/3 47/13/3 48/14/3 +f 47/15/4 51/16/4 52/17/4 48/18/4 +f 39/13/4 43/19/4 44/20/4 40/21/4 +f 37/22/5 41/23/5 42/24/5 38/12/5 +f 45/25/5 49/26/5 50/27/5 46/28/5 +f 55/29/5 50/27/5 49/26/5 +f 53/30/5 42/24/5 7/23/5 +f 54/31/4 22/20/4 43/19/4 +f 56/32/4 52/17/4 51/16/4 +f 53/33/6 54/34/6 43/2/6 42/1/6 +f 56/33/7 55/34/7 49/2/7 52/1/7 +f 56/32/4 51/16/4 44/20/4 54/31/4 +f 54/35/8 53/36/8 55/37/8 56/38/8 +f 53/30/5 41/23/5 50/27/5 55/29/5 +g Cube_Cube_wood +f 5/39/5 6/11/5 2/12/5 1/40/5 +f 6/11/2 7/41/2 3/3/2 2/12/2 +f 7/6/4 8/42/4 4/43/4 3/5/4 +f 21/44/5 22/45/5 18/46/5 17/47/5 +f 1/40/3 2/12/3 3/5/3 4/43/3 +f 8/48/8 7/37/8 6/11/8 5/39/8 +f 13/49/5 14/50/5 10/51/5 9/52/5 +f 14/50/2 15/53/2 11/54/2 10/51/2 +f 15/55/4 16/56/4 12/57/4 11/58/4 +f 16/56/1 13/59/1 9/60/1 12/57/1 +f 9/52/3 10/51/3 11/58/3 12/57/3 +f 16/61/8 15/62/8 14/50/8 13/49/8 +f 22/63/2 23/64/2 19/65/2 18/66/2 +f 23/64/4 24/67/4 20/68/4 19/65/4 +f 17/47/3 18/46/3 19/65/3 20/68/3 +f 24/67/8 23/64/8 22/69/8 21/70/8 +f 29/71/5 30/18/5 26/72/5 25/73/5 +f 30/74/2 31/75/2 27/76/2 26/77/2 +f 31/75/4 32/78/4 28/79/4 27/76/4 +f 32/80/1 29/71/1 25/73/1 28/81/1 +f 25/73/3 26/72/3 27/76/3 28/79/3 +f 32/78/8 31/75/8 30/25/8 29/82/8 +f 33/83/3 34/84/3 35/85/3 36/86/3 +o nodebox-5 +v 3.312500 0.250000 0.250000 +v 3.312500 0.250000 0.312500 +v 3.312500 0.375000 0.312500 +v 3.312500 0.375000 0.250000 +v 2.687500 0.250000 0.250000 +v 2.687500 0.250000 0.312500 +v 2.687500 0.375000 0.312500 +v 2.687500 0.375000 0.250000 +v 2.687500 0.187500 0.187500 +v 2.687500 0.187500 0.437500 +v 2.687500 0.375000 0.437500 +v 2.687500 0.375000 0.187500 +v 2.625000 0.187500 0.187500 +v 2.625000 0.187500 0.437500 +v 2.625000 0.375000 0.437500 +v 2.625000 0.375000 0.187500 +v 3.312500 -0.312500 0.187500 +v 3.312500 -0.312500 0.250000 +v 3.312500 0.343750 0.250000 +v 3.312500 0.343750 0.187500 +v 2.687500 -0.312500 0.187500 +v 2.687500 -0.312500 0.250000 +v 2.687500 0.343750 0.250000 +v 2.687500 0.343750 0.187500 +v 3.375000 0.187500 0.187500 +v 3.375000 0.187500 0.437500 +v 3.375000 0.375000 0.437500 +v 3.375000 0.375000 0.187500 +v 3.312500 0.187500 0.187500 +v 3.312500 0.187500 0.437500 +v 3.312500 0.375000 0.437500 +v 3.312500 0.375000 0.187500 +v 3.312500 -0.000000 0.312500 +v 3.312500 -0.000000 0.375000 +v 3.312500 0.343750 0.375000 +v 3.312500 0.343750 0.312500 +v 2.687500 -0.000000 0.312500 +v 2.687500 -0.000000 0.375000 +v 2.687500 0.343750 0.375000 +v 2.687500 0.343750 0.312500 +vn -1.000000 0.000000 0.000000 +vn 0.000000 -0.000000 1.000000 +vn 0.000000 -1.000000 0.000000 +g nodebox-5_nodebox-5_none +s off +f 57//9 58//9 59//9 60//9 +f 61//9 62//9 63//9 64//9 +f 57//10 60//10 64//10 61//10 +f 58//10 59//10 63//10 62//10 +f 57//11 58//11 62//11 61//11 +f 60//11 59//11 63//11 64//11 +f 65//9 66//9 67//9 68//9 +f 69//9 70//9 71//9 72//9 +f 65//10 68//10 72//10 69//10 +f 66//10 67//10 71//10 70//10 +f 65//11 66//11 70//11 69//11 +f 68//11 67//11 71//11 72//11 +f 73//9 74//9 75//9 76//9 +f 77//9 78//9 79//9 80//9 +f 73//10 76//10 80//10 77//10 +f 74//10 75//10 79//10 78//10 +f 73//11 74//11 78//11 77//11 +f 76//11 75//11 79//11 80//11 +f 81//9 82//9 83//9 84//9 +f 85//9 86//9 87//9 88//9 +f 81//10 84//10 88//10 85//10 +f 82//10 83//10 87//10 86//10 +f 81//11 82//11 86//11 85//11 +f 84//11 83//11 87//11 88//11 +f 89//9 90//9 91//9 92//9 +f 93//9 94//9 95//9 96//9 +f 89//10 92//10 96//10 93//10 +f 90//10 91//10 95//10 94//10 +f 89//11 90//11 94//11 93//11 +f 92//11 91//11 95//11 96//11 diff --git a/homedecor/textures/homedecor_generic_terrycloth.png b/homedecor/textures/homedecor_generic_terrycloth.png new file mode 100644 index 0000000000000000000000000000000000000000..840d7633b65dd152c08643e2eb6e160f4cea22ca GIT binary patch literal 620 zcmV-y0+aoTP)OOZDpghg|Ihl+i&xpX&PdTtm}$Wig})Se}CtGzoWILX&S^@OU{|D>(E-0b0&m5BC z_dU}zp?-dT$}kLEuUF3JGXTr7)R3GrT5FthOw+`^?-fx*P?yW4tm}$%u6|HT)vI@1 zhcTvxc3sEg@gV2S>+36WI-Tl)mStgG*UFbtBF4zq*B6h+1MfX4B~GUk)>=v_s2F33 zF=DM{-*=pIwE^!v<2WKB91aKOc_!z~v-+Gf0uVyLT8q{iV+=7y4u=CVM!fe`tPny) zJRXn#Tlo9?qiLFI+rIBSUnzx@64qL7w;RJSV67#_2*A3o$oYI`nkGbq7$YGB06srI zndcej97-v?_h_xzwyib=pmNUT$^2B=7(*$ArfG1_G0$^dVy&g`dqN0=5RmWhZ^m(C z7zRXyzVAsXp_IZo$L)4wSr*#1rSE$H#&Kj>7L-z$MpUXO@geCywpGu_w diff --git a/homedecor/textures/homedecor_towel_rod_fb.png b/homedecor/textures/homedecor_towel_rod_fb.png deleted file mode 100644 index 7e1019157154d090624413e0d7cecebfb3522108..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 353 zcmV-n0iOPeP)ltF zRej%EmKDb_Qef^6hXaB$;PLJ%Ns`@ehb6|o?^CerI`&~0YMSdxNdW9+ zSq6xr2w0LNLDP=o5UH+f7}s^dsL6i4UhnsNF;El*I*b)XVN;eR0R7N|0N^vm<2aIs zZ1gY;0~V+`3IO^uO%qE}p)(AlZCe`S$dm;D_S@|ivuT5_x9D!j`oiHc&#rb>1aJBKd#b*NkN3-a ya)))udt4~^_owobNzA^QnaBJV)jo1&W9V$SwD*t9uDd|17(8A5T-G@yGywp3#W@N9 diff --git a/homedecor/textures/homedecor_towel_rod_top.png b/homedecor/textures/homedecor_towel_rod_top.png deleted file mode 100644 index 60bb34da89118763fa85badfdd439d4975af7877..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 192 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61SBU+%rFB|?Vc`s`OlY^m;2@I>%P3W`276*^Yd)0zrVX1y*-cdrn=vp9Ys%1EqkXR!s}ocaCmR^ z_l8&Z_Ev9CKQE{7_+T@;1Ml&E`Th0(?Jl?gRY*5pa%i@%`&04x+1by}&&yktyg1y> q@1WeUsxhWSU69|+v?uETBSW#%