Page 1 of 2

New 3D Stuff!

PostPosted: Thu Jun 21, 2012 12:01
by Melkor
hey kids! guess what? something new is coming! (to minetest)

Image
Image

(Thanks Tonyka for this tutorial)

tonyka wrote:is very simple ...
Measurements can be represented in various ways,
Decimal: 0.42, 0.279, -0.1 ...
Fractional: 1/2, 5/12, -2 / 5 ...
easier it is to use the decimal, which is what we are all used

a point is achieved by its position x, y, z
x = width
y = high
z = length

an object is created only scoring two points against:
{point 1, point 2},

then be so ...
{x, y, z, x, y, z},

1 block in minetest measures 1 x 1 x 1 being the focal point of the cube the point 0, 0, 0, and opposite points, the -0.5, -0.5, -0.5 and 0.5, 0.5 0.5.
everything you draw has to be within those measures

let's practice, I draw a bar in the center of the block that measures (0.2 x), (1 y), (0.2 z), then the center of the block to the first point Abria-0.1x,-0.5y, -0.1 x, the center of the block to the second point Abria 0.1x, 0.5y, 0.1x;
and therefore: {-0.1, -0.5, -0.1, 0.1,0.5,0.1}

Try with different values and observe the changes ...
is all used ...



3D furniture: by Tonyka
http://minetest.net/forum/viewtopic.php?id=2103
http://minetest.net/forum/viewtopic.php?pid=27356#p27356

Image
Image

[Mod] xPanes [xpanes] by XYZ
http://minetest.net/forum/viewtopic.php?id=2117

Image

PostPosted: Thu Jun 21, 2012 12:28
by Jeija
I also made Mesecon Pressure Plates 3D. Any requests for 3d stuff?

PostPosted: Thu Jun 21, 2012 12:34
by Calinou
3D torches with auto-replacing of old 2D torches if possible. :)

PostPosted: Thu Jun 21, 2012 12:36
by Melkor
Jeija wrote:I also made Mesecon Pressure Plates 3D. Any requests for 3d stuff?


Torchs, Buttons, Levers, minecarts, boats, fence gates, trapdoors, Beds, Signs, better cactus (minecraft-like?), cakes, snow, farmland blocks, better chests (minecraft-like?) what else?

mmm... new pistons?

XD

PostPosted: Thu Jun 21, 2012 13:38
by Jeija
@Calinou: 3d torches attached to walls are not possible (they are not in 90° angle)
@Melkor: Good ideas! Buttons, Fence Gates, Trapdoors, Bed, sign are awesome ideas. Everything moving is not possible.

PostPosted: Thu Jun 21, 2012 13:51
by Melkor
sad to hear torch are not possible (yet)

Everything moving is not possible? not even animated chests? I guess minecratft-like chest and large chest are possible :)

PostPosted: Thu Jun 21, 2012 13:53
by Jeija
For 3d torches check out my 3d torches in blockplanet. C55 could add them.
Picture of them

PostPosted: Thu Jun 21, 2012 13:58
by Melkor
great, hope this happen

PostPosted: Thu Jun 21, 2012 14:15
by Jeija
Demo code for a bed:

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("bed:bed",  {
    drawtype = "nodebox",
    description = "Bed",
    paramtype = "light",
    paramtype2 = "facedir",
    tiles = {"bed_bed.png"},
    is_ground_content = true,
    groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3},
    node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0, 1.5},
    },
    selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0, 1.5},
    },
    on_punch = function (self, puncher)
        minetest.env:set_timeofday(0.3)
    end
})


(LGPL)

PostPosted: Thu Jun 21, 2012 15:12
by Jordach
Melkor, enjoying 3D objects?

