Stair corners for MTG

Post Reply
User avatar
burli
Member
Posts: 1643
Joined: Fri Apr 10, 2015 13:18

Stair corners for MTG

by burli » Post

I start to add stair corners to MTG. Currently I use the nodeboxes from moreblocks, but they should be replaced by mesh nodes. But because I can't do it myself I need someone who can make mesh nodes for me.

I also need recipes for the inner and outer corner. Any suggestions? As far as I know Minecraft has no recipes because they are only generated when placing stairs automatically

My suggestion is (output 5)

Code: Select all

recipe = {
	{recipeitem, "", ""},
	{recipeitem, recipeitem, recipeitem},
}
and maybe (output 6)

Code: Select all

recipe = {
	{recipeitem, recipeitem, ""},
	{recipeitem, recipeitem, recipeitem},
}
They are not used in MTG

User avatar
burli
Member
Posts: 1643
Joined: Fri Apr 10, 2015 13:18

Re: Stair corners for MTG

by burli » Post

It is now possible to place stair corners upside down. (Without screwdriver)

Image
Attachments
screenshot_20170516_202718.jpg
screenshot_20170516_202718.jpg (197.1 KiB) Viewed 466 times

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

Re: Stair corners for MTG

by TumeniNodes » Post

We did not yet have these?
viewtopic.php?f=9&t=13018&hilit=stairsio

granted the textures should be modified to match up better via texture mapping
A Wonderful World

User avatar
burli
Member
Posts: 1643
Joined: Fri Apr 10, 2015 13:18

Re: Stair corners for MTG

by burli » Post

Code should be compatible with current stairs and work together.

Mesh node and new textures can be done in a separate PR.

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

Re: Stair corners for MTG

by TumeniNodes » Post

Pithy made one (corner stairs) for Wuzzy for Mineclone2, I wonder if he added mesh files? Did you check that?
A Wonderful World

User avatar
burli
Member
Posts: 1643
Joined: Fri Apr 10, 2015 13:18

Re: Stair corners for MTG

by burli » Post

They use nodeboxes too

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

Re: Stair corners for MTG

by TumeniNodes » Post

I knew I had these somewhere... :P
sorry, can't remember who uploaded them here (so sorry whoever I could not remember to pass the credit)
you should be able to import your nodes so you can tell where it needs to be cut or added to.

I can try to do the two models you need over the weekend
other than this I would pm Nathan, for probably much faster and better results
Attachments
minetest_block_renders.zip
(198 KiB) Downloaded 60 times
A Wonderful World

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

Re: Stair corners for MTG

by TumeniNodes » Post

Can you try these?
I probably need to fix the normals.
Let me know any issues (there are bound to be some)
The texturing still needs to be done as well, but this is a start?
Attachments
corner stairs.zip
(126.02 KiB) Downloaded 58 times
A Wonderful World

User avatar
burli
Member
Posts: 1643
Joined: Fri Apr 10, 2015 13:18

Re: Stair corners for MTG

by burli » Post

Can you export them as b3d?

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

Re: Stair corners for MTG

by TumeniNodes » Post

Not sure, I do not have a b3d exporter, and most I have seen are dead-end links or sketchy. : /

I will search some more, please hold. (lame on hold music)
A Wonderful World

User avatar
Wuzzy
Member
Posts: 4803
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy
Contact:

Re: Stair corners for MTG

by Wuzzy » Post

Why the hell do stairs have to be meshes? Stairs are one of the simplest non-cube shapes possible. If not even stairs are allowed to be nodeboxes, then what is?
And doesn't this completely defeat the purpose of nodeboxes?

I like nodeboxes because they are super simple.

User avatar
burli
Member
Posts: 1643
Joined: Fri Apr 10, 2015 13:18

Re: Stair corners for MTG

by burli » Post

If I count right a stair needs 20 triangles if you make a mesh, but 24 as a nodebox. Because you can use a lot of stairs a mesh is better

And I'm sorry that I want to have b3d. Of course obj is a good choice. Will try it soon

User avatar
Wuzzy
Member
Posts: 4803
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy
Contact:

Re: Stair corners for MTG

by Wuzzy » Post

Doesn't Minetest try to optimize nodeboxes automatically? It would be sad if we have to (de facto) give up node boxes for performance reasons.

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

Re: Stair corners for MTG

by TumeniNodes » Post

Minetest optimizes nodeboxes by rendering what you can see, which for a single node (or cube) at any given time is 3 faces, out of 6,

The nodebox for, say the outer stair, would render 6 faces total, or max., because it takes two nodeboxes to create. Where as a mesh will be only 3 faces max.

Each face contains a number of triangles/vertaces of each triangle. So, even though MT uses optimization methods for nodeboxes, a mesh is even more optimized, by reducing the number of faces rendered.

This is not meaning that nodeboxes are being given up, it comes down to which method is the best choice regarding optimization, period.

This is how I understand this situation
A Wonderful World

User avatar
Linuxdirk
Member
Posts: 3219
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: Stair corners for MTG

by Linuxdirk » Post

TumeniNodes wrote:The nodebox for, say the outer stair, would render 6 faces total, or max., because it takes two nodeboxes to create. Where as a mesh will be only 3 faces max.
I wonder if something like for _,box in pairs(additional_nodebox) do table.insert(nodebox, box) end is possible for combining meshes like you can do with nodeboxes (the example code adds the additional_nodebox nodebox definition to the nodebox named nodebox definition).

User avatar
LordStephen77
Member
Posts: 33
Joined: Mon May 22, 2017 15:26

Re: Stair corners for MTG

by LordStephen77 » Post

I've been waiting for the corner stairs for years. I'm anxious to see the results. It seems to be an interesting project and well done. Thank you guys.

User avatar
GreenXenith
Member
Posts: 1356
Joined: Wed Oct 28, 2015 01:26
GitHub: GreenXenith
Location: UTC-8:00
Contact:

Re: Stair corners for MTG

by GreenXenith » Post

Corner stairs are being added to MTG.
YouTube | Mods | Patreon | Minetest Discord @greenxenith

You should not be able to read this message.

User avatar
burli
Member
Posts: 1643
Joined: Fri Apr 10, 2015 13:18

Re: Stair corners for MTG

by burli » Post

GreenDimond wrote:Corner stairs are being added to MTG.
But not in 0.4.16 because of feature freeze.

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

Re: Stair corners for MTG

by TumeniNodes » Post

burli wrote:
GreenDimond wrote:Corner stairs are being added to MTG.
But not in 0.4.16 because of feature freeze.
I tried to claim it as a bug :P
Even sofar, (not quoting him) has said that Minetest Game does not have stairs which handle corners well, in the past.
So to me, that constitutes as a "bug", and bug fixes are allowed :D
But that comment seemed to remain completely ignored, oh well

That's why I avoid trying to get in on techy convos, I just get ignored because I'm not a programmer/coder

It will be nice to see this added when it is though.
A Wonderful World

Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests