From 8a7af21e3a55b7f0e7162d8ca0e7d4f2934837b5 Mon Sep 17 00:00:00 2001 From: Wouters Dorian Date: Fri, 10 Jul 2015 02:11:54 +0200 Subject: [PATCH] Improved stairs model, v2 --- mods/stairs/init.lua | 2 +- mods/stairs/models/stairs.obj | 45 ----------------------------- mods/stairs/models/stairs_stair.obj | 43 +++++++++++++++++++++++++++ 3 files changed, 44 insertions(+), 46 deletions(-) delete mode 100644 mods/stairs/models/stairs.obj create mode 100644 mods/stairs/models/stairs_stair.obj diff --git a/mods/stairs/init.lua b/mods/stairs/init.lua index f4deaece..7f84b4c0 100644 --- a/mods/stairs/init.lua +++ b/mods/stairs/init.lua @@ -8,7 +8,7 @@ function stairs.register_stair(subname, recipeitem, groups, images, description, minetest.register_node(":stairs:stair_" .. subname, { description = description, drawtype = "mesh", - mesh = "stairs.obj", + mesh = "stairs_stair.obj", tiles = images, paramtype = "light", paramtype2 = "facedir", diff --git a/mods/stairs/models/stairs.obj b/mods/stairs/models/stairs.obj deleted file mode 100644 index a5ec351a..00000000 --- a/mods/stairs/models/stairs.obj +++ /dev/null @@ -1,45 +0,0 @@ -# Blender v2.72 (sub 0) OBJ File: '' -# www.blender.org -v -0.500000 0.000000 -0.500000 -v -0.500000 -0.500000 -0.500000 -v -0.500000 0.000000 0.000000 -v 0.500000 0.000000 0.000000 -v 0.500000 -0.500000 -0.500000 -v 0.500000 0.000000 -0.500000 -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.500000 0.500000 0.500000 -vt 0.000000 0.500000 -vt 0.000000 0.000000 -vt 0.500000 0.500000 -vt 1.000000 0.000000 -vt 1.000000 0.500000 -vt 1.000000 1.000000 -vt 0.000000 1.000000 -vt 0.500000 1.000000 -vt 0.999900 0.000100 -vt 0.999900 0.999900 -vt 0.000100 0.999900 -vt 0.000100 0.000100 -vn -1.000000 0.000000 0.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 -vn 0.000000 -0.000000 1.000000 -s off -f 1/1/1 2/2/1 3/3/1 -f 4/3/2 5/4/2 6/5/2 -f 2/4/3 1/5/3 6/1/3 5/2/3 -f 7/4/4 2/6/4 5/7/4 8/2/4 -f 6/2/5 1/4/5 3/5/5 4/1/5 -f 3/5/3 9/6/3 10/7/3 4/1/3 -f 11/6/5 12/7/5 10/1/5 9/5/5 -f 4/3/2 10/8/2 12/7/2 -f 8/9/6 12/10/6 11/11/6 7/12/6 -f 3/3/1 11/6/1 9/8/1 -f 2/2/1 7/4/1 11/6/1 -f 5/4/2 12/7/2 8/2/2 diff --git a/mods/stairs/models/stairs_stair.obj b/mods/stairs/models/stairs_stair.obj new file mode 100644 index 00000000..929c733f --- /dev/null +++ b/mods/stairs/models/stairs_stair.obj @@ -0,0 +1,43 @@ +v -.5 0 -.5 +v -.5 -.5 -.5 +v -.5 0 0 +v .5 0 0 +v .5 -.5 -.5 +v .5 0 -.5 +v -.5 -.5 .5 +v .5 -.5 .5 +v -.5 .5 0 +v .5 .5 0 +v -.5 .5 .5 +v .5 .5 .5 +vt 0 .5 +vt 0 0 +vt .5 .5 +vt 1 0 +vt 1 .5 +vt 1 1 +vt 0 1 +vt .5 1 +vt 1 0 +vt 1 1 +vt 0 1 +vt 0 0 +vn -1 0 0 +vn 1 0 0 +vn 0 0 -1 +vn 0 -1 0 +vn 0 1 0 +vn 0 0 1 +s off +f 1/1/1 2/2/1 3/3/1 +f 4/3/2 5/4/2 6/5/2 +f 2/4/3 1/5/3 6/1/3 5/2/3 +f 7/4/4 2/6/4 5/7/4 8/2/4 +f 6/2/5 1/4/5 3/5/5 4/1/5 +f 3/5/3 9/6/3 10/7/3 4/1/3 +f 11/6/5 12/7/5 10/1/5 9/5/5 +f 4/3/2 10/8/2 12/7/2 +f 8/9/6 12/10/6 11/11/6 7/12/6 +f 3/3/1 11/6/1 9/8/1 +f 2/2/1 7/4/1 11/6/1 +f 5/4/2 12/7/2 8/2/2 -- 2.25.1