Use overhigh signs again

This commit is contained in:
Wuzzy 2017-07-26 16:50:26 +02:00
parent 712424eb8d
commit 677a19acd1
6 changed files with 119 additions and 77 deletions

View file

@ -140,6 +140,8 @@ local m = -1/16 + 1/64
for rot=0, 15 do for rot=0, 15 do
local yaw = math.pi*2 - (((math.pi*2) / 16) * rot) local yaw = math.pi*2 - (((math.pi*2) / 16) * rot)
local delta = vector.multiply(minetest.yaw_to_dir(yaw), m) 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 }) table.insert(signtext_info_standing, { delta = delta, yaw = yaw })
end end
@ -381,7 +383,7 @@ local ssign = {
is_ground_content = false, is_ground_content = false,
paramtype2 = "facedir", paramtype2 = "facedir",
drawtype = "mesh", 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}}, selection_box = {type = "fixed", fixed = {-0.2, -0.5, -0.2, 0.2, 0.5, 0.2}},
tiles = {"mcl_signs_sign.png"}, tiles = {"mcl_signs_sign.png"},
groups = sign_groups, groups = sign_groups,
@ -403,17 +405,17 @@ local ssign = {
-- 22.5° -- 22.5°
minetest.register_node("mcl_signs:standing_sign", ssign) minetest.register_node("mcl_signs:standing_sign", ssign)
local ssign22_5 = table.copy(ssign) local ssign22_5 = table.copy(ssign)
ssign22_5.mesh = "mcl_signs_1sign22.5.obj" ssign22_5.mesh = "mcl_signs_sign22.5.obj"
-- 45° -- 45°
minetest.register_node("mcl_signs:standing_sign22_5", ssign22_5) minetest.register_node("mcl_signs:standing_sign22_5", ssign22_5)
local ssign45 = table.copy(ssign) 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) minetest.register_node("mcl_signs:standing_sign45", ssign45)
-- 67.5° -- 67.5°
local ssign67 = table.copy(ssign) 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) minetest.register_node("mcl_signs:standing_sign67_5", ssign67)

View file

@ -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 # www.blender.org
mtllib 1sign0.mtl mtllib sign.mtl
o wood_Cube.001 o wood_Cube.001
v 0.461724 0.038277 -0.038477 v 0.499985 0.082879 -0.041665
v 0.461724 0.500000 -0.038477 v 0.499985 0.582864 -0.041665
v 0.461724 0.038277 0.038477 v 0.499985 0.082879 0.041666
v 0.461724 0.500000 0.038477 v 0.499985 0.582864 0.041666
v -0.461724 0.038277 -0.038477 v -0.499985 0.082879 -0.041666
v -0.461724 0.500000 -0.038477 v -0.499985 0.582864 -0.041666
v -0.461724 0.038277 0.038477 v -0.499985 0.082879 0.041665
v -0.461724 0.500000 0.038477 v -0.499985 0.582864 0.041665
v 0.038477 -0.499999 -0.038477 v 0.041665 -0.500001 -0.041665
v 0.038477 0.038679 -0.038477 v 0.041665 0.083315 -0.041665
v 0.038477 -0.499999 0.038477 v 0.041665 -0.500001 0.041665
v 0.038477 0.038679 0.038477 v 0.041665 0.083315 0.041665
v -0.038477 -0.499999 -0.038477 v -0.041665 -0.500001 -0.041665
v -0.038477 0.038679 -0.038477 v -0.041665 0.083315 -0.041665
v -0.038477 -0.499999 0.038477 v -0.041665 -0.500001 0.041665
v -0.038477 0.038679 0.038477 v -0.041665 0.083315 0.041665
vt 0.031250 0.562500 vt 0.031250 0.562500
vt 0.031250 0.937500 vt 0.031250 0.937500
vt 0.000000 0.937500 vt 0.000000 0.937500

View file

