1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-12-23 00:20:17 +01:00

phase out redundant slope images

(modified the models so that they can use the existing shingle images instead)
This commit is contained in:
Vanessa Ezekowitz 2015-05-07 14:13:12 -04:00
parent a6056d69de
commit 54275987fd
15 changed files with 106 additions and 101 deletions

View File

@ -1,6 +1,5 @@
# Blender v2.69 (sub 0) OBJ File: 'slope_test_slope.blend' # Blender v2.73 (sub 0) OBJ File: 'slope_test_slope_onetexture.blend'
# www.blender.org # www.blender.org
mtllib slope_test_slope.mtl
o Cube_Cube.002 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
@ -8,28 +7,20 @@ 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 v 0.500000 -0.500000 -0.500000
vt 0.546875 0.984375 vt 1.000000 1.000000
vt 0.296875 0.984375 vt 0.000000 1.000000
vt 0.296875 0.734375 vt 0.000000 0.000000
vt 0.546875 0.734375 vt 1.000000 0.000000
vt 0.578125 0.734375 vn 0.000000 -0.000000 1.000000
vt 0.828125 0.734375 vn 0.000000 -1.000000 -0.000000
vt 0.828125 0.984375 vn 0.000000 0.707100 -0.707100
vt 0.578125 0.984375 vn -1.000000 0.000000 0.000000
vt 0.546875 0.703125 vn 1.000000 0.000000 0.000000
vt 0.296875 0.453125 g Cube_Cube.002_Cube_Cube.002_front-back-bottom
vt 0.546875 0.453125
vt 0.578125 0.703125
vt 0.578125 0.453125
vt 0.828125 0.453125
vt 0.265625 0.984375
vt 0.015625 0.984375
vt 0.015625 0.609375
vt 0.265625 0.609375
usemtl None
s off s off
f 1/1 2/2 3/3 4/4 f 1/1/1 2/2/1 3/3/1 4/4/1
f 4/5 3/6 5/7 6/8 f 4/3/2 3/4/2 5/1/2 6/2/2
f 2/9 5/10 3/11 f 2/1/3 1/2/3 6/3/3 5/4/3
f 1/12 4/13 6/14 g Cube_Cube.002_Cube_Cube.002_sides
f 2/15 1/16 6/17 5/18 f 2/1/4 5/3/4 3/4/4
f 1/2/5 4/3/5 6/4/5

View File

@ -1,6 +1,5 @@
# Blender v2.69 (sub 0) OBJ File: 'slope_test_icorner.blend' # Blender v2.73 (sub 0) OBJ File: 'slope_test_icorner_onetexture.blend'
# www.blender.org # www.blender.org
mtllib slope_test_icorner.mtl
o Cube_Cube.000 o Cube_Cube.000
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
@ -11,38 +10,25 @@ 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 v -0.500000 -0.500000 -0.500000
vt 0.546875 0.984375 vt 1.000000 1.000000
vt 0.296875 0.984375 vt 0.000000 1.000000
vt 0.296875 0.734375 vt 0.000000 0.000000
vt 0.546875 0.734375 vt 1.000000 0.000000
vt 0.828125 0.421875 vn 1.000000 -0.000000 0.000000
vt 0.578125 0.171875 vn -1.000000 0.000000 0.000000
vt 0.828125 0.171875 vn 0.000000 0.707100 -0.707100
vt 0.546875 0.703125 vn 0.000000 -0.000000 -1.000000
vt 0.296875 0.703125 vn -0.000000 -1.000000 -0.000000
vt 0.546875 0.328125 vn -0.000000 -0.000000 1.000000
vt 0.578125 0.703125 vn -0.707100 0.707100 -0.000000
vt 0.578125 0.453125 g Cube_Cube.000_Cube_Cube.000_None
vt 0.828125 0.453125
vt 0.828125 0.984375
vt 0.578125 0.984375
vt 0.578125 0.734375
vt 0.828125 0.734375
vt 0.015625 0.734375
vt 0.265625 0.734375
vt 0.265625 0.984375
vt 0.015625 0.984375
vt 0.265625 0.703125
vt 0.015625 0.703125
vt 0.015625 0.328125
usemtl None
s off s off
f 6/1 1/2 7/3 8/4 f 6/1/1 1/2/1 7/3/1 8/4/1
f 2/5 5/6 3/7 f 2/1/2 5/3/2 3/4/2
f 2/8 1/9 5/10 f 2/1/3 1/2/3 5/4/3
f 6/11 8/12 9/13 f 6/2/4 8/3/4 9/4/4
f 9/14 8/15 7/16 3/17 f 9/1/5 8/2/5 7/3/5 3/4/5
f 3/18 7/19 1/20 2/21 f 3/3/6 7/4/6 1/1/6 2/2/6
f 1/22 6/23 9/24 f 1/1/7 6/2/7 9/3/7
l 1 4 l 1 4
l 3 4 l 3 4

