Basic node_box model examples

User avatar
thefamilygrog66
Member
 
Posts: 169
Joined: Mon Jul 09, 2012 19:08
Location: Ontario, Canada

by thefamilygrog66 » Wed Sep 18, 2013 15:44

Here's the nodebox info for my Lava Lamps [lavalamp] mod - an attempt at making vertical cylinders, I suppose!

Code: Select all
node_box = {
    type = "fixed",
    fixed = {
        -- base
        { -0.1875, -0.5, -0.1875, 0.1875, -0.3125, 0.1875, },
        { -0.125, -0.5, -0.25, 0.125, -0.3125, -0.1875, },
        { -0.25, -0.5, -0.125, -0.1875, -0.3125, 0.125, },
        { 0.1875, -0.5, -0.125, 0.25, -0.3125, 0.125, },
        { -0.125, -0.5, 0.1875, 0.125, -0.3125, 0.25, },
        -- lamp
        { -0.125, -0.3125, -0.125, 0.125, 0.5, 0.125, },
        { -0.0625, -0.3125, -0.1875, 0.0625, 0.5, -0.125, },
        { -0.0625, -0.3125, 0.125, 0.0625, 0.5, 0.1875, },   
        { -0.1875, -0.3125, -0.0625, 0.125, 0.5, 0.0625, },
        { 0.125, -0.3125, -0.0625, 0.1875, 0.5, 0.0625, },   
    },
},


Image
 

User avatar
thefamilygrog66
Member
 
Posts: 169
Joined: Mon Jul 09, 2012 19:08
Location: Ontario, Canada

by thefamilygrog66 » Wed Sep 18, 2013 16:35

super_tnt wrote:Can I make a request for my upcoming mod? I'd like 3 cylinders, one for up and down, 2 for the 2 lying down. I looked at the barrel but it wasn't centred and I'm unsure of how to centre this, also it should be able to stack next to each other.


The round trees from tonyka's 3dforniture mod were also cylindrical:

Code: Select all
node_box = {
        type = "fixed",
        fixed = {
            {-0.35,-0.5,-0.4,0.35,0.5,0.4},
            {-0.4,-0.5,-0.35, 0.4,0.5,0.35},
            {-0.25,-0.5,-0.45,0.25,0.5,0.45},
            {-0.45,-0.5,-0.25, 0.45,0.5,0.25},
            {-0.15,-0.5,-0.5,0.15,0.5,0.5},
            {-0.5,-0.5,-0.15, 0.5,0.5,0.15},
        },
    },
 

super_tnt
Member
 
Posts: 22
Joined: Mon Sep 02, 2013 17:56

by super_tnt » Wed Sep 18, 2013 17:30

Oh ok, that worked nicely.
Last edited by super_tnt on Wed Sep 18, 2013 18:37, edited 1 time in total.
 

dgm5555
Member
 
Posts: 244
Joined: Tue Apr 08, 2014 19:45

Re: Basic node_box model examples

by dgm5555 » Sun Mar 22, 2015 08:24

I'm making an anvil with a base texture that I want different to the head, and a chest and cauldren which I want inside texture different to outside. Is there any way of having different textures for different cubics within a node coded in lua, or do I have to make a 3d model for this?

Also is there a way of rotating/mirroring a texture in the node definition rather than having to do it manually (eg for a door where the hinges are mirrored on front/back of the door)?
 

Hybrid Dog
Member
 
Posts: 2497
Joined: Thu Nov 01, 2012 12:46

Re: Basic node_box model examples

by Hybrid Dog » Wed Mar 25, 2015 14:15

dgm5555 wrote:Also is there a way of rotating/mirroring a texture in the node definition rather than having to do it manually (eg for a door where the hinges are mirrored on front/back of the door)?

http://dev.minetest.net/texture
 

dgm5555
Member
 
Posts: 244
Joined: Tue Apr 08, 2014 19:45

Re: Basic node_box model examples

by dgm5555 » Thu Mar 26, 2015 23:05

@HybridDog Brilliant thanks, I'd never found that page
 

Previous

Return to WIP Mods



Who is online

Users browsing this forum: Yahoo [Bot] and 6 guests