node_box = {
type = "fixed",
fixed = {
{-0.5,-0.5,-0.5, 0.5,-0.4,0.5}, --lower level
{-0.4,-0.4,-0.4, 0.4,-0.3,0.4}, --2nd level
{-0.3,-0.3,-0.3, 0.3,-0.2,0.3}, --3rd level
{-0.2,-0.2,-0.2, 0.2,-0.1,0.2}, --4th level
{-0.1,-0.1,-0.1, 0.1,0,0.1} -- top level
}
}
Stef wrote:can you make with this also a litle blocks mod???
Stef wrote:can you make with this also a litle blocks mod???
tonyka wrote:I created a tutorial for nodeboxes, using 3D programs.
Albert Einstein once said:
only really know something, if you can explain it so that your own grandmother will understand.
I created a step by step with everything needed for anyone ever to use 3D software.
only has a downside, is in Spanish,my language; I hope someone wants to translate it because google .... (google can help but not perfect ...)
download:
tutorial Nodebox con Wings 3D.pdf ESPAÑOL
cosarara97 wrote:I'm translating it right now, but you really should learn english... and improve your spanish spelling, lol.
cosarara97 wrote:I translated tonyka's manual, you can download it from here: https://dl.dropbox.com/u/57504822/nodeboxes.odt
Please help me improve my English by telling me all the gramatical/spelling/... errors you can find in it :)
node_box = {
type = "fixed",
fixed = {
{-0.4,0.4,-0.5, 0.4,0.5,-0.4},
{-0.4,0.4,0.4, 0.4,0.5,0.5},
{-0.3,0.3,-0.4, 0.3,0.5,-0.3},
{-0.3,0.3,0.3, 0.3,0.5,0.4},
{-0.2,0.2,-0.3, 0.2,0.5,0.3},
{0.2,-0.5,-0.3, 0.3,0.5,0.3},
{-0.3,-0.5,-0.3, -0.2,0.5,0.3},
{0.3,-0.5,-0.4, 0.4,0.5,0.4},
{-0.4,-0.5,-0.4, -0.3,0.5,0.4},
{0.4,-0.5,-0.5, 0.5,0.5,0.5},
{-0.5,-0.5,-0.5, -0.4,0.5,0.5},
},
},
node_box = {
type = "fixed",
fixed = {
{0.2,-0.5,-0.3, 0.3,0.5,0.3},
{-0.3,-0.5,-0.3, -0.2,0.5,0.3},
{0.3,-0.5,-0.4, 0.4,0.5,0.4},
{-0.4,-0.5,-0.4, -0.3,0.5,0.4},
{0.4,-0.5,-0.5, 0.5,0.5,0.5},
{-0.5,-0.5,-0.5, -0.4,0.5,0.5},
},
},
node_box = {
type = "fixed",
fixed = {
{0.2,-0.4,-0.3, 0.3,0.5,0.3},
{-0.3,-0.4,-0.3, -0.2,0.5,0.3},
{0.3,-0.4,-0.4, 0.4,0.5,0.4},
{-0.4,-0.4,-0.4, -0.3,0.5,0.4},
{0.4,-0.4,-0.5, 0.5,0.5,0.5},
{-0.5,-0.4,-0.5, -0.4,0.5,0.5},
{-0.5,-0.5,-0.5, 0.5,-0.4,0.5}
},
},
tkerwel wrote:local slopebox = {}
local px = 0
local py = 0
local kreis =45
local r = 0.3
for pk = 0, kreis, 1 do
px= r * math.cos(pk)
py= r * math.sin(pk)
slopebox[pk+1]={px, -0.5 , py, px+0.1, 0.4, py+0.1}
end
the node box function is easy with this:
node_box = {
type = "fixed",
fixed = slopebox,
},
local slopebox = {}
local px = 0
local py = 0
local kreis =45
local r = 0.3
for pk = 0, kreis, 1 do
px= r * math.cos(pk)
py= r * math.sin(pk)
slopebox[pk+1]={px, -0.5 , py, px+0.1, 0.4, py+0.1}
end
node_box = {
type = "fixed",
fixed = {
{-0.5,0.4,0.3, 0.5,0.5,0.35},
{-0.5,0.4,0.1, 0.5,0.5,0.15},
{-0.5,0.4,-0.1, 0.5,0.5,-0.05},
{-0.5,0.4,-0.3, 0.5,0.5,-0.25},
{-0.5,0.4,-0.5, 0.5,0.5,-0.45},
{-0.35,0.4,-0.5, -0.3,0.5,0.5},
{-0.15,0.4,-0.5, -0.1,0.5,0.5},
{5.e-2,0.4,-0.5, 1.e-1,0.5,0.5},
{0.25,0.4,-0.5, 0.3,0.5,0.5},
{0.45,0.4,-0.5, 0.5,0.5,0.5},
},
},
Can you post complete lua with this barrel, I want to understand where this:
node_box = {
type = "fixed",
fixed = {
{-2.5136044e-2,-0.45259861,-1.0000000e-1, 2.4863956e-2,-2.5986075e-3,0.10000000},
{0.13023723,-0.25615262,-0.40006064, 0.16023723,0.26767738,-0.37006064},
{0.13023723,-0.25615274,0.37054221, 0.16023723,0.26767750,0.40054221},
{0.13023723,-0.30600000,-0.40000000, 0.16023723,-0.25600000,0.40000000},
{0.12945597,0.26433021,-0.40000000, 0.15945597,0.29433021,0.40000000},
{2.9045502e-2,-0.25514168,-0.35000000, 7.9045502e-2,0.24485832,0.35000000},
{8.0237234e-2,-0.30617002,-0.40000000, 0.13023723,0.29382998,0.40000000},
{-0.25000000,-0.50000000,-0.25000000, 0.25000000,-0.45000000,0.25000000}
},
},
node_box = {
type = "fixed",
fixed = {
{-2.5000000e-2,-0.42500000,-0.50000000, 2.5000000e-2,-0.37500000,0.50000000},
{-2.5000000e-2,-0.22500000,-0.50000000, 2.5000000e-2,-0.17500000,0.50000000},
{-2.5000000e-2,0.37500000,-0.50000000, 2.5000000e-2,0.42500000,0.50000000},
{-2.5000000e-2,0.17500000,-0.50000000, 2.5000000e-2,0.22500000,0.50000000},
{-2.5000000e-2,-2.5000000e-2,-0.50000000, 2.5000000e-2,2.5000000e-2,0.50000000},
{-2.5000000e-2,-0.50000000,-0.42500000, 2.5000000e-2,0.50000000,-0.37500000},
{-2.5000000e-2,-0.50000000,-0.22500000, 2.5000000e-2,0.50000000,-0.17500000},
{-2.5000000e-2,-0.50000000,0.37500000, 2.5000000e-2,0.50000000,0.42500000},
{-2.5000000e-2,-0.50000000,0.17500000, 2.5000000e-2,0.50000000,0.22500000},
{-2.5000000e-2,-0.50000000,-2.5000000e-2, 2.5000000e-2,0.50000000,2.5000000e-2},
},
},
node_box = {
type = "fixed",
fixed = {
{-2.5000000e-2,-0.42500000,-0.50000000, 2.5000000e-2,-0.37500000,0.50000000},
{-2.5000000e-2,-0.22500000,-0.50000000, 2.5000000e-2,-0.17500000,0.50000000},
{-2.5000000e-2,0.37500000,-0.50000000, 2.5000000e-2,0.42500000,0.50000000},
{-2.5000000e-2,0.17500000,-0.50000000, 2.5000000e-2,0.22500000,0.50000000},
{-2.5000000e-2,-2.5000000e-2,-0.50000000, 2.5000000e-2,2.5000000e-2,0.50000000},
{-2.5000000e-2,-0.50000000,-0.42500000, 2.5000000e-2,0.50000000,-0.37500000},
{-2.5000000e-2,-0.50000000,-0.22500000, 2.5000000e-2,0.50000000,-0.17500000},
{-2.5000000e-2,-0.50000000,0.37500000, 2.5000000e-2,0.50000000,0.42500000},
{-2.5000000e-2,-0.50000000,0.17500000, 2.5000000e-2,0.50000000,0.22500000},
{-2.5000000e-2,-0.50000000,-2.5000000e-2, 2.5000000e-2,0.50000000,2.5000000e-2},
{-0.50000000,0.15181175,0.15403839, 0.50000000,0.45181175,0.45403839},
{-0.50000000 ,5.0000000e-2,0.20000000, 0.50000000,0.20000000,0.25000000},
{-0.50000000,0.20000000,4.5000000e-2, 0.50000000,0.25000000,0.19500000},
{-0.50000000,0.25000000 ,-5.0000000e-3, 0.50000000,0.30000000,0.19500000},
{-0.50000000 ,6.9388939e-18,0.25000000, 0.50000000,0.20000000,0.30000000},
{-0.50000000,-1.0000000e-1,0.30000000, 0.50000000,0.20000000,0.35000000},
{-0.50000000,0.30000000,-0.10400000, 0.50000000,0.35000000,0.19600000},
{-0.50000000,0.35000000,-0.20000000, 0.50000000,0.40000000,0.20000000},
{-0.50000000,-0.20000000,0.35000000, 0.50000000,0.20000000,0.40000000},
{-0.50000000,-0.30000000,0.40000000, 0.50000000,0.30000000,0.45000000},
{-0.50000000,0.40000000,-0.30000000, 0.50000000,0.45000000,0.30000000},
{-0.50000000,0.45003803,-0.50000000, 0.50000000,0.50003803,0.50000000},
{-0.50000000,-0.50000000,0.45006823, 0.50000000,0.50000000,0.50006823},
{-2.5000000e-2,-0.42500000,-0.50000000, 2.5000000e-2,-0.37500000,0.50000000},
{-2.5000000e-2,-0.22500000,-0.50000000, 2.5000000e-2,-0.17500000,0.50000000},
{-2.5000000e-2,0.37500000,-0.50000000, 2.5000000e-2,0.42500000,0.50000000},
{-2.5000000e-2,0.17500000,-0.50000000, 2.5000000e-2,0.22500000,0.50000000},
{-2.5000000e-2,-2.5000000e-2,-0.50000000, 2.5000000e-2,2.5000000e-2,0.50000000},
{-2.5000000e-2,-0.50000000,-0.42500000, 2.5000000e-2,0.50000000,-0.37500000},
{-2.5000000e-2,-0.50000000,-0.22500000, 2.5000000e-2,0.50000000,-0.17500000},
{-2.5000000e-2,-0.50000000,0.37500000, 2.5000000e-2,0.50000000,0.42500000},
{-2.5000000e-2,-0.50000000,0.17500000, 2.5000000e-2,0.50000000,0.22500000},
{-2.5000000e-2,-0.50000000,-2.5000000e-2, 2.5000000e-2,0.50000000,2.5000000e-2},
},
},
node_box = {
type = "fixed",
fixed = {
{-0.2 ,-0.5 ,-0.3, 0.2,0.5 ,-0.2},
{-0.2 ,-0.5,0.2, 0.2,0.5,0.3},
{-0.3 ,-0.5 ,-0.2, 0.3,0.5,0.2},
{-0.5 ,0.4 ,-0.5, 0.5 ,0.5,0.5},
{-0.4 ,0.3 ,-0.4, 0.4 ,0.4,0.4}
},
},
node_box = {
type = "fixed",
fixed = {
{-0.2 ,-0.5 ,-0.3, 0.2,0.5 ,-0.2},
{-0.2 ,-0.5,0.2, 0.2,0.5,0.3},
{-0.3 ,-0.5 ,-0.2, 0.3,0.5,0.2},
},
},
node_box = {
type = "fixed",
fixed = {
{-0.2 ,-0.5 ,-0.3, 0.2,0.5 ,-0.2},
{-0.2 ,-0.5,0.2, 0.2,0.5,0.3},
{-0.3 ,-0.5 ,-0.2, 0.3,0.5,0.2},
{-0.5 ,-0.5 ,-0.5, 0.5 ,-0.4,0.5},
{-0.4 ,-0.4 ,-0.4, 0.4 ,-0.3,0.4}
},
},
Users browsing this forum: No registered users and 19 guests