View File

@ -1,32 +1,24 @@
# Blender v2.69 (sub 0) OBJ File: 'slope_test_ocorner.blend' # Blender v2.73 (sub 0) OBJ File: 'slope_test_ocorner_onetexture.blend'
# www.blender.org # www.blender.org
mtllib slope_test_ocorner.mtl
o Cube_Cube.002 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
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.578125 0.734375 vt 1.000000 1.000000
vt 0.828125 0.734375 vt 0.000000 1.000000
vt 0.828125 0.984375 vt 0.000000 0.000000
vt 0.578125 0.984375 vt 1.000000 0.000000
vt 0.296875 0.703125 vn 0.000000 -1.000000 -0.000000
vt 0.296875 0.453125 vn 1.000000 0.000000 0.000000
vt 0.546875 0.453125 vn 0.000000 -0.000000 1.000000
vt 0.546875 0.984375 vn -0.707100 0.707100 0.000000
vt 0.296875 0.734375 vn 0.000000 0.707100 -0.707100
vt 0.546875 0.734375 g Cube_Cube.002_Cube_Cube.002_None
vt 0.265625 0.578125
vt 0.015625 0.203125
vt 0.265625 0.203125
vt 0.015625 0.984375
vt 0.015625 0.609375
vt 0.265625 0.609375
usemtl None
s off s off
f 3/1 2/2 4/3 5/4 f 3/1/1 2/2/1 4/3/1 5/4/1
f 1/5 3/6 5/7 f 1/2/2 3/3/2 5/4/2
f 1/8 2/9 3/10 f 1/1/3 2/3/3 3/4/3
f 1/11 4/12 2/13 f 1/1/4 4/3/4 2/4/4
f 1/14 5/15 4/16 f 1/2/5 5/3/5 4/4/5

View File