PostPosted: Thu Jun 21, 2012 15:53
by Jeija
Better-looking Wall Sign (its on you to decide whether it looks better or not...)
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("default:sign_wall", {
    description = "Sign",
    drawtype = "nodebox",
    tiles = {"default_sign_wall.png"},
    inventory_image = "default_sign_wall.png",
    wield_image = "default_sign_wall.png",
    paramtype = "light",
    paramtype2 = "facedir",
    sunlight_propagates = true,
    walkable = false,
    metadata_name = "sign",
    selection_box = {
        type = "fixed",
        fixed = {-0.4, -0.3, 0.45, 0.4, 0.3, 0.5},
    },
    node_box = {
        type = "fixed",
        fixed = {-0.4, -0.3, 0.45, 0.4, 0.3, 0.5},
    },
    groups = {choppy=2,dig_immediate=2},
    sounds = default.node_sound_defaults(),
    on_construct = function(pos)
        --local n = minetest.env:get_node(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec", "hack:sign_text_input")
        meta:set_string("infotext", """")
    end,
    on_receive_fields = function(pos, formname, fields, sender)
        --print("Sign at "..minetest.pos_to_string(pos).." got "..dump(fields))
        local meta = minetest.env:get_meta(pos)
        fields.text = fields.text or ""
        print((sender:get_player_name() or "").." wrote ""..fields.text..
                "" to sign at "..minetest.pos_to_string(pos))
        meta:set_string("text", fields.text)
        meta:set_string("infotext", '"'..fields.text..'"')
    end,
})


Use this as texture:
Image

Put the code into the default mod instead of the old sign code to use it.

PostPosted: Thu Jun 21, 2012 16:02
by babe223
because the code does not use the card in torch light and modifies al Seila why has the change to be put to the torch 3D

I love things in 3D

excuse my bad english .. I'm Brazilian

PostPosted: Thu Jun 21, 2012 16:32
by Melkor
looks good :)
some weird bug:
Image

floating sign:
Image

couch:
Image

PostPosted: Thu Jun 21, 2012 16:45
by Jeija
Yeah, I guess floating signs cannot be prevented... :(
Btw Couch idea is good!!

PostPosted: Thu Jun 21, 2012 18:02
by InfinityProject
Tonyka added iron bars in the other languages section. Who else thinks we need a toilet ;)

PostPosted: Thu Jun 21, 2012 20:24
by cosarara97
Jeija wrote:For 3d torches check out my 3d torches in blockplanet. C55 could add them.
Picture of them

Where's the blockplanet website/git/something?
EDIT: Yes, we need a toilet xD

PostPosted: Fri Jun 22, 2012 15:47
by Jeija
BlockPlanet sort of "died" because jordan4ibanez and lkjoel wanted to rewrite it in Java for some reason. Luckily the C++ still exists, but has too many not so well designed features.
I think we should merge the good ones one after the other into minetest.

BlockPlanet git:
https://github.com/sfan5/BlockPlanet-old

PostPosted: Fri Jun 22, 2012 16:03
by redcrab
Calinou wrote:3D torches with auto-replacing of old 2D torches if possible. :)


smoky torches possible?

PostPosted: Fri Jun 22, 2012 18:02
by Calinou
Particles yes, but these would have to be mostly coded in C++: particles should be controlled by client (= client-side, the server just spawns them), not server.

PostPosted: Sat Jun 23, 2012 02:26
by Melkor
redcrab wrote:
Calinou wrote:3D torches with auto-replacing of old 2D torches if possible. :)


smoky torches possible?


maybe you already knew this, there's a mod that adds particles to torches
HERE:
http://minetest.net/forum/viewtopic.php?id=1129

PostPosted: Sun Jun 24, 2012 00:02
by tonyka
Calinou wrote:3D torches with auto-replacing of old 2D torches if possible. :)

if, of course, I've created, and ornamental chains, very medieval
http://minetest.net/forum/viewtopic.php?id=2121

PostPosted: Sun Jun 24, 2012 00:08
by tonyka
tonyka wrote:
Calinou wrote:3D torches with auto-replacing of old 2D torches if possible. :)

if, of course, I've created, and ornamental chains, very medieval
http://minetest.net/forum/viewtopic.php?id=2121

not programmed, but if anyone knows, we can work together to make things better
sorry for my English

PostPosted: Mon Jun 25, 2012 13:15
by tonyka
with imagination anything is possible

Image

PostPosted: Wed Jun 27, 2012 00:55
by Melkor
added tutorial!

PostPosted: Wed Jun 27, 2012 07:01
by Jordach
can someone make a snooker table?

PostPosted: Fri Jun 29, 2012 14:56
by tonyka
Melkor wrote:added tutorial!

oh .. thanks for that we ... to collaborate and so create a wonderful minetest-world, full of bunnies-murderers, and pet-ferret ... and more fire! :D
Image

PostPosted: Mon Oct 08, 2012 12:10
by Boomboomcreeper
Jeija wrote:I also made Mesecon Pressure Plates 3D. Any requests for 3d stuff?

i want 3d chest
please

PostPosted: Mon Oct 08, 2012 14:56
by PilzAdam
Boomboomcreeper wrote:
Jeija wrote:I also made Mesecon Pressure Plates 3D. Any requests for 3d stuff?

i want 3d chest
please

He means MC like animation when opening a chest.

PostPosted: Mon Oct 08, 2012 16:05
by Mito551
PilzAdam wrote:He means MC like animation when opening a chest.


lol :D

PostPosted: Mon Oct 08, 2012 16:24
by Boomboomcreeper
i want the chest from the photos from first page