Page 2 of 2

PostPosted: Sat Nov 03, 2012 02:26
by cornernote
Josh wrote:Would it be possible to have animations to the 3d player? for example a turning head.


I think the only way you can get animation is to swap the nodebox, this means nobeboxes that rotate are not really an option yet.

PostPosted: Sat Nov 03, 2012 09:46
by PilzAdam
There is no (good) way to add animation for the player. Somone is currently working on real 3D players and this mod is just for people who cant wait.

PostPosted: Sat Nov 03, 2012 13:03
by Neuromancer
Can you make them any thicker, say like 5 pixels thick?

PostPosted: Sat Nov 03, 2012 13:13
by PilzAdam
Neuromancer wrote:Can you make them any thicker, say like 5 pixels thick?

You can change it yourself:
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
--- 3d_player/init.lua    2012-11-03 14:09:51.542665223 +0100
+++ 3d_player_thick/init.lua    2012-11-03 14:09:18.406664423 +0100
@@ -40,7 +40,7 @@ for i=1,#pix do
         if pix[i][j] == 1 then
             local y = (i-16)*-1+1
             local x = j-16
-            table.insert(box, {(x-1)/32, (y-1)/32, -0.5/32, x/32, y/32, 0.5/32})
+            table.insert(box, {(x-1)/32, (y-1)/32, -2.5/32, x/32, y/32, 2.5/32})
         end
     end
 end


PostPosted: Sat Nov 03, 2012 21:17
by terminalerror
PilzAdam wrote:
Neuromancer wrote:Can you make them any thicker, say like 5 pixels thick?

You can change it yourself:
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
--- 3d_player/init.lua    2012-11-03 14:09:51.542665223 +0100
+++ 3d_player_thick/init.lua    2012-11-03 14:09:18.406664423 +0100
@@ -40,7 +40,7 @@ for i=1,#pix do
         if pix[i][j] == 1 then
             local y = (i-16)*-1+1
             local x = j-16
-            table.insert(box, {(x-1)/32, (y-1)/32, -0.5/32, x/32, y/32, 0.5/32})
+            table.insert(box, {(x-1)/32, (y-1)/32, -2.5/32, x/32, y/32, 2.5/32})
         end
     end
 end



Oh man! Could you please implement this in your simple mobs mod?

PostPosted: Sun Nov 04, 2012 23:18
by mikey2020
make him thicker i think it really cool tho

PostPosted: Sun Nov 04, 2012 23:18
by mikey2020
its really cool

PostPosted: Mon Nov 05, 2012 02:23
by InfinityProject
You're right, PilzAdam. It's VERY time consuming to change the nodebox. Working on a Minecraft player shaped nodebox.

PostPosted: Mon Nov 05, 2012 15:26
by Sokomine
There are at least two nodebox editors out there: http://minetest.net/forum/viewtopic.php?id=2840 from rubenwardy and
http://minetest.net/forum/viewtopic.php?id=3162 from sapier. Maybe you can get one of them running.

