Page 1 of 5

[Mod] NonCubic Blocks Mod [1.4] [noncubic]

PostPosted: Wed Jan 02, 2013 12:36
by yves_de_beck
Okay the votig is finished:

The most of you like the milling machine menu transparent (original).
So i have uploaded a version with transparency as default.

-------------------------------------------------------------------

Hi all,

Since I have somehow never seen a pure mod with irregulars blocks, I now have even tinkered one. =)

Over 200 new blocks you can craft by a few recipes!!!!

The NonCubic Mod contains Crafting Recipes and a Milling Machine for :
- Slopes, Lying Slopes, Slope-Edge Parts, Slope/Edge Upside Down
- Cylinderblocks (Horizontal / Vertical), Spikes, Pyramids, Spheres
- different half height / normal height blocks (straight, edge, t-piece, cross)
- one / two side curved blocks
- sticks
- and the Milling Machine Block
- craft or mill it from many regular materials (tree, wood, dirt, stone, cobble, sandstone, bricks and iron)


More NonCubics and Materials coming soon...


Screenshot: (Smoother garden)
Image

Screenshot: (Cobblestone example)
Image

Screenshot:
Image

Screenshot: (Milling Machine)
Image

Screenshot:
Image

Screenshot:
Image

Screenshot:
Image

Screenshot:
Image



Recipes:

for Milling Machine Block:
Image

Craft NonCubics without Milling Machine:
Code: Select all
----------------------------------------
(o=nothing)
(x=regular stairblock of wood/stone/sandstone/cobble/brick,
 Normal Block of leaves, tree ,steel or
 dirt (only slope, slope edge, slope inner edge, pyramid, half sized elements))

Slope:
xoo   oox
xxo   oxx
xxx   xxx

Slope Lying:
(o=nothing)
(x=slope)
ooo
oxo
ooo

Slope Upside Down:
xxx   xxx
oxx   xxo
oox   xoo

Slope Edge:
ooo   ooo
xoo   oox
xxo   oxx

Slope Inner Edge:
oox   xoo
xoo   oox
xxo   oxx

Slope Edge Upside Down:
oxx   xxo
oox   xoo
ooo   ooo

Slope Inner Edge Upside Down:
oxx   xxo
oox   xoo
xoo   oox

Pyramid:
ooo
oxo
xox

Spike:
oxo
xox
xox

Block one curved edge:
oxx
xxx
xxx

Block two curved edge:
(o=nothing)
(x=block one curved edge)
ooo
xoo
xxo

Cylinder Vertical:
xxo
xxo
xxo
(You can also craft one cylinder vertical
 in a cylinder horizontal)

Cylinder Horizontal:
ooo
xxx
xxx
(You can also craft one cylinder horizontal
 in a cylinder vertical)

Sphere:
oxo
xox
oxo

Element Straight:
oxo
oxo
oxo

Element Edge:
xxx
oox
oox

Element T:
ooo
xxx
oxo

Element Cross:
oxo
xxx
oxo

Element End:
ooo
oxo
oxo

----------------------------------------

For double height Elements simply craft:
(o=nothing)
(x=element Straight, Edge, T, Cross or Element End)
ooo
xoo
xoo

----------------------------------------

Sticks:
(o=nothing)
(x=regular wood, stone, sandstone, cobble, brick,
 Block of leaves, tree or steel)
(y=regular wooden stick)
yoo
ooo
xoo

----------------------------------------



Dependencies:
Default
Stairs (If you want to craft NonCubic Blocks directly, without the Milling Machine Block)


Downloadlink: (Mod testet in Minetest v0.4.4)
http://www.stedefreun.de/download/noncubic.7z
or:
http://www.stedefreun.de/download/noncubic.zip


Options:

For faster high end PC's:
You can change the Detaillevel in the init.lua by your self:
At example change "detail_level = 16" from 16 to 32 or less
('The Default detail_level = 16' works very well for older PC's and looks good. =D)

Milling Machine Menu Background on / off (Default off):
Simply change value "allow_menu_background = true" in lua (true / false)


License:
GPLv2/later, textures: Default

Thnks to Jeija for code of slopes and cylinders =)
http://minetest.net/forum/viewtopic.php?id=2153

In the Screenshots are other mods used too, like the 3D Torches, Plantlife and X-Panes MOD.


Status (v1.4):
Working on:
done - add spike pyramid und sphere shape
done - user can change detail-level in init.lua
done - add element blocks (straight/edge/T/cross/end)
done - optimize code and recipes
done - upside down blocks
done - add 'slope inne edge' and 'slope inner edge upside down' shapes
done - support steel block to make noncubics
done - milling machine
done - one / two curved side shapes.
done - lying slope shapes.
to do - half height slope shapes.
removed - support wole (still not working correctly)
done - Milling Machine menu skin option (default, new style)
done - support tree block to make noncubics
done - making the mod a bit more realistic -> in the reality you can't make sticks or spheres from dirt
removed - Glass removed (but it comes back with new textures!!!)
done - fix Upside Down Slopes (one detail unit to small on z-axis)
to do - Inverted upside down slopes (like a bow for doors, windows etc.)

PostPosted: Wed Jan 02, 2013 12:41
by kaeza
Error:
/home/xxx/yyy/irregular.zip: Can not open file as archive

PostPosted: Wed Jan 02, 2013 12:52
by yves_de_beck
Hello kaeza,

I can open the archive...

try this link to 7z file:
http://www.stedefreun.de/download/noncubic.7z

PostPosted: Wed Jan 02, 2013 13:21
by Dopium
Interesting mod, i actually like it as you could have cobble round pillars for building. This gives me alot more building ideas, good job

PostPosted: Wed Jan 02, 2013 14:30
by JoeyXtreme
it's really weird to see shapes other than cubes in mineteset :P

PostPosted: Wed Jan 02, 2013 14:38
by Zeg9
That looks nice, but doesn't it make lag with so much blocks ?

PostPosted: Wed Jan 02, 2013 14:46
by kaeza
yves_de_beck wrote:Hello kaeza,

I can open the archive...

try this link to 7z file:
http://www.stedefreun.de/download/irregular.7z

Ok, now it's working. Now testing...

PostPosted: Wed Jan 02, 2013 15:22
by yves_de_beck
Zeg9 wrote:That looks nice, but doesn't it make lag with so much blocks ?


Hello Zeg9,

My PC ist not very fast, and it runs very well for me.
(Intel Atom 1,6 Ghz / 1Gb Ram)
Framerate between 20-30 Frames. I think it's OK. =)

Also you can change the detail level in the init.lua. Instructions in the description =)

PostPosted: Wed Jan 02, 2013 15:53
by PilzAdam
And I thought Minetest is about a voxel world...

PostPosted: Wed Jan 02, 2013 16:04
by Jeija
*cough*
The code seems somewhat "borrowed" from me:
http://minetest.net/forum/viewtopic.php?id=2153

Nice mod, but why don't you give credit but just license other people's code?

Would have been nicer if you had asked me, but I grant you permission for it.

PostPosted: Wed Jan 02, 2013 16:54
by Inocudom
For the round pillars, would the shape of an octagon be a better choice? There would be less polygons that way. The other blocks look quite nice.

PostPosted: Wed Jan 02, 2013 17:04
by Jeija
An Octagon wouldn't actually be less polygons because the modding api only lets you create cuboids.

PostPosted: Wed Jan 02, 2013 18:58
by yves_de_beck
Jeija wrote:*cough*
The code seems somewhat "borrowed" from me:
http://minetest.net/forum/viewtopic.php?id=2153

Nice mod, but why don't you give credit but just license other people's code?

Would have been nicer if you had asked me, but I grant you permission for it.


Hello Jeija,

Sorry!! I don't wan't to steal anything from your fantastic work.
Thank you for permission to use this in the mod. =)

PostPosted: Thu Jan 03, 2013 01:07
by Bas080
Really nice mod.

I checked the code. Stairs mod made a function which looks like this... (easier for adding new nodes and less lines of code)
Code: Select all
function stairs.register_stair_and_slab(subname, recipeitem, groups, images, desc_stair, desc_slab)

stairs.register_stair_and_slab("wood", "default:wood",
        {snappy=2,choppy=2,oddly_breakable_by_hand=2},
        {"default_wood.png"},
        "Wooden stair",
        "Wooden slab")

