[Mod] Mesh primitive objects [0.22] [slope_test]

User avatar
VanessaE
Moderator
Posts: 4549
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE
Location: Western NC
Contact:

[Mod] Mesh primitive objects [0.22] [slope_test]

by VanessaE » Post

Here's a simple mod that uses the new mesh draw type to supply some geometric primitives and a few shapes derived from them, suitable for roof shingles, columns, etc.

These aren't entities, they're nodes, and unlike the old method of using tons of small nodeboxes to create shapes, they are perfectly flat and/or diagonal and/or round (well, as much so as a computer is capable of anyway). The slopes consist of only a few faces/polygons each, while the more rounded objects have far more (though enormously less than a nodebox-based equivalent at a passable resolution would have).

All of the objects are based on Blender's built-in primitives. Why re-invent the wheel, right? :-)

Image
Some of the shapes that can be made with this mod. The inventory at the bottom shows the full set of primitives.

Usage:

Nothing special to using them really. Get a few (creative or /giveme, see list below) and place them. Note that a few of these only have the "_onetexture" variety. The one-piece "long" slope takes up two nodes; point at where the back/thick end should go. The code does not check for adequate space before placing. Also, the code does not attempt to auto-place the front/back halves of the two-node version of the long slope..
+ Spoiler
Technical info:
+ Spoiler
Convert and update old stuff!

Got nodebox models you want to import into Blender for further editing? Try my bash script below to help out.
+ Spoiler
Depends: minetest_game/default and Minetest engine development build from commit d2219171 or later (anything older will either just show cubes, or models that are way too small).

Download:
slope_test-23.zip
(2.76 MiB) Downloaded 351 times
License: WTFPL for code and models, CC-By-SA for the textures.
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)

User avatar
philipbenr
Member
Posts: 1704
Joined: Fri Jun 14, 2013 01:56
GitHub: philipbenr
IRC: philipbenr
In-game: robinspi
Location: United States

Re: [Mod] Meshes Slope test [0.1][slope_test]

by philipbenr » Post

Cool. /me searches for the download... :(

This will help speed the learning process. I need to learn UV texturing for my Subgame. Thanks VanessaE!

User avatar
ExeterDad
Member
Posts: 1717
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad
Location: New Hampshire U.S.A

Re: [Mod] Mesh slopes test [0.1][slope_test]

by ExeterDad » Post

Thanks VanessaE
Valuable learning tool. Totally re-invents the wheel... errr Block.

At the time I was just getting off my butt and mastering a nodebox or two. :D

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

Re: [Mod] Mesh slopes test [0.1][slope_test]

by Linuxdirk » Post

Looks great! I hope all requirements for this will make it in Minetest 0.5.x and the new technique will make it into home decor and thus into Carbone game :)

TriBlade9
Member
Posts: 89
Joined: Fri Sep 05, 2014 09:35

Re: [Mod] Mesh slopes test [0.1][slope_test]

by TriBlade9 » Post

Awesome Vanessa! That looks absolutely wonderful, and it has so many more implications for the game. Keep up the good work!

User avatar
Minetestforfun
Member
Posts: 940
Joined: Tue Aug 05, 2014 14:09
GitHub: MinetestForFun
IRC: MinetestForFun
In-game: MinetestForFun
Location: On earth
Contact:

Re: [Mod] Mesh slopes test [0.1][slope_test]

by Minetestforfun » Post

Wow, good work VanessaE !

Hashlime
Member
Posts: 12
Joined: Fri Oct 17, 2014 23:36

Re: [Mod] Mesh slopes test [0.1][slope_test]

by Hashlime » Post

Really cool but the collision/selection box can't be defined with the .obj ?

User avatar
Nathan.S
Member
Posts: 1045
Joined: Wed Sep 24, 2014 17:47
GitHub: NathanSalapat
IRC: NathanS21
In-game: NathanS21
Location: Bigsby Texas
Contact:

Re: [Mod] Mesh slopes test [0.1][slope_test]

by Nathan.S » Post

Looking very cool. Just in time to add 3d models to my new mod.
I record Minetest videos, Mod reviews, Modding tutorials, and Lets plays.
Check out my website, and brand new Minetest Modding Course

User avatar
VanessaE
Moderator
Posts: 4549
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE
Location: Western NC
Contact:

Re: [Mod] Mesh slopes test [0.1][slope_test]

by VanessaE » Post

New version, fixes the texture errors some folks had with the previous one (Irrlicht rounding errors at the edges of the UV objects?). Also got rid of some redundant/leftover files.

This required that I rearrange the texture maps slightly and enlarge them to 64x64px, to allow for some added space between the various objects so that there is room to lay down some border pixels around them.

See first post attachment.
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)

User avatar
Don
Member
Posts: 1643
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: [Mod] Mesh slopes test [0.6][slope_test]

by Don » Post

Wow. That's all I can say is wow
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here

User avatar
VanessaE
Moderator
Posts: 4549
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE
Location: Western NC
Contact:

Re: [Mod] Mesh slopes test [0.6][slope_test]

by VanessaE » Post

Update: new version. Now there are versions of these models in the mod that use ordinary texture files (these just happen to point to default_stone.png), so they'll work with any texture or texture packs you want. These secondary models should be suitable as drop-in replacements for all those nodebox-based slopes that were derived from the ones Jeija's "irregular" mod.

...and this time the screenshot shows the original wood texture on the neighboring cubes instead of the tweaked one that my game uses. ;-)
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)

User avatar
Don
Member
Posts: 1643
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: [Mod] Mesh slopes test [0.7][slope_test]

