From 677a19acd1b17bf5aa981f94b51e6ec38d5e8353 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 26 Jul 2017 16:50:26 +0200 Subject: [PATCH] Use overhigh signs again --- mods/ITEMS/mcl_signs/init.lua | 10 +++-- ...cl_signs_1sign0.obj => mcl_signs_sign.obj} | 36 ++++++++--------- ...s_1sign22.5.obj => mcl_signs_sign22.5.obj} | 36 ++++++++--------- ...signs_1sign45.obj => mcl_signs_sign45.obj} | 36 ++++++++--------- ...s_1sign67.5.obj => mcl_signs_sign67.5.obj} | 38 +++++++++--------- .../mcl_signs/models/mcl_signs_signonwall.obj | 40 +++++++++++++++++++ 6 files changed, 119 insertions(+), 77 deletions(-) rename mods/ITEMS/mcl_signs/models/{mcl_signs_1sign0.obj => mcl_signs_sign.obj} (67%) rename mods/ITEMS/mcl_signs/models/{mcl_signs_1sign22.5.obj => mcl_signs_sign22.5.obj} (67%) rename mods/ITEMS/mcl_signs/models/{mcl_signs_1sign45.obj => mcl_signs_sign45.obj} (66%) rename mods/ITEMS/mcl_signs/models/{mcl_signs_1sign67.5.obj => mcl_signs_sign67.5.obj} (64%) create mode 100644 mods/ITEMS/mcl_signs/models/mcl_signs_signonwall.obj diff --git a/mods/ITEMS/mcl_signs/init.lua b/mods/ITEMS/mcl_signs/init.lua index 2fd12997..a969d24c 100644 --- a/mods/ITEMS/mcl_signs/init.lua +++ b/mods/ITEMS/mcl_signs/init.lua @@ -140,6 +140,8 @@ local m = -1/16 + 1/64 for rot=0, 15 do local yaw = math.pi*2 - (((math.pi*2) / 16) * rot) local delta = vector.multiply(minetest.yaw_to_dir(yaw), m) + -- Offset because sign is a bit above node boundaries + delta.y = delta.y + 2/28 table.insert(signtext_info_standing, { delta = delta, yaw = yaw }) end @@ -381,7 +383,7 @@ local ssign = { is_ground_content = false, paramtype2 = "facedir", drawtype = "mesh", - mesh = "mcl_signs_1sign0.obj", + mesh = "mcl_signs_sign.obj", selection_box = {type = "fixed", fixed = {-0.2, -0.5, -0.2, 0.2, 0.5, 0.2}}, tiles = {"mcl_signs_sign.png"}, groups = sign_groups, @@ -403,17 +405,17 @@ local ssign = { -- 22.5° minetest.register_node("mcl_signs:standing_sign", ssign) local ssign22_5 = table.copy(ssign) -ssign22_5.mesh = "mcl_signs_1sign22.5.obj" +ssign22_5.mesh = "mcl_signs_sign22.5.obj" -- 45° minetest.register_node("mcl_signs:standing_sign22_5", ssign22_5) local ssign45 = table.copy(ssign) -ssign45.mesh = "mcl_signs_1sign45.obj" +ssign45.mesh = "mcl_signs_sign45.obj" minetest.register_node("mcl_signs:standing_sign45", ssign45) -- 67.5° local ssign67 = table.copy(ssign) -ssign67.mesh = "mcl_signs_1sign67.5.obj" +ssign67.mesh = "mcl_signs_sign67.5.obj" minetest.register_node("mcl_signs:standing_sign67_5", ssign67) diff --git a/mods/ITEMS/mcl_signs/models/mcl_signs_1sign0.obj b/mods/ITEMS/mcl_signs/models/mcl_signs_sign.obj similarity index 67% rename from mods/ITEMS/mcl_signs/models/mcl_signs_1sign0.obj rename to mods/ITEMS/mcl_signs/models/mcl_signs_sign.obj index 9ffba988..00d0d415 100644 --- a/mods/ITEMS/mcl_signs/models/mcl_signs_1sign0.obj +++ b/mods/ITEMS/mcl_signs/models/mcl_signs_sign.obj @@ -1,23 +1,23 @@ -# Blender v2.76 (sub 0) OBJ File: '1sign0.blend' +# Blender v2.76 (sub 0) OBJ File: 'sign.blend' # www.blender.org -mtllib 1sign0.mtl +mtllib sign.mtl o wood_Cube.001 -v 0.461724 0.038277 -0.038477 -v 0.461724 0.500000 -0.038477 -v 0.461724 0.038277 0.038477 -v 0.461724 0.500000 0.038477 -v -0.461724 0.038277 -0.038477 -v -0.461724 0.500000 -0.038477 -v -0.461724 0.038277 0.038477 -v -0.461724 0.500000 0.038477 -v 0.038477 -0.499999 -0.038477 -v 0.038477 0.038679 -0.038477 -v 0.038477 -0.499999 0.038477 -v 0.038477 0.038679 0.038477 -v -0.038477 -0.499999 -0.038477 -v -0.038477 0.038679 -0.038477 -v -0.038477 -0.499999 0.038477 -v -0.038477 0.038679 0.038477 +v 0.499985 0.082879 -0.041665 +v 0.499985 0.582864 -0.041665 +v 0.499985 0.082879 0.041666 +v 0.499985 0.582864 0.041666 +v -0.499985 0.082879 -0.041666 +v -0.499985 0.582864 -0.041666 +v -0.499985 0.082879 0.041665 +v -0.499985 0.582864 0.041665 +v 0.041665 -0.500001 -0.041665 +v 0.041665 0.083315 -0.041665 +v 0.041665 -0.500001 0.041665 +v 0.041665 0.083315 0.041665 +v -0.041665 -0.500001 -0.041665 +v -0.041665 0.083315 -0.041665 +v -0.041665 -0.500001 0.041665 +v -0.041665 0.083315 0.041665 vt 0.031250 0.562500 vt 0.031250 0.937500 vt 0.000000 0.937500 diff --git a/mods/ITEMS/mcl_signs/models/mcl_signs_1sign22.5.obj b/mods/ITEMS/mcl_signs/models/mcl_signs_sign22.5.obj similarity index 67% rename from mods/ITEMS/mcl_signs/models/mcl_signs_1sign22.5.obj rename to mods/ITEMS/mcl_signs/models/mcl_signs_sign22.5.obj index d502db79..7d38aa87 100644 --- a/mods/ITEMS/mcl_signs/models/mcl_signs_1sign22.5.obj +++ b/mods/ITEMS/mcl_signs/models/mcl_signs_sign22.5.obj @@ -1,23 +1,23 @@ -# Blender v2.76 (sub 0) OBJ File: '1sign22.5.blend' +# Blender v2.76 (sub 0) OBJ File: 'sign 22.5.blend' # www.blender.org -mtllib 1sign22.5.mtl +mtllib sign 22.5.mtl o wood_Cube.001 -v 0.441302 0.038277 0.141146 -v 0.441302 0.500000 0.141146 -v 0.411853 0.038277 0.212242 -v 0.411853 0.500000 0.212242 -v -0.411853 0.038277 -0.212242 -v -0.411853 0.500000 -0.212242 -v -0.441302 0.038277 -0.141146 -v -0.441302 0.500000 -0.141146 -v 0.050273 -0.499999 -0.020824 -v 0.050273 0.038679 -0.020824 -v 0.020824 -0.499999 0.050273 -v 0.020824 0.038679 0.050273 -v -0.020824 -0.499999 -0.050273 -v -0.020824 0.038679 -0.050273 -v -0.050273 -0.499999 0.020824 -v -0.050273 0.038679 0.020824 +v 0.477871 0.082879 0.152842 +v 0.477871 0.582864 0.152842 +v 0.445982 0.082879 0.229830 +v 0.445982 0.582864 0.229830 +v -0.445982 0.082879 -0.229830 +v -0.445982 0.582864 -0.229830 +v -0.477871 0.082879 -0.152842 +v -0.477871 0.582864 -0.152842 +v 0.054439 -0.500001 -0.022549 +v 0.054439 0.083315 -0.022549 +v 0.022549 -0.500001 0.054439 +v 0.022549 0.083315 0.054439 +v -0.022549 -0.500001 -0.054439 +v -0.022549 0.083315 -0.054439 +v -0.054439 -0.500001 0.022549 +v -0.054439 0.083315 0.022549 vt 0.031250 0.562500 vt 0.031250 0.937500 vt 0.000000 0.937500 diff --git a/mods/ITEMS/mcl_signs/models/mcl_signs_1sign45.obj b/mods/ITEMS/mcl_signs/models/mcl_signs_sign45.obj similarity index 66% rename from mods/ITEMS/mcl_signs/models/mcl_signs_1sign45.obj rename to mods/ITEMS/mcl_signs/models/mcl_signs_sign45.obj index 59f03930..4ab4ffa9 100644 --- a/mods/ITEMS/mcl_signs/models/mcl_signs_1sign45.obj +++ b/mods/ITEMS/mcl_signs/models/mcl_signs_sign45.obj @@ -1,23 +1,23 @@ -# Blender v2.76 (sub 0) OBJ File: '1sign45.blend' +# Blender v2.76 (sub 0) OBJ File: 'mcl_signs_sign45.blend' # www.blender.org -mtllib 1sign45.mtl +mtllib mcl_signs_sign45.mtl o wood_Cube.001 -v 0.353695 0.038277 0.299281 -v 0.353695 0.500000 0.299281 -v 0.299281 0.038277 0.353696 -v 0.299281 0.500000 0.353696 -v -0.299281 0.038277 -0.353696 -v -0.299281 0.500000 -0.353696 -v -0.353695 0.038277 -0.299281 -v -0.353695 0.500000 -0.299281 -v 0.054415 -0.499999 0.000000 -v 0.054415 0.038679 0.000000 -v -0.000000 -0.499999 0.054415 -v -0.000000 0.038679 0.054415 -v 0.000000 -0.499999 -0.054415 -v 0.000000 0.038679 -0.054415 -v -0.054415 -0.499999 -0.000000 -v -0.054415 0.038679 -0.000000 +v 0.383005 0.082879 0.324081 +v 0.383005 0.582864 0.324081 +v 0.324081 0.082879 0.383005 +v 0.324081 0.582864 0.383005 +v -0.324081 0.082879 -0.383005 +v -0.324081 0.582864 -0.383005 +v -0.383005 0.082879 -0.324081 +v -0.383005 0.582864 -0.324081 +v 0.058924 -0.500001 0.000000 +v 0.058924 0.083315 0.000000 +v -0.000000 -0.500001 0.058924 +v -0.000000 0.083315 0.058924 +v 0.000000 -0.500001 -0.058924 +v 0.000000 0.083315 -0.058924 +v -0.058924 -0.500001 -0.000000 +v -0.058924 0.083315 -0.000000 vt 0.031250 0.562500 vt 0.031250 0.937500 vt 0.000000 0.937500 diff --git a/mods/ITEMS/mcl_signs/models/mcl_signs_1sign67.5.obj b/mods/ITEMS/mcl_signs/models/mcl_signs_sign67.5.obj similarity index 64% rename from mods/ITEMS/mcl_signs/models/mcl_signs_1sign67.5.obj rename to mods/ITEMS/mcl_signs/models/mcl_signs_sign67.5.obj index e2ae06b4..314a4853 100644 --- a/mods/ITEMS/mcl_signs/models/mcl_signs_1sign67.5.obj +++ b/mods/ITEMS/mcl_signs/models/mcl_signs_sign67.5.obj @@ -1,23 +1,23 @@ -# Blender v2.76 (sub 0) OBJ File: '1sign67.5.blend' +# Blender v2.76 (sub 0) OBJ File: 'mcl_signs_sign67.5.blend' # www.blender.org -mtllib 1sign67.5.mtl +mtllib mcl_signs_sign67.5.mtl o wood_Cube.001 -v 0.212242 0.038277 0.411853 -v 0.212242 0.500000 0.411853 -v 0.141146 0.038277 0.441302 -v 0.141146 0.500000 0.441302 -v -0.141146 0.038277 -0.441302 -v -0.141146 0.500000 -0.441302 -v -0.212242 0.038277 -0.411853 -v -0.212242 0.500000 -0.411853 -v 0.050273 -0.499999 0.020824 -v 0.050273 0.038679 0.020824 -v -0.020824 -0.499999 0.050273 -v -0.020824 0.038679 0.050273 -v 0.020824 -0.499999 -0.050273 -v 0.020824 0.038679 -0.050273 -v -0.050273 -0.499999 -0.020824 -v -0.050273 0.038679 -0.020824 +v 0.229830 0.082879 0.445982 +v 0.229830 0.582864 0.445982 +v 0.152842 0.082879 0.477871 +v 0.152842 0.582864 0.477871 +v -0.152842 0.082879 -0.477871 +v -0.152842 0.582864 -0.477871 +v -0.229830 0.082879 -0.445982 +v -0.229830 0.582864 -0.445982 +v 0.054439 -0.500001 0.022549 +v 0.054439 0.083315 0.022549 +v -0.022549 -0.500001 0.054439 +v -0.022549 0.083315 0.054439 +v 0.022549 -0.500001 -0.054439 +v 0.022549 0.083315 -0.054439 +v -0.054439 -0.500001 -0.022549 +v -0.054439 0.083315 -0.022549 vt 0.031250 0.562500 vt 0.031250 0.937500 vt 0.000000 0.937500 @@ -48,7 +48,7 @@ vn 0.382700 0.000000 0.923900 vn -0.923900 0.000000 0.382700 vn -0.382700 0.000000 -0.923900 vn 0.923900 0.000000 -0.382700 -vn 0.000000 -1.000000 -0.000000 +vn 0.000000 -1.000000 0.000000 vn 0.000000 1.000000 0.000000 usemtl None s off diff --git a/mods/ITEMS/mcl_signs/models/mcl_signs_signonwall.obj b/mods/ITEMS/mcl_signs/models/mcl_signs_signonwall.obj new file mode 100644 index 00000000..39567095 --- /dev/null +++ b/mods/ITEMS/mcl_signs/models/mcl_signs_signonwall.obj @@ -0,0 +1,40 @@ +# Blender v2.76 (sub 0) OBJ File: 'mcl_signs_signonwall.blend' +# www.blender.org +mtllib mcl_signs_signonwall.mtl +o wood_Cube.001 +v 0.499985 -0.249993 0.416671 +v 0.499985 0.249993 0.416671 +v 0.499985 -0.249993 0.500002 +v 0.499985 0.249993 0.500002 +v -0.499985 -0.249993 0.416671 +v -0.499985 0.249993 0.416671 +v -0.499985 -0.249993 0.500002 +v -0.499985 0.249993 0.500002 +vt 0.031250 0.562500 +vt 0.031250 0.937500 +vt 0.000000 0.937500 +vt 0.000000 0.562500 +vt 0.812500 0.562500 +vt 0.812500 0.937500 +vt 0.437500 0.937500 +vt 0.437500 0.562500 +vt 0.406250 0.937500 +vt 0.406250 0.562500 +vt 0.406250 1.000000 +vt 0.781250 1.000000 +vt 0.781250 0.937500 +vt 0.031250 1.000000 +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 +usemtl None +s off +f 1/1/1 2/2/1 4/3/1 3/4/1 +f 3/5/2 4/6/2 8/7/2 7/8/2 +f 7/8/3 8/7/3 6/9/3 5/10/3 +f 5/10/4 6/9/4 2/2/4 1/1/4 +f 3/11/5 7/12/5 5/13/5 1/9/5 +f 8/11/6 4/14/6 2/2/6 6/9/6