Check out the stairs mod if you wanna know more. http://minetest.net/forum/viewtopic.php?id=2092

Also, i played with the detail. i find to get the best looking noncubic shapes at detail 16.

May i request two more shapes. A square with one curved edge on the side and a square with two curved edges. Example:http://www.w3.org/TR/2009/CR-css3-background-20091217/smooth-radius.png

PostPosted: Thu Jan 03, 2013 10:06
by yves_de_beck
Bas080 wrote:Really nice mod.

I checked the code. Stairs mod made a function which looks like this... (easier for adding new nodes and less lines of code)
Code: Select all
function stairs.register_stair_and_slab(subname, recipeitem, groups, images, desc_stair, desc_slab)

stairs.register_stair_and_slab("wood", "default:wood",
        {snappy=2,choppy=2,oddly_breakable_by_hand=2},
        {"default_wood.png"},
        "Wooden stair",
        "Wooden slab")

Check out the stairs mod if you wanna know more. http://minetest.net/forum/viewtopic.php?id=2092

Also, i played with the detail. i find to get the best looking noncubic shapes at detail 16.

May i request two more shapes. A square with one curved edge on the side and a square with two curved edges. Example:http://www.w3.org/TR/2009/CR-css3-background-20091217/smooth-radius.png



Hello Bas080,

that with the method about code compressing it's a good idea. I will try it to make the code slim with it.

The Cruved Edges Square is a bit Tricky, but I think its possible. I make it. =)

Whats about Leaves??? Think you, it should added to as noncubic material??
With that you can make Parks or Garden Elements.

PostPosted: Thu Jan 03, 2013 15:28
by yves_de_beck
Hello everyone,

The source code is revised, by the proposition from Bas080.

I think it's a little bit faster now and
the detail level you can change by one step in the head of the init.lua.

At next to do:
- "Curved Edges Square Blocks" and
- "Gardenblocks" (at first with the default leaves texture)

PostPosted: Thu Jan 03, 2013 16:05
by Bas080
Bravo +2

EDIT:
I would like upside down slopes too.

I noticed that stair+ mod has really nice small blocks. Combined with your non cubic blocks. Now when building I don't just ask myself what material I should use, but also what shape.

PostPosted: Sat Jan 05, 2013 14:51
by Shadowmang
Very interesting idea!

This removes a lot of the design limitations, allowing round shapes on a small scale

Well done!

PostPosted: Sat Jan 05, 2013 15:49
by yves_de_beck
Bas080 wrote:Bravo +2

EDIT:
I would like upside down slopes too.

I noticed that stair+ mod has really nice small blocks. Combined with your non cubic blocks. Now when building I don't just ask myself what material I should use, but also what shape.



Hi Bas080,

Upside Down Slopes and Slope Edges added =)

Simple Example for Upside Down Slopes:
Image

PostPosted: Sat Jan 05, 2013 17:53
by Inocudom
Though simple in its nature, this mod provides an additional level of aesthetics to minetest. The grasshills mod would do well to see how the slopes in this mod work.

PostPosted: Sat Jan 05, 2013 18:09
by addi
wow! realy nice
i love it!!!!!

PostPosted: Sun Jan 06, 2013 15:31
by yves_de_beck
Hi all,

What do you think about this:

I think its time to create a 'cnc milling machine' block.

by right click on the cnc block open an furnance like menu.
Then you put in the material and by clicking on different shape buttons you get the noncubic material you want.

Example:
Image



I hope that is possible to modding. I will try it... =D

PostPosted: Sun Jan 06, 2013 15:36
by Nore
Wow, that's crazy...
I hope it is possible without registering 2^(16^3) nodes, which would crash minetest... and your computer too.

PostPosted: Sun Jan 06, 2013 15:45
by yves_de_beck
Nore wrote:Wow, that's crazy...
I hope it is possible without registering 2^(16^3) nodes, which would crash minetest... and your computer too.



I hope it too xD

Okay they are not so many ^^

14 Shapes
8 Materials
= 112 new blocks

Until now it runs very well. =)

PostPosted: Sun Jan 06, 2013 17:30
by Topywo
I didn't try your mod yet. The screenshots however really look good.

14 Shapes and 8 Materials --> You'll be asked to make more shapes and use a lot more materials :-)