PostPosted: Wed Nov 07, 2012 22:28
by InfinityProject
Here's a nodebox for a "somewhat minecraft" shape. This has not been tested so I don't know what it looks like yet.
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
local pix = {
    {0,0,0,0,0,0,0,0,0,0,0,0,0,10,10,10,10,10,10,0,0,0,0,0,0,0,0,0,0,0,0,0},
    {0,0,0,0,0,0,0,0,0,0,0,0,0,10,10,10,10,10,10,0,0,0,0,0,0,0,0,0,0,0,0,0},
    {0,0,0,0,0,0,0,0,0,0,0,0,0,10,10,10,10,10,10,0,0,0,0,0,0,0,0,0,0,0,0,0},
    {0,0,0,0,0,0,0,0,0,0,0,0,0,10,10,10,10,10,10,0,0,0,0,0,0,0,0,0,0,0,0,0},
    {0,0,0,0,0,0,0,0,0,0,0,0,0,10,10,10,10,10,10,0,0,0,0,0,0,0,0,0,0,0,0,0},
    {0,0,0,0,0,0,0,0,0,0,0,0,0,10,10,10,10,10,10,0,0,0,0,0,0,0,0,0,0,0,0,0},
    {0,0,0,0,0,0,0,0,0,0,0,0,0,10,10,10,10,10,10,0,0,0,0,0,0,0,0,0,0,0,0,0},
    {0,0,0,0,0,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,0,0,0,0,0},
    {0,0,0,0,0,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,0,0,0,0,0},
    {0,0,0,0,0,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,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0,0,0,0,0,0,0,0,0,0,0,8,8,8,8,0,0,8,8,8,8,0,0,0,0,0,0,0,0,0,0,0},
    {0,0,0,0,0,0,0,0,0,0,0,8,8,8,8,0,0,8,8,8,8,0,0,0,0,0,0,0,0,0,0,0},
    {0,0,0,0,0,0,0,0,0,0,0,8,8,8,8,0,0,8,8,8,8,0,0,0,0,0,0,0,0,0,0,0},
    {0,0,0,0,0,0,0,0,0,0,0,8,8,8,8,0,0,8,8,8,8,0,0,0,0,0,0,0,0,0,0,0},
    {0,0,0,0,0,0,0,0,0,0,0,8,8,8,8,0,0,8,8,8,8,0,0,0,0,0,0,0,0,0,0,0},
    {0,0,0,0,0,0,0,0,0,0,0,8,8,8,8,0,0,8,8,8,8,0,0,0,0,0,0,0,0,0,0,0},
    {0,0,0,0,0,0,0,0,0,0,0,8,8,8,8,0,0,8,8,8,8,0,0,0,0,0,0,0,0,0,0,0},
}

PostPosted: Thu Nov 08, 2012 16:16
by PilzAdam
InfinityProject wrote:Here's a nodebox for a "somewhat minecraft" shape. This has not been tested so I don't know what it looks like yet.
[...]

The numbers in the table dont have a effect on the thickness. If there is a 1 it creates a 1 px thick box, nothing else.

PostPosted: Fri Nov 09, 2012 01:44
by Sokomine
After experimenting a bit with sapiers Wielditem editor I came up with this:
Image
The texture is that of wood (I'm not good at textures!). The collection of nodeboxes is modelled after the image of players on Redcrabs server combined with the default green shape. It looks a bit as if the players are severely undernourished. The image above was taken on the testserver of King Arthurs Land (difficult to do in singleplayer) and works fine if inserted into PilzAdam's mod here.

Can someone come up with a texture for it? Or improve the model? The wood texture doesn't look that great...

You can find the model and a working modified version of PilzAdams mod here: https://github.com/Sokomine/3d_player

PostPosted: Fri Nov 09, 2012 02:50
by mikey2020
can someone make it the shape and color of a minecraft person

PostPosted: Fri Nov 09, 2012 03:04
by Sokomine
I don't think copying Minecraft would be such a good idea. Plus the Minecraft player is a figure that is much simpler in construction. I'm afraid it won't look good as a static model. Arms, legs, head...none of these can move yet! For that we'll need the patches MirceaKitsune is working on. But if you really want a character that looks like the one in Minecraft then get the wielditem editor and construct your own set of nodeboxes :-) It's not that difficult.

PostPosted: Fri Nov 23, 2012 00:36
by mikey2020
i think minecraft would be good you don't have to make the players arms and legs move

PostPosted: Fri Nov 23, 2012 02:38
by jordan4ibanez
Can you anchor entities to other entities either through lua or some strange lua hack?

PostPosted: Fri Nov 23, 2012 11:32
by PilzAdam
jordan4ibanez wrote:Can you anchor entities to other entities either through lua or some strange lua hack?

No. But Taoki's 3D player branch includes attachment (anchor) code. I have made a branch of my carts mod that uses this. To test it you have to compile Taoki's 3D player branch and install the attachment branch of my carts mod. Its realy aweseome!

PostPosted: Sun Dec 02, 2012 13:59
by PilzAdam
This mod is rather useless since 0.4.4-dev has real 3D models.

PostPosted: Sun Dec 02, 2012 16:38
by Zeg9
PilzAdam wrote:This mod is rather useless since 0.4.4-dev has real 3D models.

Some people is still on 0.4.3

PostPosted: Fri Mar 28, 2014 19:58
by pop_harte
ow it's like that player?[img]jpgh[/img]