Node Box Editor [0.9.2]

User avatar
v-rob
Member
 
Posts: 683
Joined: Thu Mar 24, 2016 03:19
Location: Right behind you.
GitHub: v-rob

Re: Node Box Editor [0.9.2]

by v-rob » Sat Nov 17, 2018 05:21

I find this tool very useful, but there's only one problem that I have found with it. When rotating with WASD in the perspective view, it moves very slowly. It takes over two minutes to move 90 degrees, which is very annoying and impractical. I'm running it on Windows 10, by the way.
 

User avatar
Lone_Wolf
Member
 
Posts: 2186
Joined: Sun Apr 09, 2017 05:50
Location: Hopefully very far from yours, snoop :P
GitHub: LoneWolfHT
IRC: Lone_Wolf
In-game: Lone_Wolf

Re: Node Box Editor [0.9.2]

by Lone_Wolf » Sat Nov 17, 2018 05:29

v-rob wrote:I find this tool very useful, but there's only one problem that I have found with it. When rotating with WASD in the perspective view, it moves very slowly. It takes over two minutes to move 90 degrees, which is very annoying and impractical. I'm running it on Windows 10, by the way.

I use Linux and it does about 360 every 2 seconds. Not sure why it's different 6o.o
 

User avatar
runs
Member
 
Posts: 797
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy
 

User avatar
BirgitLachner
Member
 
Posts: 379
Joined: Thu May 05, 2016 10:18
In-game: Bibs

Re: Node Box Editor [0.9.2]

by BirgitLachner » Thu Jan 10, 2019 19:09

No ... it export to the code that is used in Nodebox definitions. This is a collection of edges points that defines the cuboids that are assembled to the node.
 

User avatar
rubenwardy
Moderator
 
Posts: 5834
Joined: Tue Jun 12, 2012 18:11
Location: United Kingdom
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: Node Box Editor [0.9.2]

by rubenwardy » Thu Jan 10, 2019 19:17

runs wrote:Nodebox exports to obj?


Nodebox does include an exporter to OBJ, but it should only be used when you want to import the model into Blender.

It is more efficient to use Minetest's builtin nodebox to mesh builder than NBE's nodebox to OBJ exporter
 

KCoombes
Member
 
Posts: 412
Joined: Thu Jun 11, 2015 23:19
Location: SW Florida, USA
In-game: Knatt

Re: Node Box Editor [0.9.2]

by KCoombes » Fri Feb 01, 2019 16:26

rubenwardy wrote:
runs wrote:Nodebox exports to obj?


Nodebox does include an exporter to OBJ, but it should only be used when you want to import the model into Blender.

It is more efficient to use Minetest's builtin nodebox to mesh builder than NBE's nodebox to OBJ exporter



Where is that please?
Also, I get a crash to desktop when opening .nbe files, project.txt files, and importing .png files for applying textures - at this point, NBE is nearly unusable.
Last edited by KCoombes on Sun Feb 03, 2019 15:50, edited 1 time in total.
 

Christian_Soldier
Member
 
Posts: 158
Joined: Thu Feb 08, 2018 17:36
In-game: Christian_Soldier

Re: Node Box Editor [0.9.2]

by Christian_Soldier » Fri Feb 01, 2019 17:40

KCoombes wrote:
rubenwardy wrote:
runs wrote:Nodebox exports to obj?


Nodebox does include an exporter to OBJ, but it should only be used when you want to import the model into Blender.

It is more efficient to use Minetest's builtin nodebox to mesh builder than NBE's nodebox to OBJ exporter



Where is that please?
Also, I get a crash to desktop when opening .nbe files.

I would like to know, too.
plz see my map from The Stanley Parable. https://forum.minetest.net/viewtopic.php?f=12&t=19944&p=0&e=0
 

wziard
Member
 
Posts: 126
Joined: Mon Oct 29, 2018 19:12

Re: Node Box Editor [0.9.2]

by wziard » Mon Feb 11, 2019 12:35

I think he means " just don't convert it, minetest will build a mesh when it loads the nodebox object."
 

User avatar
runs
Member
 
Posts: 797
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Re: Node Box Editor [0.9.2]

by runs » Sat Feb 16, 2019 22:53

Hey guys I get in trouble with this.

Image

I've create this cute kitty. And now I want to know its collisionbox.

From the Modding Dev Wiki:

