Node Box Editor [0.9.2]

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

Re: Node Box Editor [0.9.2]

by v-rob » Post

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: 2326
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: Lone_Wolf or LoneWolfHT
In-game: Lone_Wolf
Location: Not there, THERE!

Re: Node Box Editor [0.9.2]

by Lone_Wolf » Post

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: 1510
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Re: Node Box Editor [0.9.2]

by runs » Post

Nodebox exports to obj?
Day 42 of the quarantine

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

Re: Node Box Editor [0.9.2]

by BirgitLachner » Post

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: 6072
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: United Kingdom
Contact:

Re: Node Box Editor [0.9.2]

by rubenwardy » Post

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
In-game: Knatt
Location: SW Florida, USA

Re: Node Box Editor [0.9.2]

by KCoombes » Post

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 » Post

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. 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 » Post

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: 1510
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Re: Node Box Editor [0.9.2]

by runs » Post

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 :-(
Day 42 of the quarantine

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

Re: Node Box Editor [0.9.2]

by runs » Post

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?
Day 42 of the quarantine

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

Re: Node Box Editor [0.9.2]

by ShadMOrdre » Post

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: 1510
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Re: Node Box Editor [0.9.2]

by runs » Post

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?
Day 42 of the quarantine

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

Re: Node Box Editor [0.9.2]

by ShadMOrdre » Post

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: 2853
Joined: Fri Feb 26, 2016 19:49
GitHub: TumeniNodes
IRC: tumeninodes
In-game: TumeniNodes
Location: in the dark recesses of the mind
Contact:

Re: Node Box Editor [0.9.2]

by TumeniNodes » Post

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: 602
Joined: Mon Dec 29, 2014 08:07
GitHub: ShadMOrdre
In-game: shadmordre
Location: USA

Re: Node Box Editor [0.9.2]

by ShadMOrdre » Post

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: 1510
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Re: Node Box Editor [0.9.2]

by runs » Post

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.
Day 42 of the quarantine

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

Re: Node Box Editor [0.9.2]

by runs » Post

...
Day 42 of the quarantine

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

Re: Node Box Editor [0.9.2]

by runs » Post

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

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

Re: Node Box Editor [0.9.2]

by runs » Post

I PR two issues to github also.
Day 42 of the quarantine

User avatar
Kilarin
Member
Posts: 778
Joined: Mon Mar 10, 2014 00:36

Re: Node Box Editor [0.9.2]

by Kilarin » Post

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!

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest