Use mesh nodes instead of nodeboxes

also, removed the 512px textures since they only bloat the repo and are now obsolete.
This commit is contained in:
Vanessa Ezekowitz
2015-07-30 18:44:46 -04:00
parent 47ccc1059a
commit ab02f746b7
20 changed files with 191 additions and 113 deletions

@ -3,46 +3,42 @@
-- >utor: Sokomine
minetest.register_node("travelnet:elevator", {
description = "Elevator",
description = "Elevator",
drawtype = "mesh",
mesh = "travelnet_elevator.obj",
sunlight_propagates = true,
paramtype = 'light',
paramtype2 = "facedir",
wield_scale = {x=0.6, y=0.6, z=0.6},
drawtype = "nodebox",
sunlight_propagates = true,
paramtype = 'light',
paramtype2 = "facedir",
selection_box = {
type = "fixed",
fixed = { -0.5, -0.5, -0.5, 0.5, 1.5, 0.5 }
},
selection_box = {
type = "fixed",
fixed = { -0.5, -0.5, -0.5, 0.5, 1.5, 0.5 }
},
collision_box = {
type = "fixed",
fixed = {
node_box = {
type = "fixed",
fixed = {
{ 0.48, -0.5,-0.5, 0.5, 0.5, 0.5},
{-0.5 , -0.5, 0.48, 0.48, 0.5, 0.5},
{-0.5, -0.5,-0.5 ,-0.48, 0.5, 0.5},
{ 0.48, -0.5,-0.5, 0.5, 0.5, 0.5},
{-0.5 , -0.5, 0.48, 0.48, 0.5, 0.5},
{-0.5, -0.5,-0.5 ,-0.48, 0.5, 0.5},
--groundplate to stand on
{ -0.5,-0.5,-0.5,0.5,-0.48, 0.5},
},
},
tiles = {
"travelnet_elevator_inside_floor.png", -- view from top
"default_stone.png", -- view from bottom
"travelnet_elevator_inside_bottom.png", -- left side
"travelnet_elevator_inside_bottom.png", -- right side
"travelnet_elevator_inside_bottom.png", -- front view
"travelnet_elevator_inside_bottom.png", -- backward view
},
inventory_image = "travelnet_elevator_inv.png",
wield_image = "travelnet_elevator_wield.png",
groups = {cracky=1,choppy=1,snappy=1},
--groundplate to stand on
{ -0.5,-0.5,-0.5,0.5,-0.48, 0.5},
},
},
tiles = {
"travelnet_elevator_front.png",
"travelnet_elevator_inside_controls.png",
"travelnet_elevator_sides_outside.png",
"travelnet_elevator_inside_ceiling.png",
"travelnet_elevator_inside_floor.png",
"default_steel_block.png"
},
inventory_image = "travelnet_elevator_inv.png",
groups = {cracky=1,choppy=1,snappy=1},
light_source = 10,
@ -96,50 +92,7 @@ minetest.register_node("travelnet:elevator", {
end
})
minetest.register_node("travelnet:elevator_top", {
description = "Elevator Top",
drawtype = "nodebox",
sunlight_propagates = true,
paramtype = 'light',
paramtype2 = "facedir",
selection_box = {
type = "fixed",
fixed = { 0, 0, 0, 0, 0, 0 }
-- fixed = { -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 }
},
node_box = {
type = "fixed",
fixed = {
{ 0.48, -0.5,-0.5, 0.5, 0.5, 0.5},
{-0.5 , -0.5, 0.48, 0.48, 0.5, 0.5},
{-0.5, -0.5,-0.5 ,-0.48, 0.5, 0.5},
--top ceiling
{ -0.5, 0.48,-0.5,0.5, 0.5, 0.5},
},
},
tiles = {
"default_stone.png", -- view from top
"travelnet_elevator_inside_ceiling.png", -- view from bottom
"travelnet_elevator_inside_top_control.png", -- left side
"travelnet_elevator_inside_top.png", -- right side
"travelnet_elevator_inside_top.png", -- front view
"travelnet_elevator_inside_top.png", -- backward view
},
inventory_image = "travelnet_elevator_inv.png",
wield_image = "travelnet_elevator_wield.png",
light_source = 10,
groups = {cracky=1,choppy=1,snappy=1,not_in_creative_inventory=1},
})
minetest.register_alias("travelnet:elevator_top", "air")
--if( minetest.get_modpath("technic") ~= nil ) then
-- minetest.register_craft({

63
models/travelnet.obj Normal file

@ -0,0 +1,63 @@
# Blender v2.73 (sub 0) OBJ File: 'travelnet.blend'
# www.blender.org
o Cylinder
v -0.499016 -0.499034 0.499022
v -0.499016 -0.499034 -0.498989
v 0.499035 -0.499034 -0.498989
v 0.499035 -0.499034 0.499022
v -0.499016 1.498990 0.499022
v -0.499016 1.498990 -0.498989
v 0.499035 1.498990 -0.498989
v 0.499035 1.498990 0.499022
v 0.437500 -0.437500 0.437500
v -0.499016 1.437500 -0.498989
v 0.499035 1.437500 -0.498989
v -0.437500 -0.437500 0.437500
v 0.437500 1.437500 0.437500
v -0.499016 -0.437500 -0.498989
v 0.499035 -0.437500 -0.498989
v -0.437500 1.437500 0.437500
v -0.437500 -0.437500 -0.498989
v 0.437500 -0.437500 -0.498989
v -0.437500 1.437500 -0.498989
v 0.437500 1.437500 -0.498989
vt 0.000000 0.968750
vt 1.000000 0.968750
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.062500 0.031250
vt 0.062500 0.968750
vt 0.000000 0.031250
vt 0.937500 0.031250
vt 1.000000 0.031250
vt 0.937500 0.968750
vt 1.000000 -0.000000
vt 0.000000 -0.000000
vt 0.062500 0.000000
vt 0.062500 1.000000
vt 0.937500 -0.000000
vt 0.937500 0.937500
vt 0.062500 0.937500
vt 0.062500 0.062500
vt 0.937500 0.062500
vt 0.937500 1.000000
g Cylinder_Cylinder_front
s off
f 11/1 10/2 6/3 7/4
f 18/5 20/6 11/1 15/7
f 17/8 14/9 10/2 19/10
f 13/6 9/5 12/8 16/10
f 2/11 14/9 15/7 3/12
g Cylinder_Cylinder_back
f 8/4 5/3 1/11 4/12
g Cylinder_Cylinder_sides
f 18/5 9/8 13/10 20/6
f 17/5 19/6 16/10 12/8
f 8/3 4/11 3/13 7/14
f 6/14 2/13 1/11 5/3
g Cylinder_Cylinder_top
f 5/12 8/11 7/3 6/4
f 19/13 20/15 13/16 16/17
g Cylinder_Cylinder_bottom
f 17/14 12/18 9/19 18/20
f 2/12 3/11 4/3 1/4

@ -0,0 +1,64 @@
# Blender v2.73 (sub 0) OBJ File: 'travelnet_elevator.blend'
# www.blender.org
o Cylinder
v -0.499016 -0.499034 0.499022
v -0.499016 -0.499034 -0.498989
v 0.499035 -0.499034 -0.498989
v 0.499035 -0.499034 0.499022
v -0.499016 1.498990 0.499022
v -0.499016 1.498990 -0.498989
v 0.499035 1.498990 -0.498989
v 0.499035 1.498990 0.499022
v 0.437500 -0.437500 0.437500
v -0.499016 1.437500 -0.498989
v 0.499035 1.437500 -0.498989
v -0.437500 -0.437500 0.437500
v 0.437500 1.437500 0.437500
v -0.499016 -0.437500 -0.498989
v 0.499035 -0.437500 -0.498989
v -0.437500 1.437500 0.437500
v -0.437500 -0.437500 -0.498989
v 0.437500 -0.437500 -0.498989
v -0.437500 1.437500 -0.498989
v 0.437500 1.437500 -0.498989
vt 0.000000 0.968750
vt 1.000000 0.968750
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.062500 0.031250
vt 0.062500 0.968750
vt 0.000000 0.031250
vt 0.937500 0.031250
vt 1.000000 0.031250
vt 0.937500 0.968750
vt 1.000000 -0.000000
vt 0.000000 -0.000000
vt 0.062500 -0.000000
vt 0.937500 -0.000000
vt 0.937500 0.937500
vt 0.062500 0.937500
vt 0.062500 1.000000
vt 0.062500 0.062500
vt 0.937500 0.062500
vt 0.937500 1.000000
g Cylinder_Cylinder_front
s off
f 11/1 10/2 6/3 7/4
f 18/5 20/6 11/1 15/7
f 17/8 14/9 10/2 19/10
f 13/6 9/5 12/8 16/10
f 2/11 14/9 15/7 3/12
f 17/7 19/1 16/10 12/8
g Cylinder_Cylinder_controls
f 18/7 9/8 13/10 20/1
g Cylinder_Cylinder_outside
f 8/3 4/11 3/12 7/4
f 6/4 2/12 1/11 5/3
f 8/4 5/3 1/11 4/12
g Cylinder_Cylinder_ceiling
f 19/13 20/14 13/15 16/16
g Cylinder_Cylinder_floor
f 17/17 12/18 9/19 18/20
g Cylinder_Cylinder_top-bottom
f 5/12 8/11 7/3 6/4
f 2/12 3/11 4/3 1/4

Binary file not shown.

After

(image error) Size: 756 B

Binary file not shown.

Before

(image error) Size: 428 B

After

(image error) Size: 292 B

Binary file not shown.

After

(image error) Size: 832 B

Binary file not shown.

Before

(image error) Size: 344 B

After

(image error) Size: 102 B

Binary file not shown.

Before

(image error) Size: 4.2 KiB

After

(image error) Size: 4.8 KiB

Binary file not shown.

After

(image error) Size: 347 B

Binary file not shown.

Before

(image error) Size: 4.2 KiB

Binary file not shown.

Before

(image error) Size: 2.5 KiB

After

(image error) Size: 5.5 KiB

Binary file not shown.

Before

(image error) Size: 441 B

After

(image error) Size: 533 B

Binary file not shown.

Before

(image error) Size: 393 B

After

(image error) Size: 904 B

Binary file not shown.

Before

(image error) Size: 602 B

After

(image error) Size: 731 B

Binary file not shown.

Before

(image error) Size: 138 KiB

Binary file not shown.

Before

(image error) Size: 111 KiB

Binary file not shown.

Before

(image error) Size: 82 KiB

Binary file not shown.

Before

(image error) Size: 107 KiB

Binary file not shown.

Before

(image error) Size: 118 KiB

@ -5,47 +5,45 @@
-- Autor: Sokomine
minetest.register_node("travelnet:travelnet", {
description = "Travelnet box",
description = "Travelnet box",
drawtype = "nodebox",
sunlight_propagates = true,
paramtype = 'light',
paramtype2 = "facedir",
drawtype = "mesh",
mesh = "travelnet.obj",
sunlight_propagates = true,
paramtype = 'light',
paramtype2 = "facedir",
wield_scale = {x=0.6, y=0.6, z=0.6},
selection_box = {
type = "fixed",
fixed = { -0.5, -0.5, -0.5, 0.5, 1.5, 0.5 }
},
selection_box = {
type = "fixed",
fixed = { -0.5, -0.5, -0.5, 0.5, 1.5, 0.5 }
},
collision_box = {
type = "fixed",
fixed = {
node_box = {
type = "fixed",
fixed = {
{ 0.45, -0.5,-0.5, 0.5, 1.45, 0.5},
{-0.5 , -0.5, 0.45, 0.45, 1.45, 0.5},
{-0.5, -0.5,-0.5 ,-0.45, 1.45, 0.5},
{ 0.45, -0.5,-0.5, 0.5, 1.45, 0.5},
{-0.5 , -0.5, 0.45, 0.45, 1.45, 0.5},
{-0.5, -0.5,-0.5 ,-0.45, 1.45, 0.5},
--groundplate to stand on
{ -0.5,-0.5,-0.5,0.5,-0.45, 0.5},
--roof
{ -0.5, 1.45,-0.5,0.5, 1.5, 0.5},
--groundplate to stand on
{ -0.5,-0.5,-0.5,0.5,-0.45, 0.5},
--roof
{ -0.5, 1.45,-0.5,0.5, 1.5, 0.5},
-- control panel
-- { -0.2, 0.6, 0.3, 0.2, 1.1, 0.5},
-- control panel
-- { -0.2, 0.6, 0.3, 0.2, 1.1, 0.5},
},
},
},
},
tiles = {
"default_clay.png", -- view from top
"default_clay.png", -- view from bottom
"travelnet_travelnet_side.png", -- left side
"travelnet_travelnet_side.png", -- right side
"travelnet_travelnet_back.png", -- front view
"travelnet_travelnet_front.png", -- backward view
},
tiles = {
"travelnet_travelnet_front.png", -- backward view
"travelnet_travelnet_back.png", -- front view
"travelnet_travelnet_side.png", -- sides :)
"default_steel_block.png", -- view from top
"default_clay.png", -- view from bottom
},
inventory_image = "travelnet_inv.png",
groups = {cracky=1,choppy=1,snappy=1},