From 436abd20aa679f34e6c30d24772cd5aab2ee9d6a Mon Sep 17 00:00:00 2001 From: y Date: Sat, 13 Jul 2019 22:11:34 +0100 Subject: [PATCH] fix slope model --- license.txt | 4 +-- models.lua | 2 +- models/moreblocks_slope.obj | 21 -------------- models/scifi_nodes_slope.obj | 56 ++++++++++++++++++++++++++++++++++++ 4 files changed, 59 insertions(+), 24 deletions(-) delete mode 100644 models/moreblocks_slope.obj create mode 100644 models/scifi_nodes_slope.obj diff --git a/license.txt b/license.txt index 41659ff..6e333aa 100644 --- a/license.txt +++ b/license.txt @@ -45,7 +45,7 @@ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION will the authors be held liable for any damages arising from the use of this content. -For moreblocks_slope.obj: +For scifi_nodes_slope.obj, which is renamed from moreblocks_slope.obj: zlib license ============ @@ -61,4 +61,4 @@ Permission is granted to anyone to use this software for any purpose, including 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. -**Forum topic:** \ No newline at end of file +**Forum topic:** diff --git a/models.lua b/models.lua index bd0d523..96b6856 100644 --- a/models.lua +++ b/models.lua @@ -9,7 +9,7 @@ minetest.register_node("scifi_nodes:slope_"..name, { description = desc.." Slope", sunlight_propagates = false, drawtype = "mesh", - mesh = "moreblocks_slope.obj", + mesh = "scifi_nodes_slope.obj", tiles = texture, selection_box = { type = "fixed", diff --git a/models/moreblocks_slope.obj b/models/moreblocks_slope.obj deleted file mode 100644 index 05c853b..0000000 --- a/models/moreblocks_slope.obj +++ /dev/null @@ -1,21 +0,0 @@ -# Blender v2.69 (sub 0) OBJ File: 'slope_test_slope_onetexture.blend' -# www.blender.org -mtllib slope_test_slope_onetexture.mtl -o Cube_Cube.002 -v 0.500000 0.500000 0.500000 -v -0.500000 0.500000 0.500000 -v -0.500000 -0.500000 0.500000 -v 0.500000 -0.500000 0.500000 -v -0.500000 -0.500000 -0.500000 -v 0.500000 -0.500000 -0.500000 -vt 1.000000 1.000000 -vt 0.000000 1.000000 -vt 0.000000 0.000000 -vt 1.000000 0.000000 -usemtl None -s off -f 1/1 2/2 3/3 4/4 -f 4/3 3/4 5/1 6/2 -f 2/1 5/3 3/4 -f 1/2 4/3 6/4 -f 2/1 1/2 6/3 5/4 diff --git a/models/scifi_nodes_slope.obj b/models/scifi_nodes_slope.obj new file mode 100644 index 0000000..57298d7 --- /dev/null +++ b/models/scifi_nodes_slope.obj @@ -0,0 +1,56 @@ +g top +v 0.500000 0.500000 0.500000 +v -0.500000 0.500000 0.500000 +v -0.500000 -0.500000 -0.500000 +v 0.500000 -0.500000 -0.500000 +vt 1.0000 1.0000 +vt 0.0000 1.0000 +vt 0.0000 0.0000 +vt 1.0000 0.0000 +vn 0.0000 0.7071 -0.7071 +s off +f 2/1/1 1/2/1 4/3/1 3/4/1 +g bottom +v -0.500000 -0.500000 0.500000 +v 0.500000 -0.500000 0.500000 +v -0.500000 -0.500000 -0.500000 +v 0.500000 -0.500000 -0.500000 +vt 0.0000 0.0000 +vt 1.0000 0.0000 +vt 1.0000 1.0000 +vt 0.0000 1.0000 +vn 0.0000 -1.0000 -0.0000 +s off +f 6/5/2 5/6/2 7/7/2 8/8/2 +g right +v -0.500000 0.500000 0.500000 +v -0.500000 -0.500000 0.500000 +v -0.500000 -0.500000 -0.500000 +vt 1.0000 1.0000 +vt 0.0000 0.0000 +vt 1.0000 0.0000 +vn -1.0000 0.0000 0.0000 +s off +f 9/9/3 11/10/3 10/11/3 +g left +v 0.500000 0.500000 0.500000 +v 0.500000 -0.500000 0.500000 +v 0.500000 -0.500000 -0.500000 +vt 0.0000 1.0000 +vt 0.0000 0.0000 +vt 1.0000 0.0000 +vn 1.0000 0.0000 0.0000 +s off +f 12/12/4 13/13/4 14/14/4 +g back +v 0.500000 0.500000 0.500000 +v -0.500000 0.500000 0.500000 +v -0.500000 -0.500000 0.500000 +v 0.500000 -0.500000 0.500000 +vt 1.0000 1.0000 +vt 0.0000 1.0000 +vt 0.0000 0.0000 +vt 1.0000 0.0000 +vn 0.0000 -0.0000 1.0000 +s off +f 15/15/5 16/16/5 17/17/5 18/18/5