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.
Josh wrote:Would it be possible to have animations to the 3d player? for example a turning head.
Neuromancer wrote:Can you make them any thicker, say like 5 pixels thick?
--- 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
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
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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,0,0,0,8,8,8,8,8,8,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},
{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},
}
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.
[...]
jordan4ibanez wrote:Can you anchor entities to other entities either through lua or some strange lua hack?
PilzAdam wrote:This mod is rather useless since 0.4.4-dev has real 3D models.
Users browsing this forum: No registered users and 70 guests