by Don » Post

I just compiled the latest minetest. was playing with your slopes. They look awesome.

One thing I did notice is when bumpmapping is turned on the texture looks blury. I don't usually use bumpmapping so it isnt a big deal to me. Just though I would let you know.

Besides that I am very impressed.

screenshot
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here

User avatar
VanessaE
Moderator
Posts: 4549
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE
Location: Western NC
Contact:

Re: [Mod] Mesh slopes test [0.7][slope_test]

by VanessaE » Post

Try the stone-based ones. They use the original default textures, so they'll do whatever a stone block does. Feel free to edit the code to swap in, say, wood or sandstone, or any other standard texture.
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)

User avatar
Don
Member
Posts: 1643
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: [Mod] Mesh slopes test [0.7][slope_test]

by Don » Post

VanessaE wrote:Try the stone-based ones. They use the original default textures, so they'll do whatever a stone block does. Feel free to edit the code to swap in, say, wood or sandstone, or any other standard texture.
The stone works great with bumpmapping.
I plan on doing some swapping and playing. I just wish I knew Blender so I can make more models.

Thanks for your hard work!
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here

User avatar
VanessaE
Moderator
Posts: 4549
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE
Location: Western NC
Contact:

Re: [Mod] Mesh slopes test [0.7][slope_test]

by VanessaE » Post

New version, just moved the .blend files to their own folder to keep them out of the way (some folks' Minetest clients were throwing warnings because of their presence in the models/ folder).
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)

User avatar
VanessaE
Moderator
Posts: 4549
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE
Location: Western NC
Contact:

Re: [Mod] Mesh primitive objects [0.10] [slope_test]

by VanessaE » Post

New version, includes blender's cylinder primitive now.

EDIT: updated to v0.10, made the texture for the UV-map version of the cylinder 64x64 px so that the pixels don't look stretched out.
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)

User avatar
Don
Member
Posts: 1643
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: [Mod] Mesh primitive objects [0.10] [slope_test]

by Don » Post

VanessaE wrote:New version, includes blender's cylinder primitive now.

EDIT: updated to v0.10, made the texture for the UV-map version of the cylinder 64x64 px so that the pixels don't look stretched out.
You're on a roll! Great work.
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here

User avatar
Topywo
Member
Posts: 1721
Joined: Fri May 18, 2012 20:27

Re: [Mod] Mesh primitive objects [0.10] [slope_test]

by Topywo » Post

Thanks VanessaE :-)
I tested the versions before cylinders and they looked good (I prefer the full collison box by the way).

I have one (very general) question you may know the answer.
What impact have the meshnodes on the performance of minetest compared with other node types?

User avatar
jp
Member
Posts: 803
Joined: Wed Dec 18, 2013 09:03
GitHub: kilbith
Location: France

Re: [Mod] Mesh primitive objects [0.10] [slope_test]

by jp » Post

Topywo wrote:What impact have the meshnodes on the performance of minetest compared with other node types?
Equivalent or even better. All meshes (nodeboxes included) are directly handled by Irrlicht.

User avatar
VanessaE
Moderator
Posts: 4549
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE
Location: Western NC
Contact:

Re: [Mod] Mesh primitive objects [0.11] [slope_test]

by VanessaE » Post

Update: Version 0.11, added models equivalent to the various shapes found in Technic's CNC machine. Specifically, only those shapes where a model is actually needed: the quarter-rounded blocks, their corresponding corners, pyramids, and one other object I can only describe as a squared-sphere "blob". Meshes/models would be overkill for the other shapes provided by that machine.

See first post for download link and node list.
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)

User avatar
Inocudom
Member
Posts: 3096
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

Re: [Mod] Mesh primitive objects [0.11] [slope_test]

by Inocudom » Post

VanessaE wrote:Update: Version 0.11, added models equivalent to the various shapes found in Technic's CNC machine. Specifically, only those shapes where a model is actually needed: the quarter-rounded blocks, their corresponding corners, pyramids, and one other object I can only describe as a squared-sphere "blob". Meshes/models would be overkill for the other shapes provided by that machine.

See first post for download link and node list.
Nodebox models draw all faces of all cubes that they are made of, which is in contrast to the fact that meshes do not have this flaw. Of course, very simple nodebox models shouldn't need to become meshes, unless a gain in fps could come from doing so.
You can now find my videos at BitChute: https://www.bitchute.com/channel/some_cheeky_jinuskian/

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

Re: [Mod] Mesh primitive objects [0.11] [slope_test]

by rubenwardy » Post

All nodeboxes are converted to mesh nodes now when the game is loading, iirc.

User avatar
Krock
Developer
Posts: 4570
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

Re: [Mod] Mesh primitive objects [0.11] [slope_test]

by Krock » Post

Yay! Totally round nodes exist now!
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

Esteban
Member
Posts: 873
Joined: Sun Sep 08, 2013 13:26
GitHub: Esteban-
IRC: Esteban
In-game: Esteban
Location: Somewhere in the Caribbean...

Re: [Mod] Mesh primitive objects [0.11] [slope_test]

by Esteban » Post

Krock wrote:Yay! Totally round nodes exist now!
Could smooth grass hills can be done using meshnodes? :D
+ Spoiler

User avatar
Evergreen
Member
Posts: 2135
Joined: Sun Jan 06, 2013 01:22
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen
Location: A forest in the midwest
Contact:

Re: [Mod] Mesh primitive objects [0.11] [slope_test]

by Evergreen » Post

For some reason, the new meshnodes aren't working for me. I have the latest git version, but they just appear as cubes.
Back from the dead!

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest