New 3D Stuff!

User avatar
Melkor
Member
 
Posts: 285
Joined: Sat Sep 24, 2011 01:03

New 3D Stuff!

by Melkor » Thu Jun 21, 2012 12:01

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
Last edited by Melkor on Wed Oct 17, 2012 10:52, edited 1 time in total.
 

User avatar
Jeija
Member
 
Posts: 686
Joined: Fri Dec 23, 2011 21:46

by Jeija » Thu Jun 21, 2012 12:28

I also made Mesecon Pressure Plates 3D. Any requests for 3d stuff?
Redstone for minetest: Mesecons (mesecons.net)
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

by Calinou » Thu Jun 21, 2012 12:34

3D torches with auto-replacing of old 2D torches if possible. :)
 

User avatar
Melkor
Member
 
Posts: 285
Joined: Sat Sep 24, 2011 01:03

by Melkor » Thu Jun 21, 2012 12:36

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
Last edited by Melkor on Thu Jun 21, 2012 16:41, edited 1 time in total.
 

User avatar
Jeija
Member
 
Posts: 686
Joined: Fri Dec 23, 2011 21:46

by Jeija » Thu Jun 21, 2012 13:38

@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.
Redstone for minetest: Mesecons (mesecons.net)
 

User avatar
Melkor
Member
 
Posts: 285
Joined: Sat Sep 24, 2011 01:03

by Melkor » Thu Jun 21, 2012 13:51

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 :)
Last edited by Melkor on Thu Jun 21, 2012 13:53, edited 1 time in total.
 

User avatar
Jeija
Member
 
Posts: 686
Joined: Fri Dec 23, 2011 21:46

by Jeija » Thu Jun 21, 2012 13:53

For 3d torches check out my 3d torches in blockplanet. C55 could add them.
Picture of them
Redstone for minetest: Mesecons (mesecons.net)
 

User avatar
Melkor
Member
 
Posts: 285
Joined: Sat Sep 24, 2011 01:03

by Melkor » Thu Jun 21, 2012 13:58

great, hope this happen
 

User avatar
Jeija
Member
 
Posts: 686
Joined: Fri Dec 23, 2011 21:46

by Jeija » Thu Jun 21, 2012 14:15

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)
Redstone for minetest: Mesecons (mesecons.net)
 

User avatar
Jordach
Member
 
Posts: 4412
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach

by Jordach » Thu Jun 21, 2012 15:12

Melkor, enjoying 3D objects?

( ͡° ͜ʖ ͡°) ( ͡o ͜ʖ ͡o) [$ ( ͡° ͜ʖ ͡°) $] ( ͡$ ͜ʖ ͡$) ヽ༼ຈل͜ຈ༽ノ



My image and media server is back online and is functioning as normal.
 

User avatar
Jeija
Member
 
Posts: 686
Joined: Fri Dec 23, 2011 21:46

by Jeija » Thu Jun 21, 2012 15:53

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.
Last edited by Jeija on Thu Jun 21, 2012 15:54, edited 1 time in total.
Redstone for minetest: Mesecons (mesecons.net)
 

User avatar
babe223
Member
 
Posts: 141
Joined: Mon Nov 14, 2011 13:36

by babe223 » Thu Jun 21, 2012 16:02

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
Bem vindos Brasileiros,eu sou primeiro brasileiro daqui do forum, espero que tragam bastante mods

[MOD] torch http://minetest.net/forum/viewtopic.php?id=3021
[MOD]HATCHE:http://minetest.net/forum/viewtopic.php?id=3458
 

User avatar
Melkor
Member
 
Posts: 285
Joined: Sat Sep 24, 2011 01:03

by Melkor » Thu Jun 21, 2012 16:32

looks good :)
some weird bug:
Image

floating sign:
Image

couch:
Image
 

User avatar
Jeija
Member
 
Posts: 686
Joined: Fri Dec 23, 2011 21:46

by Jeija » Thu Jun 21, 2012 16:45

Yeah, I guess floating signs cannot be prevented... :(
Btw Couch idea is good!!
Last edited by Jeija on Thu Jun 21, 2012 16:45, edited 1 time in total.
Redstone for minetest: Mesecons (mesecons.net)
 

User avatar
InfinityProject
Member
 
Posts: 1009
Joined: Sat Mar 17, 2012 00:52

by InfinityProject » Thu Jun 21, 2012 18:02

Tonyka added iron bars in the other languages section. Who else thinks we need a toilet ;)
 

cosarara97
Member
 
Posts: 180
Joined: Tue Nov 01, 2011 18:53

by cosarara97 » Thu Jun 21, 2012 20:24

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
Last edited by cosarara97 on Thu Jun 21, 2012 20:24, edited 1 time in total.
:D
 

User avatar
Jeija
Member
 
Posts: 686
Joined: Fri Dec 23, 2011 21:46

by Jeija » Fri Jun 22, 2012 15:47

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
Redstone for minetest: Mesecons (mesecons.net)
 

User avatar
redcrab
Member
 
Posts: 831
Joined: Tue Dec 13, 2011 13:45

by redcrab » Fri Jun 22, 2012 16:03

Calinou wrote:3D torches with auto-replacing of old 2D torches if possible. :)


smoky torches possible?
0.4 for serious builder click here
Dedicated Minetest redcrab server forum at http://minetestbb.suret.net

It's nice to be important but it is more important to be nice.
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

by Calinou » Fri Jun 22, 2012 18:02

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.
 

User avatar
Melkor
Member
 
Posts: 285
Joined: Sat Sep 24, 2011 01:03

by Melkor » Sat Jun 23, 2012 02:26

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
 

User avatar
tonyka
Member
 
Posts: 320
Joined: Sat Jun 16, 2012 04:08

by tonyka » Sun Jun 24, 2012 00:02

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
My mod: [MOD]3D Forniture 1.0
Download: 3DForniture_v_1.0.zip
Page development (European Castilian):
Moviliario 3D (proyecto 3D Forniture)
 

User avatar
tonyka
Member
 
Posts: 320
Joined: Sat Jun 16, 2012 04:08

by tonyka » Sun Jun 24, 2012 00:08

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
My mod: [MOD]3D Forniture 1.0
Download: 3DForniture_v_1.0.zip
Page development (European Castilian):
Moviliario 3D (proyecto 3D Forniture)
 

User avatar
tonyka
Member
 
Posts: 320
Joined: Sat Jun 16, 2012 04:08

by tonyka » Mon Jun 25, 2012 13:15

with imagination anything is possible

Image
My mod: [MOD]3D Forniture 1.0
Download: 3DForniture_v_1.0.zip
Page development (European Castilian):
Moviliario 3D (proyecto 3D Forniture)
 

User avatar
Melkor
Member
 
Posts: 285
Joined: Sat Sep 24, 2011 01:03

by Melkor » Wed Jun 27, 2012 00:55

added tutorial!
 

User avatar
Jordach
Member
 
Posts: 4412
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach

by Jordach » Wed Jun 27, 2012 07:01

can someone make a snooker table?

( ͡° ͜ʖ ͡°) ( ͡o ͜ʖ ͡o) [$ ( ͡° ͜ʖ ͡°) $] ( ͡$ ͜ʖ ͡$) ヽ༼ຈل͜ຈ༽ノ



My image and media server is back online and is functioning as normal.
 

User avatar
tonyka
Member
 
Posts: 320
Joined: Sat Jun 16, 2012 04:08

by tonyka » Fri Jun 29, 2012 14:56

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
Last edited by tonyka on Fri Jun 29, 2012 15:03, edited 1 time in total.
My mod: [MOD]3D Forniture 1.0
Download: 3DForniture_v_1.0.zip
Page development (European Castilian):
Moviliario 3D (proyecto 3D Forniture)
 

User avatar
Boomboomcreeper
Member
 
Posts: 22
Joined: Sun Oct 07, 2012 15:09

by Boomboomcreeper » Mon Oct 08, 2012 12:10

Jeija wrote:I also made Mesecon Pressure Plates 3D. Any requests for 3d stuff?

i want 3d chest
please
Minetest VS Minecraft
 

User avatar
PilzAdam
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Mon Oct 08, 2012 14:56

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.
 

User avatar
Mito551
Member
 
Posts: 1271
Joined: Sat Jun 16, 2012 15:03

by Mito551 » Mon Oct 08, 2012 16:05

PilzAdam wrote:He means MC like animation when opening a chest.


lol :D
 

User avatar
Boomboomcreeper
Member
 
Posts: 22
Joined: Sun Oct 07, 2012 15:09

by Boomboomcreeper » Mon Oct 08, 2012 16:24

i want the chest from the photos from first page
Minetest VS Minecraft
 

Next

Return to Minetest General

Who is online

Users browsing this forum: No registered users and 23 guests

cron