Page 1 of 1

help me with wide nodebox

PostPosted: Sun Oct 21, 2012 20:57
by nomohakon
Hi, i wrote wide nodebox, but the texture is deformed.
Image
Image
Is it even posible?

EDIT:
Image
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
minetest.register_node("notes:note", {
    description = "Note",
    drawtype = "nodebox",
    tiles = {"128x20_nomohakon.png"},
    inventory_image = "notes_note.png",
    wield_image = "notes_note.png",
    paramtype = "light",
    paramtype2 = "facedir",
    sunlight_propagates = true,
    walkable = false,
    node_box = {
        type = "fixed",
        fixed = {
        {-4, -0.625, 0.4375, 4, 0.625, 0.50},
        },
    },
    selection_box = {
        type = "fixed",
        fixed = {
        {-4, -0.625, 0.4375, 4, 0.625, 0.50},
        },
    },
    groups = {dig_immediate=3},
})

PostPosted: Sun Oct 21, 2012 21:38
by Mito551
Are your tex sides equal?

PostPosted: Sun Oct 21, 2012 22:01
by nomohakon
No. Its 128 x 20 px.

PostPosted: Mon Oct 22, 2012 03:53
by Mito551
that's the reason. i don't know how to do it the way you want it to be done, though.

i think through nodebox drawtype. like in 3dfurniture.

PostPosted: Mon Oct 22, 2012 10:39
by PilzAdam
If the nodeboxes are greater than 0.5 the engine cant handle the texturing and some strange looking results are the consequence. Try using more than one block to get this big structures (see the big pumpkin from my farming mod for example).