help me with wide nodebox

User avatar
nomohakon
Member
 
Posts: 207
Joined: Fri Aug 10, 2012 16:34
IRC: nomohakon
In-game: nomohakon

help me with wide nodebox

by nomohakon » Sun Oct 21, 2012 20:57

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},
})
Last edited by nomohakon on Sun Oct 21, 2012 22:55, edited 1 time in total.
"To learn who rules over you, simply find out who you are not allowed to criticize." - Voltaire
"Knowledge, like air, is vital to life. Like air, no one should be denied it." - Alan Moore, V for Vendetta
- - -
"To never die... and to conquer all, that is winning." ―Illyria
 

User avatar
Mito551
Member
 
Posts: 1271
Joined: Sat Jun 16, 2012 15:03

by Mito551 » Sun Oct 21, 2012 21:38

Are your tex sides equal?
 

User avatar
nomohakon
Member
 
Posts: 207
Joined: Fri Aug 10, 2012 16:34
IRC: nomohakon
In-game: nomohakon

by nomohakon » Sun Oct 21, 2012 22:01

No. Its 128 x 20 px.
"To learn who rules over you, simply find out who you are not allowed to criticize." - Voltaire
"Knowledge, like air, is vital to life. Like air, no one should be denied it." - Alan Moore, V for Vendetta
- - -
"To never die... and to conquer all, that is winning." ―Illyria
 

User avatar
Mito551
Member
 
Posts: 1271
Joined: Sat Jun 16, 2012 15:03

by Mito551 » Mon Oct 22, 2012 03:53

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.
Last edited by Mito551 on Mon Oct 22, 2012 03:54, edited 1 time in total.
 

User avatar
PilzAdam
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Mon Oct 22, 2012 10:39

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).
 


Return to Minetest General

Who is online

Users browsing this forum: No registered users and 29 guests