@ -34,11 +34,18 @@ local icorner_cbox = {
} }
homedecor.register_outer_corner = function(modname, subname, groups, slope_image, description) homedecor.register_outer_corner = function(modname, subname, groups, slope_image, description)
local tiles = slope_image
if type(slope_image) ~= "table" then
tiles = { "homedecor_slope_outer_corner_"..slope_image..".png" }
end
minetest.register_node(modname..":shingle_outer_corner_" .. subname, { minetest.register_node(modname..":shingle_outer_corner_" .. subname, {
description = S(description.. " (outer corner)"), description = S(description.. " (outer corner)"),
drawtype = "mesh", drawtype = "mesh",
mesh = "homedecor_slope_outer_corner.obj", mesh = "homedecor_slope_outer_corner.obj",
tiles = { "homedecor_slope_outer_corner_"..slope_image..".png" }, tiles = tiles,
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
selection_box = ocorner_cbox, selection_box = ocorner_cbox,
@ -50,11 +57,18 @@ homedecor.register_outer_corner = function(modname, subname, groups, slope_image
end end
homedecor.register_inner_corner = function(modname, subname, groups, slope_image, description) homedecor.register_inner_corner = function(modname, subname, groups, slope_image, description)
local tiles = slope_image
if type(slope_image) ~= "table" then
tiles = { "homedecor_slope_outer_corner_"..slope_image..".png" }
end
minetest.register_node(modname..":shingle_inner_corner_" .. subname, { minetest.register_node(modname..":shingle_inner_corner_" .. subname, {
description = S(description.. " (inner corner)"), description = S(description.. " (inner corner)"),
drawtype = "mesh", drawtype = "mesh",
mesh = "homedecor_slope_inner_corner.obj", mesh = "homedecor_slope_inner_corner.obj",
tiles = { "homedecor_slope_inner_corner_"..slope_image..".png" }, tiles = tiles,
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
collision_box = icorner_cbox, collision_box = icorner_cbox,
@ -65,11 +79,18 @@ homedecor.register_inner_corner = function(modname, subname, groups, slope_image
end end
homedecor.register_slope = function(modname, subname, recipeitem, groups, slope_image, description) homedecor.register_slope = function(modname, subname, recipeitem, groups, slope_image, description)
local tiles = slope_image
if type(slope_image) ~= "table" then
tiles = { "homedecor_slope_outer_corner_"..slope_image..".png" }
end
minetest.register_node(modname..":shingle_side_" .. subname, { minetest.register_node(modname..":shingle_side_" .. subname, {
description = S(description), description = S(description),
drawtype = "mesh", drawtype = "mesh",
mesh = "homedecor_slope.obj", mesh = "homedecor_slope.obj",
tiles = { "homedecor_slope_"..slope_image..".png" }, tiles = tiles,
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
selection_box = slope_cbox, selection_box = slope_cbox,
@ -198,50 +219,65 @@ end
-- corners -- corners
homedecor.register_roof("homedecor", "wood", homedecor.register_roof(
{ snappy = 3 }, "homedecor",
"wood", "wood",
{ snappy = 3 },
{ "homedecor_shingles_wood.png" },
"Wood Shingles" "Wood Shingles"
) )
homedecor.register_roof("homedecor", "asphalt", homedecor.register_roof(
{ snappy = 3 }, "homedecor",
"asphalt", "asphalt",
{ snappy = 3 },
{ "homedecor_shingles_asphalt.png" },
"Asphalt Shingles" "Asphalt Shingles"
) )
homedecor.register_roof("homedecor", "terracotta", homedecor.register_roof(
{ snappy = 3 }, "homedecor",
"terracotta", "terracotta",
{ snappy = 3 },
{ "homedecor_shingles_terracotta.png" },
"Terracotta Shingles" "Terracotta Shingles"
) )
-- register just the slopes -- register just the slopes
homedecor.register_slope("homedecor", "wood", homedecor.register_slope(
"homedecor",
"wood",
"homedecor:shingles_wood", "homedecor:shingles_wood",
{ snappy = 3 }, { snappy = 3 },
"wood", { "homedecor_shingles_wood.png" },
"Wood Shingles" "Wood Shingles"
) )
homedecor.register_slope("homedecor", "asphalt", homedecor.register_slope(
"homedecor",
"asphalt",
"homedecor:shingles_asphalt", "homedecor:shingles_asphalt",
{ snappy = 3 }, { snappy = 3 },
"asphalt", { "homedecor_shingles_asphalt.png" },
"Asphalt Shingles" "Asphalt Shingles"
) )
homedecor.register_slope("homedecor", "terracotta", homedecor.register_slope(
"homedecor",
"terracotta",
"homedecor:shingles_terracotta", "homedecor:shingles_terracotta",
{ snappy = 3 }, { snappy = 3 },
"terracotta", { "homedecor_shingles_terracotta.png" },
"Terracotta Shingles" "Terracotta Shingles"
) )
homedecor.register_slope("homedecor", "glass", homedecor.register_slope(
"homedecor",
"glass",
"homedecor:shingles_glass", "homedecor:shingles_glass",
{ snappy = 3 }, { snappy = 3 },
"glass", { "homedecor_shingles_glass.png", "homedecor_shingles_wood.png" },
"Glass Shingles" "Glass Shingles"
) )

Binary file not shown.

Before

Width:  |  Height:  |  Size: 232 B

After

Width:  |  Height:  |  Size: 357 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 778 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 853 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 869 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB