From 369295d5160f8f0faa0b1afafcc246d38ebaf47a Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Fri, 16 Jun 2017 17:13:12 -0400 Subject: [PATCH] use soft overlay instead of multi-layer mesh node --- init.lua | 34 ++++++++++++--------- models/unifiedbricks_brick_block.obj | 44 --------------------------- textures/unifiedbricks_mortar2.png | Bin 0 -> 247 bytes textures/unifiedbricks_mortar3.png | Bin 0 -> 247 bytes textures/unifiedbricks_mortar4.png | Bin 0 -> 247 bytes 5 files changed, 19 insertions(+), 59 deletions(-) delete mode 100644 models/unifiedbricks_brick_block.obj create mode 100644 textures/unifiedbricks_mortar2.png create mode 100644 textures/unifiedbricks_mortar3.png create mode 100644 textures/unifiedbricks_mortar4.png diff --git a/init.lua b/init.lua index 4d1f44c..80eba02 100644 --- a/init.lua +++ b/init.lua @@ -95,11 +95,12 @@ FORMALDARKNESS = { minetest.register_node("unifiedbricks:brickblock", { description = "Brick Block", tiles = { - "unifiedbricks_brickblock.png", - { name = "unifiedbricks_mortar.png", color = 0xffffffff }, + "unifiedbricks_brickblock.png" }, - drawtype = "mesh", - mesh = "unifiedbricks_brick_block.obj", + overlay_tiles = { + { name = "unifiedbricks_mortar.png", color = "white" } + }, + use_texture_alpha = true, paramtype = "light", paramtype2 = "color", palette = "unifieddyes_palette_extended.png", @@ -150,10 +151,11 @@ minetest.register_node("unifiedbricks:brickblock_multicolor_dark", { description = "Brick block (dark multicolor)", tiles = { "unifiedbricks_brickblock_multicolor_dark.png", - { name = "unifiedbricks_mortar.png", color = 0xffffffff }, }, - drawtype = "mesh", - mesh = "unifiedbricks_brick_block.obj", + overlay_tiles = { + { name = "unifiedbricks_mortar2.png", color = "white" } + }, + use_texture_alpha = true, paramtype = "light", paramtype2 = "color", palette = "unifieddyes_palette_extended.png", @@ -169,11 +171,12 @@ minetest.register_node("unifiedbricks:brickblock_multicolor_dark", { minetest.register_node("unifiedbricks:brickblock_multicolor_medium", { description = "Brick block (medium multicolor)", tiles = { - "unifiedbricks_brickblock_multicolor_medium.png", - { name = "unifiedbricks_mortar.png", color = 0xffffffff }, + "unifiedbricks_brickblock_multicolor_medium.png" }, - drawtype = "mesh", - mesh = "unifiedbricks_brick_block.obj", + overlay_tiles = { + { name = "unifiedbricks_mortar3.png", color = "white" } + }, + use_texture_alpha = true, paramtype = "light", paramtype2 = "color", palette = "unifieddyes_palette_extended.png", @@ -189,11 +192,12 @@ minetest.register_node("unifiedbricks:brickblock_multicolor_medium", { minetest.register_node("unifiedbricks:brickblock_multicolor_light", { description = "Brick block (light multicolor)", tiles = { - "unifiedbricks_brickblock_multicolor_light.png", - { name = "unifiedbricks_mortar.png", color = 0xffffffff }, + "unifiedbricks_brickblock_multicolor_light.png" }, - drawtype = "mesh", - mesh = "unifiedbricks_brick_block.obj", + overlay_tiles = { + { name = "unifiedbricks_mortar4.png", color = "white" } + }, + use_texture_alpha = true, paramtype = "light", paramtype2 = "color", palette = "unifieddyes_palette_extended.png", diff --git a/models/unifiedbricks_brick_block.obj b/models/unifiedbricks_brick_block.obj deleted file mode 100644 index 9c70760..0000000 --- a/models/unifiedbricks_brick_block.obj +++ /dev/null @@ -1,44 +0,0 @@ -# Blender v2.72 (sub 0) OBJ File: 'unifiedbricks_brick_block.blend' -# www.blender.org -o Cube -v 0.496092 0.496092 0.496092 -v 0.496092 0.496092 -0.496092 -v -0.496092 0.496092 -0.496092 -v -0.496092 0.496092 0.496092 -v 0.496092 -0.496092 0.496092 -v 0.496092 -0.496092 -0.496092 -v -0.496092 -0.496092 -0.496092 -v -0.496092 -0.496092 0.496092 -v 0.499750 0.499750 0.499750 -v 0.499750 0.499750 -0.499750 -v -0.499750 0.499750 -0.499750 -v -0.499750 0.499750 0.499750 -v 0.499750 -0.499750 0.499750 -v 0.499750 -0.499750 -0.499750 -v -0.499750 -0.499750 -0.499750 -v -0.499750 -0.499750 0.499750 -vt 1.000000 0.000000 -vt 1.000000 1.000000 -vt 0.000000 1.000000 -vt 0.000000 0.000000 -vn 0.000000 -1.000000 0.000000 -vn -1.000000 0.000000 0.000000 -vn 0.000000 1.000000 0.000000 -vn 1.000000 0.000000 0.000000 -vn 0.000000 0.000000 -1.000000 -vn 0.000000 0.000000 1.000000 -g Cube_Cube_base -s off -f 8/1/1 7/2/1 6/3/1 5/4/1 -f 4/2/2 3/3/2 7/4/2 8/1/2 -f 1/3/3 2/4/3 3/1/3 4/2/3 -f 2/2/4 1/3/4 5/4/4 6/1/4 -f 3/2/5 2/3/5 6/4/5 7/1/5 -f 1/2/6 4/3/6 8/4/6 5/1/6 -g Cube_Cube_overlay -f 16/1/1 15/2/1 14/3/1 13/4/1 -f 12/2/2 11/3/2 15/4/2 16/1/2 -f 9/3/3 10/4/3 11/1/3 12/2/3 -f 10/2/4 9/3/4 13/4/4 14/1/4 -f 11/2/5 10/3/5 14/4/5 15/1/5 -f 9/2/6 12/3/6 16/4/6 13/1/6 diff --git a/textures/unifiedbricks_mortar2.png b/textures/unifiedbricks_mortar2.png new file mode 100644 index 0000000000000000000000000000000000000000..6d523356f57e57e548d53e184dd872248f8f4c95 GIT binary patch literal 247 zcmVfRRsVn%VHKpjPbE2JwCvD50fCJWD=cc)45sc&bPV-&wh!8y x+~Jdva?a?cX)41oz&UqR-QT$NN2^~%umL4Xb{z*kLW2MR002ovPDHLkV1lVJWWfLc literal 0 HcmV?d00001 diff --git a/textures/unifiedbricks_mortar3.png b/textures/unifiedbricks_mortar3.png new file mode 100644 index 0000000000000000000000000000000000000000..6d523356f57e57e548d53e184dd872248f8f4c95 GIT binary patch literal 247 zcmVfRRsVn%VHKpjPbE2JwCvD50fCJWD=cc)45sc&bPV-&wh!8y x+~Jdva?a?cX)41oz&UqR-QT$NN2^~%umL4Xb{z*kLW2MR002ovPDHLkV1lVJWWfLc literal 0 HcmV?d00001 diff --git a/textures/unifiedbricks_mortar4.png b/textures/unifiedbricks_mortar4.png new file mode 100644 index 0000000000000000000000000000000000000000..6d523356f57e57e548d53e184dd872248f8f4c95 GIT binary patch literal 247 zcmVfRRsVn%VHKpjPbE2JwCvD50fCJWD=cc)45sc&bPV-&wh!8y x+~Jdva?a?cX)41oz&UqR-QT$NN2^~%umL4Xb{z*kLW2MR002ovPDHLkV1lVJWWfLc literal 0 HcmV?d00001