@ -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 # www.blender.org
mtllib 1sign22.5.mtl mtllib sign 22.5.mtl
o wood_Cube.001 o wood_Cube.001
v 0.441302 0.038277 0.141146 v 0.477871 0.082879 0.152842
v 0.441302 0.500000 0.141146 v 0.477871 0.582864 0.152842
v 0.411853 0.038277 0.212242 v 0.445982 0.082879 0.229830
v 0.411853 0.500000 0.212242 v 0.445982 0.582864 0.229830
v -0.411853 0.038277 -0.212242 v -0.445982 0.082879 -0.229830
v -0.411853 0.500000 -0.212242 v -0.445982 0.582864 -0.229830
v -0.441302 0.038277 -0.141146 v -0.477871 0.082879 -0.152842
v -0.441302 0.500000 -0.141146 v -0.477871 0.582864 -0.152842
v 0.050273 -0.499999 -0.020824 v 0.054439 -0.500001 -0.022549
v 0.050273 0.038679 -0.020824 v 0.054439 0.083315 -0.022549
v 0.020824 -0.499999 0.050273 v 0.022549 -0.500001 0.054439
v 0.020824 0.038679 0.050273 v 0.022549 0.083315 0.054439
v -0.020824 -0.499999 -0.050273 v -0.022549 -0.500001 -0.054439
v -0.020824 0.038679 -0.050273 v -0.022549 0.083315 -0.054439
v -0.050273 -0.499999 0.020824 v -0.054439 -0.500001 0.022549
v -0.050273 0.038679 0.020824 v -0.054439 0.083315 0.022549
vt 0.031250 0.562500 vt 0.031250 0.562500
vt 0.031250 0.937500 vt 0.031250 0.937500
vt 0.000000 0.937500 vt 0.000000 0.937500

View file

@ -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 # www.blender.org
mtllib 1sign45.mtl mtllib mcl_signs_sign45.mtl
o wood_Cube.001 o wood_Cube.001
v 0.353695 0.038277 0.299281 v 0.383005 0.082879 0.324081
v 0.353695 0.500000 0.299281 v 0.383005 0.582864 0.324081
v 0.299281 0.038277 0.353696 v 0.324081 0.082879 0.383005
v 0.299281 0.500000 0.353696 v 0.324081 0.582864 0.383005
v -0.299281 0.038277 -0.353696 v -0.324081 0.082879 -0.383005
v -0.299281 0.500000 -0.353696 v -0.324081 0.582864 -0.383005
v -0.353695 0.038277 -0.299281 v -0.383005 0.082879 -0.324081
v -0.353695 0.500000 -0.299281 v -0.383005 0.582864 -0.324081
v 0.054415 -0.499999 0.000000 v 0.058924 -0.500001 0.000000
v 0.054415 0.038679 0.000000 v 0.058924 0.083315 0.000000
v -0.000000 -0.499999 0.054415 v -0.000000 -0.500001 0.058924
v -0.000000 0.038679 0.054415 v -0.000000 0.083315 0.058924
v 0.000000 -0.499999 -0.054415 v 0.000000 -0.500001 -0.058924
v 0.000000 0.038679 -0.054415 v 0.000000 0.083315 -0.058924
v -0.054415 -0.499999 -0.000000 v -0.058924 -0.500001 -0.000000
v -0.054415 0.038679 -0.000000 v -0.058924 0.083315 -0.000000
vt 0.031250 0.562500 vt 0.031250 0.562500
vt 0.031250 0.937500 vt 0.031250 0.937500
vt 0.000000 0.937500 vt 0.000000 0.937500

View file

@ -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 # www.blender.org
mtllib 1sign67.5.mtl mtllib mcl_signs_sign67.5.mtl
o wood_Cube.001 o wood_Cube.001
v 0.212242 0.038277 0.411853 v 0.229830 0.082879 0.445982
v 0.212242 0.500000 0.411853 v 0.229830 0.582864 0.445982
v 0.141146 0.038277 0.441302 v 0.152842 0.082879 0.477871
v 0.141146 0.500000 0.441302 v 0.152842 0.582864 0.477871
v -0.141146 0.038277 -0.441302 v -0.152842 0.082879 -0.477871
v -0.141146 0.500000 -0.441302 v -0.152842 0.582864 -0.477871
v -0.212242 0.038277 -0.411853 v -0.229830 0.082879 -0.445982
v -0.212242 0.500000 -0.411853 v -0.229830 0.582864 -0.445982
v 0.050273 -0.499999 0.020824 v 0.054439 -0.500001 0.022549
v 0.050273 0.038679 0.020824 v 0.054439 0.083315 0.022549
v -0.020824 -0.499999 0.050273 v -0.022549 -0.500001 0.054439
v -0.020824 0.038679 0.050273 v -0.022549 0.083315 0.054439
v 0.020824 -0.499999 -0.050273 v 0.022549 -0.500001 -0.054439
v 0.020824 0.038679 -0.050273 v 0.022549 0.083315 -0.054439
v -0.050273 -0.499999 -0.020824 v -0.054439 -0.500001 -0.022549
v -0.050273 0.038679 -0.020824 v -0.054439 0.083315 -0.022549
vt 0.031250 0.562500 vt 0.031250 0.562500
vt 0.031250 0.937500 vt 0.031250 0.937500
vt 0.000000 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.923900 0.000000 0.382700
vn -0.382700 0.000000 -0.923900 vn -0.382700 0.000000 -0.923900
vn 0.923900 0.000000 -0.382700 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 vn 0.000000 1.000000 0.000000
usemtl None usemtl None
s off s off

View file

@ -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