Code: Select all
 box is defined as:

 {x1, y1, z1, x2, y2, z2}

A box of a regular node would look like:

 {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},


And the Modding Book tells that the first point is 'bottom front left' and the second one is the opposite.

Image

So is it my picture correct?

Why is 0.5 and not 1? Where is the (0,0,0) point? Is it the center of the cube? What it means the negative numbers?

In the NodeBoxEditor and my example: the 'bottom front left' is the right leg of the cat (from the cat perspective)?

I know that 'y' is the height, but how to diferenciate x of z? In my cube picture above, what is the x and the z?

I hated geometry/maths in the school :-(
 

User avatar
runs
Member
 
Posts: 797
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Re: Node Box Editor [0.9.2]

by runs » Sat Feb 16, 2019 23:09

I mean the next cube:

Image

The center is (0,0,0) of an 1x1x1 cube

Going to the right/back/up means a positive number til (0.5, 0.5, 0.5) and going to left/forward/down means a negative number til (-0.5, -0.5, -0.5)

Am I right?
 

ShadMOrdre
Member
 
Posts: 523
Joined: Mon Dec 29, 2014 08:07
Location: USA
GitHub: ShadMOrdre
In-game: shadmordre

Re: Node Box Editor [0.9.2]

by ShadMOrdre » Sun Feb 17, 2019 04:50

runs,

You are correct. In the example:

{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5} equates to

{-x, -y, -z, +x, +y, +z}.

Your collision and selection boxes can be set to whatever you'd like. If you omit them, they take the nodebox definition as their own. However, this produces lag. The selection and collision boxes should be set to the smallest box that encompasses the nodebox.
MY MODS: lib_ecology lib_materials lib_clouds lib_node_shapes ---- Inspired By: Open Source Virtual World Simulator Opensimulator.
 

User avatar
runs
Member
 
Posts: 797
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Re: Node Box Editor [0.9.2]

by runs » Wed Feb 20, 2019 16:29

I have problems with collision boxes. With the cat above, If I export it to .nbe:

fixed = {
{-0.125, -0.5, 0.0625, -0.0625, -0.375, 0.125}, -- back_right_leg
{-0.125, -0.5, -0.1875, -0.0625, -0.375, -0.125}, -- front_right_leg
{0, -0.5, -0.1875, 0.0625, -0.375, -0.125}, -- front_left_leg
{0, -0.5, 0.0625, 0.0625, -0.375, 0.125}, -- back_left_leg
{-0.125, -0.375, -0.1875, 0.0625, -0.25, 0.125}, -- body
{-0.125, -0.3125, -0.3125, 0.0625, -0.125, -0.125}, -- head
{-0.0625, -0.3125, 0.125, 0.0, -0.25, 0.1875}, -- top_tail
{-0.125, -0.125, -0.25, -0.0625, -0.0625, -0.1875}, -- right_ear
{-0.0625, -0.375, 0.1875, 0.0, -0.3125, 0.3125}, -- bottom_tail
{0, -0.125, -0.25, 0.0625, -0.0625, -0.1875}, -- left_ear
},


And then if I make a collision box of:

collisionbox = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}, The cat is put slightly below this collisionbox, I have to set it to:

collisionbox = {-0.5, -0.75, -0.5, 0.5, 0.5, 0.5},

to the cat being place in the low part of the cube.

Why is this -0.25 of difference? I do not understand the reference for the colllisionbox... I mean that is not an absolute reference but relative to what?
 

ShadMOrdre
Member
 
Posts: 523
Joined: Mon Dec 29, 2014 08:07
Location: USA
GitHub: ShadMOrdre
In-game: shadmordre

Re: Node Box Editor [0.9.2]

by ShadMOrdre » Wed Feb 20, 2019 20:11

runs,

try this. make sure to replace the tile textures. You can replace the boxes within the collision_box with the boxes defined in the node_box, if you want that level of detail, or simply shrink the collision_box to a single box that is large enough to contain the node boxes.

