Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)
There are two shapes ? I they could be easily added to Calinou's moreblocks.
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)
TumeniNodes wrote:Useful for angled elevations, as well as to build spiral-like-ish staircases!
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)
sofar wrote:TumeniNodes wrote:Useful for angled elevations, as well as to build spiral-like-ish staircases!
You should really make mesh nodes out of these nodes: Right now these have 16+ nodeboxes (which is 192 triangles!!!) per node, while it can be done in a mesh node in 8-14(!) triangles.
azekill_DIABLO wrote:i prefer nodebox! look's more.... polished!
sofar wrote:Optimized high stair blender model and obj file, feel free to use this in your mod with proper attribution:
License: CC-BY-SA-4.0 - Auke Kok <sofar@foo-projects.org>
I can do the low model as well if you want.
function angledstairs.register_angled_stair(subname, recipeitem, groups, images, description, sounds)
groups.angledstair = 1
minetest.register_node(":angledstairs:angled_stair_right" .. subname, {
description = description,
drawtype = "mesh",
mesh = "angled_stair_high.obj",
tiles = images,
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = false,
groups = groups,
sounds = sounds,
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, 0, 0.0625, 0.5, 0.5},
{0.0625, -0.5, 0.0625, 0.125, 0.5, 0.5},
{0.125, -0.5, 0.125, 0.1875, 0.5, 0.5},
{0.1875, -0.5, 0.1875, 0.25, 0.5, 0.5},
{0.25, -0.5, 0.25, 0.3125, 0.5, 0.5},
{0.3125, -0.5, 0.3125, 0.375, 0.5, 0.5},
{0.375, -0.5, 0.375, 0.4375, 0.5, 0.5},
{0.4375, -0.5, 0.4375, 0.5, 0.5, 0.5},
{-0.5, -0.5, -0.5, -0.4375, 0.5, -0.4375},
{-0.5, -0.5, -0.4375, -0.375, 0.5, -0.375},
{-0.5, -0.5, -0.375, -0.3125, 0.5, -0.3125},
{-0.5, -0.5, -0.3125, -0.25, 0.5, -0.25},
{-0.5, -0.5, -0.25, -0.1875, 0.5, -0.1875},
{-0.5, -0.5, -0.1875, -0.125, 0.5, -0.125},
{-0.5, -0.5, -0.125, -0.0625, 0.5, -0.0625},
{-0.5, -0.5, -0.0625, 0, 0.5, 0},
{-0.5, -0.5, -0.5, 0.5, 0, 0.5},
}
}
})
pithy wrote:sofar: I thought only apple could copyright basic shapes.
pithy wrote:Use collision_box instead of node_box when use meshes.
Use selection_box to define the selection box.
All of the ?_box have the same format..
minetest.register_node(":angledstairs:angled_stair_right" .. subname, {
description = description,
drawtype = "mesh",
mesh = "angled_stair_high.obj",
tiles = images,
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = false,
groups = groups,
sounds = sounds,
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, 0, 0.0625, 0.5, 0.5},
{0.0625, -0.5, 0.0625, 0.125, 0.5, 0.5},
{0.125, -0.5, 0.125, 0.1875, 0.5, 0.5},
{0.1875, -0.5, 0.1875, 0.25, 0.5, 0.5},
{0.25, -0.5, 0.25, 0.3125, 0.5, 0.5},
{0.3125, -0.5, 0.3125, 0.375, 0.5, 0.5},
{0.375, -0.5, 0.375, 0.4375, 0.5, 0.5},
{0.4375, -0.5, 0.4375, 0.5, 0.5, 0.5},
{-0.5, -0.5, -0.5, -0.4375, 0.5, -0.4375},
{-0.5, -0.5, -0.4375, -0.375, 0.5, -0.375},
{-0.5, -0.5, -0.375, -0.3125, 0.5, -0.3125},
{-0.5, -0.5, -0.3125, -0.25, 0.5, -0.25},
{-0.5, -0.5, -0.25, -0.1875, 0.5, -0.1875},
{-0.5, -0.5, -0.1875, -0.125, 0.5, -0.125},
{-0.5, -0.5, -0.125, -0.0625, 0.5, -0.0625},
{-0.5, -0.5, -0.0625, 0, 0.5, 0},
{-0.5, -0.5, -0.5, 0.5, 0, 0.5},
}
}
})
collision_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, 0, 0.0625, 0.5, 0.5},
{0.0625, -0.5, 0.0625, 0.125, 0.5, 0.5},
{0.125, -0.5, 0.125, 0.1875, 0.5, 0.5},
{0.1875, -0.5, 0.1875, 0.25, 0.5, 0.5},
{0.25, -0.5, 0.25, 0.3125, 0.5, 0.5},
{0.3125, -0.5, 0.3125, 0.375, 0.5, 0.5},
{0.375, -0.5, 0.375, 0.4375, 0.5, 0.5},
{0.4375, -0.5, 0.4375, 0.5, 0.5, 0.5},
{-0.5, -0.5, -0.5, -0.4375, 0.5, -0.4375},
{-0.5, -0.5, -0.4375, -0.375, 0.5, -0.375},
{-0.5, -0.5, -0.375, -0.3125, 0.5, -0.3125},
{-0.5, -0.5, -0.3125, -0.25, 0.5, -0.25},
{-0.5, -0.5, -0.25, -0.1875, 0.5, -0.1875},
{-0.5, -0.5, -0.1875, -0.125, 0.5, -0.125},
{-0.5, -0.5, -0.125, -0.0625, 0.5, -0.0625},
{-0.5, -0.5, -0.0625, 0, 0.5, 0},
{-0.5, -0.5, -0.5, 0.5, 0, 0.5},
}
}
selection_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, 0, 0.0625, 0.5, 0.5},
{0.0625, -0.5, 0.0625, 0.125, 0.5, 0.5},
{0.125, -0.5, 0.125, 0.1875, 0.5, 0.5},
{0.1875, -0.5, 0.1875, 0.25, 0.5, 0.5},
{0.25, -0.5, 0.25, 0.3125, 0.5, 0.5},
{0.3125, -0.5, 0.3125, 0.375, 0.5, 0.5},
{0.375, -0.5, 0.375, 0.4375, 0.5, 0.5},
{0.4375, -0.5, 0.4375, 0.5, 0.5, 0.5},
{-0.5, -0.5, -0.5, -0.4375, 0.5, -0.4375},
{-0.5, -0.5, -0.4375, -0.375, 0.5, -0.375},
{-0.5, -0.5, -0.375, -0.3125, 0.5, -0.3125},
{-0.5, -0.5, -0.3125, -0.25, 0.5, -0.25},
{-0.5, -0.5, -0.25, -0.1875, 0.5, -0.1875},
{-0.5, -0.5, -0.1875, -0.125, 0.5, -0.125},
{-0.5, -0.5, -0.125, -0.0625, 0.5, -0.0625},
{-0.5, -0.5, -0.0625, 0, 0.5, 0},
{-0.5, -0.5, -0.5, 0.5, 0, 0.5},
}
}
pithy wrote:Is there any reason for the saw tooth pattern?
With mesh you can remove it, but the selection box will still have it.
pithy wrote:I found a bug, you can't use spaces in your file names.
Nathan.S wrote:The collision box will still be the nodeboxes data. You can't use an obj for the collisions. Use the old code you had from the collisions and just the mesh for the visiuals.
TumeniNodes wrote:Nathan.S wrote:The collision box will still be the nodeboxes data. You can't use an obj for the collisions. Use the old code you had from the collisions and just the mesh for the visiuals.
I really appreciate the help... But I still don't get it : /
I have no idea how to set these up in the script
I've tried every which way and nothing works right. So I guess until I can get more detailed info, they remain as nodeboxes.
minetest.register_node('survival:well_bottom', {
description = 'well bottom',
drawtype = 'mesh',
mesh = 'survival_well_bottom.obj',
tiles = {'default_cobble.png'},
groups = {cracky=3, stone=2},
paramtype = 'light',
paramtype2 = 'facedir',
sounds = default.node_sound_stone_defaults(),
selection_box = {
type = 'fixed',
fixed = {-0.6, -0.5, -0.6, 0.6, .3, .6},
},
Nathan.S wrote:TumeniNodes wrote:Nathan.S wrote:The collision box will still be the nodeboxes data. You can't use an obj for the collisions. Use the old code you had from the collisions and just the mesh for the visiuals.
I really appreciate the help... But I still don't get it : /
I have no idea how to set these up in the script
I've tried every which way and nothing works right. So I guess until I can get more detailed info, they remain as nodeboxes.
Should be something like this:Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
minetest.register_node('survival:well_bottom', {
description = 'well bottom',
drawtype = 'mesh',
mesh = 'survival_well_bottom.obj',
tiles = {'default_cobble.png'},
groups = {cracky=3, stone=2},
paramtype = 'light',
paramtype2 = 'facedir',
sounds = default.node_sound_stone_defaults(),
selection_box = {
type = 'fixed',
fixed = {-0.6, -0.5, -0.6, 0.6, .3, .6},
},
Users browsing this forum: No registered users and 26 guests