Page 1 of 1

Texturing issue

PostPosted: Sun Feb 10, 2013 22:36
by lkjoel
Hey all,

I'm having a major issue with texturing, I'll show you a screenshot:
Image

The textures (top/bottom):
Image

Sides:
Image

Code:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
-- Doctor Who mod for Minetest
--
-- Main coder: Joel Leclerc

local dr_who = {}

dr_who_mod_prefix = "dr_who"
function dr_who:gen_name(n)
    return dr_who_mod_prefix .. ":" .. n
end

minetest.register_node(dr_who:gen_name("tardis_box"), {
    drawtype = "nodebox",
    description = "TARDIS",
    sunlight_propagates = false,
    paramtype = "light",
    paramtype2 = "facedir",
    walkable = true,
    tiles = {"tardis_bottom.png", "tardis_bottom.png", "tardis_front.png", "tardis_front.png", "tardis_front.png", "tardis_front.png"},
    selection_box = {
        type = "fixed",
        fixed = {
                { -0.5, -0.5, -0.5, 1.5, 2.5, 1.5 }
            }
    },
    node_box = {
        type = "fixed",
        fixed = {
                { -0.5, -0.5, -0.5, 1.5, 2.5, 1.5 }
            }
    }
})

PostPosted: Sun Feb 10, 2013 22:48
by 4aiman
That what would happen sometimes if your textures are of different resolution...

PostPosted: Sun Feb 10, 2013 22:50
by lkjoel
4aiman wrote:That what would happen sometimes if your textures are of different resolution...

But they are of the same resolution

PostPosted: Mon Feb 11, 2013 01:23
by Menche
I don't think nodeboxes like being made larger than one node. It might be better to use two nodes.

PostPosted: Mon Feb 11, 2013 01:32
by lkjoel
Menche wrote:I don't think nodeboxes like being made larger than one node. It might be better to use two nodes.

Thanks, I'm doing that :)

PostPosted: Mon Feb 11, 2013 05:54
by 4aiman
lkjoel wrote:
4aiman wrote:That what would happen sometimes if your textures are of different resolution...

But they are of the same resolution

No, they aren't. 24x24 for top and bottom and 40x60 for the side. Also your world using 16x16 textures. Still think they're equal? ;)

Anyway, 2 nodes instead of one will "fix" that. Like my teacher used to say: "There are 2 types of programs: not-working-at-all ones and malfunctioning ones" ;)
So, I don't really care how you will do this, I'm to anxious about results :)
-Total support-