Code: Select all
   minetest.register_node("nodebox_test:node_cat", {
      description = "Cat",
      drawtype = "nodebox",
      tiles = {
         "cat_top.png",
         "cat_bottom.png",
         "cat_side_right.png",
         "cat_side_left.png",
         "cat_back.png",
         "cat_front.png",
      },
      paramtype = "light",
      paramtype2 = "facedir",
      groups = { fleshy = 1 },
      node_box = {
         type = "fixed",
         fixed = {
            {-0.125, -0.5, 0.0625, -0.0625, -0.375, 0.125}, -- back_right_leg
            {-0.125, -0.5, -0.1875, -0.0625, -0.375, -0.125}, -- front_right_leg
            {0, -0.5, -0.1875, 0.0625, -0.375, -0.125}, -- front_left_leg
            {0, -0.5, 0.0625, 0.0625, -0.375, 0.125}, -- back_left_leg
            {-0.125, -0.375, -0.1875, 0.0625, -0.25, 0.125}, -- body
            {-0.125, -0.3125, -0.3125, 0.0625, -0.125, -0.125}, -- head
            {-0.0625, -0.3125, 0.125, 0.0, -0.25, 0.1875}, -- top_tail
            {-0.125, -0.125, -0.25, -0.0625, -0.0625, -0.1875}, -- right_ear
            {-0.0625, -0.375, 0.1875, 0.0, -0.3125, 0.3125}, -- bottom_tail
            {0, -0.125, -0.25, 0.0625, -0.0625, -0.1875}, -- left_ear
         },
      },
      collision_box = {
         type = "fixed",
         fixed = {
            {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
         },
      },
   })
MY MODS: lib_ecology lib_materials lib_clouds lib_node_shapes ---- Inspired By: Open Source Virtual World Simulator Opensimulator.
 

User avatar
TumeniNodes
Member
 
Posts: 2826
Joined: Fri Feb 26, 2016 19:49
Location: in the dark recesses of the mind
GitHub: TumeniNodes
IRC: tumeninodes
In-game: TumeniNodes

Re: Node Box Editor [0.9.2]

by TumeniNodes » Wed Feb 20, 2019 22:49

For what you are attempting to achieve here, you would be better off using models, not nodeboxes.
Ich mag keine grünen Eier und Schinken, ich mag sie nicht Sam I Am
 

ShadMOrdre
Member
 
Posts: 523
Joined: Mon Dec 29, 2014 08:07
Location: USA
GitHub: ShadMOrdre
In-game: shadmordre

Re: Node Box Editor [0.9.2]

by ShadMOrdre » Thu Feb 21, 2019 03:48

Do you know of a lightweight app for Lubuntu that makes .obj files?

I'm not really a 3D modeller, but can kinda work Meshlab on Windows. I run a Win7 VM on Lubuntu 17.10. Blender seems overkill for simple models.
MY MODS: lib_ecology lib_materials lib_clouds lib_node_shapes ---- Inspired By: Open Source Virtual World Simulator Opensimulator.
 

User avatar
runs
Member
 
Posts: 797
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Re: Node Box Editor [0.9.2]

by runs » Thu Feb 21, 2019 23:12

TumeniNodes wrote:For what you are attempting to achieve here, you would be better off using models, not nodeboxes.


Well, I am creating both indeed, first nodeboxes and then converting to meshes, and an option to toggle in a config file.

Pros:
Nodeboxes = Fast.
Models = Realiable.

Cons:
Nodeboxes = Static
Meshes = Dynamic
Last edited by runs on Thu Feb 21, 2019 23:15, edited 2 times in total.
 

User avatar
runs
Member
 
Posts: 797
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy
 

User avatar
runs
Member
 
Posts: 797
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Re: Node Box Editor [0.9.2]

by runs » Fri Feb 22, 2019 13:51

Another thing I wonder why is that 'Front' in NodeBoxEditor is 'Back' in Blender and Minetest. I have to rotate 180º.
 

User avatar
runs
Member
 
Posts: 797
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy
 

Kilarin
Member
 
Posts: 774
Joined: Mon Mar 10, 2014 00:36

Re: Node Box Editor [0.9.2]

by Kilarin » Fri May 31, 2019 04:03

I'm afraid I'm being an idiot.
I've got two nodes defined with nodeboxes that were designed to be upright, I need them rotated 90 degrees vertically.
(its a skull, and skeleton. Instead of standing, I need it to default to laying on its back)
I thought, no problem, I'll fire up that nodebox editor and load the lua and rotate it!
except, while nodebox editor will export lua, I don't see any way to IMPORT lua. Am I just missing it?

thanks!
 

Previous

Return to Minetest-related projects



Who is online

Users browsing this forum: No registered users and 2 guests