Add standing sign models

This commit is contained in:
Wuzzy 2017-07-26 15:19:35 +02:00
parent 8d10a1a7c7
commit 868a990551
5 changed files with 269 additions and 6 deletions

View file

@ -116,7 +116,7 @@ local generate_texture = function(lines, signnodename)
if signnodename == "mcl_signs:wall_sign" then
ypos = 27
else
ypos = 9
ypos = 0
end
for i = 1, #lines do
texture = texture..generate_line(lines[i], ypos)
@ -140,7 +140,6 @@ 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)
delta.y = 5/32
table.insert(signtext_info_standing, { delta = delta, yaw = yaw })
end
@ -374,7 +373,7 @@ local ssign = {
is_ground_content = false,
paramtype2 = "facedir",
drawtype = "mesh",
mesh = "mcl_signs_sign.obj",
mesh = "mcl_signs_1sign0.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,
@ -396,17 +395,17 @@ local ssign = {
-- 22.5°
minetest.register_node("mcl_signs:standing_sign", ssign)
local ssign22_5 = table.copy(ssign)
ssign22_5.mesh = "mcl_signs_sign22.5.obj"
ssign22_5.mesh = "mcl_signs_1sign22.5.obj"
-- 45°
minetest.register_node("mcl_signs:standing_sign22_5", ssign22_5)
local ssign45 = table.copy(ssign)
ssign45.mesh = "mcl_signs_sign45.obj"
ssign45.mesh = "mcl_signs_1sign45.obj"
minetest.register_node("mcl_signs:standing_sign45", ssign45)
-- 67.5°
local ssign67 = table.copy(ssign)
ssign67.mesh = "mcl_signs_sign67.5.obj"
ssign67.mesh = "mcl_signs_1sign67.5.obj"
minetest.register_node("mcl_signs:standing_sign67_5", ssign67)

View file

@ -0,0 +1,66 @@
# Blender v2.76 (sub 0) OBJ File: '1sign0.blend'
# www.blender.org
mtllib 1sign0.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
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
vt 0.031250 0.062500
vt 0.031250 0.500000
vt 0.000000 0.500000
vt 0.000000 0.062500
vt 0.125000 0.062500
vt 0.125000 0.500000
vt 0.093750 0.500000
vt 0.093750 0.062500
vt 0.062500 0.500000
vt 0.062500 0.062500
vt 0.093750 0.562500
vt 0.062500 0.562500
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
f 9/15/1 10/16/1 12/17/1 11/18/1
f 11/19/2 12/20/2 16/21/2 15/22/2
f 15/22/3 16/21/3 14/23/3 13/24/3
f 13/24/4 14/23/4 10/16/4 9/15/4
f 11/23/5 15/21/5 13/25/5 9/26/5
f 16/16/6 12/23/6 10/26/6 14/1/6

View file

@ -0,0 +1,66 @@
# Blender v2.76 (sub 0) OBJ File: '1sign22.5.blend'
# www.blender.org
mtllib 1sign22.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
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
vt 0.031250 0.062500
vt 0.031250 0.500000
vt 0.000000 0.500000
vt 0.000000 0.062500
vt 0.125000 0.062500
vt 0.125000 0.500000
vt 0.093750 0.500000
vt 0.093750 0.062500
vt 0.062500 0.500000
vt 0.062500 0.062500
vt 0.093750 0.562500
vt 0.062500 0.562500
vn 0.923900 0.000000 0.382700
vn -0.382700 0.000000 0.923900
vn -0.923900 0.000000 -0.382700
vn 0.382700 0.000000 -0.923900
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
f 9/15/1 10/16/1 12/17/1 11/18/1
f 11/19/2 12/20/2 16/21/2 15/22/2
f 15/22/3 16/21/3 14/23/3 13/24/3
f 13/24/4 14/23/4 10/16/4 9/15/4
f 11/23/5 15/21/5 13/25/5 9/26/5
f 16/16/6 12/23/6 10/26/6 14/1/6

View file

@ -0,0 +1,66 @@
# Blender v2.76 (sub 0) OBJ File: '1sign45.blend'
# www.blender.org
mtllib 1sign45.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
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
vt 0.031250 0.062500
vt 0.031250 0.500000
vt 0.000000 0.500000
vt 0.000000 0.062500
vt 0.125000 0.062500
vt 0.125000 0.500000
vt 0.093750 0.500000
vt 0.093750 0.062500
vt 0.062500 0.500000
vt 0.062500 0.062500
vt 0.093750 0.562500
vt 0.062500 0.562500
vn 0.707100 0.000000 0.707100
vn -0.707100 0.000000 0.707100
vn -0.707100 0.000000 -0.707100
vn 0.707100 0.000000 -0.707100
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
f 9/15/1 10/16/1 12/17/1 11/18/1
f 11/19/2 12/20/2 16/21/2 15/22/2
f 15/22/3 16/21/3 14/23/3 13/24/3
f 13/24/4 14/23/4 10/16/4 9/15/4
f 11/23/5 15/21/5 13/25/5 9/26/5
f 16/16/6 12/23/6 10/26/6 14/1/6

View file

@ -0,0 +1,66 @@
# Blender v2.76 (sub 0) OBJ File: '1sign67.5.blend'
# www.blender.org
mtllib 1sign67.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
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
vt 0.031250 0.062500
vt 0.031250 0.500000
vt 0.000000 0.500000
vt 0.000000 0.062500
vt 0.125000 0.062500
vt 0.125000 0.500000
vt 0.093750 0.500000
vt 0.093750 0.062500
vt 0.062500 0.500000
vt 0.062500 0.062500
vt 0.093750 0.562500
vt 0.062500 0.562500
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
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
f 9/15/1 10/16/1 12/17/1 11/18/1
f 11/19/2 12/20/2 16/21/2 15/22/2
f 15/22/3 16/21/3 14/23/3 13/24/3
f 13/24/4 14/23/4 10/16/4 9/15/4
f 11/23/5 15/21/5 13/25/5 9/26/5
f 16/16/6 12/23/6 10/26/6 14/1/6