1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124
|
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- Spring LUA model file (V1.0)
--
-- created by trepan's obj2lua.lua
--
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- filename: colors.obj
-- objects: 1
-- triangles: 6
-- materials: 2
-- vertices: 5
-- texcoorcds: 4
-- normals: 1
-- colors: 5
--
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
local mtls = {}
mtls["sides"] = {
name = "sides",
texture = "mesh.png",
ambient = { 1.000000, 1.000000, 1.000000, 1.000000 },
diffuse = { 1.000000, 1.000000, 1.000000, 0.750000 },
emission = { 0.000000, 0.000000, 0.000000, 1.000000 },
specular = { 1.000000, 1.000000, 1.000000, 1.000000 },
shininess = 128,
lighting = false
}
mtls["bottom"] = {
name = "bottom",
texture = "players.png",
ambient = { 1.000000, 1.000000, 1.000000, 1.000000 },
diffuse = { 1.000000, 1.000000, 1.000000, 0.750000 },
emission = { 0.000000, 0.000000, 0.000000, 1.000000 },
specular = { 1.000000, 1.000000, 1.000000, 1.000000 },
shininess = 128,
lighting = true
}
--------------------------------------------------------------------------------
local v = {}
v[1] = { 0.000000, 1.000000, 0.000000 }
v[2] = { -1.000000, 0.000000, 0.000000 }
v[3] = { 1.000000, 0.000000, 0.000000 }
v[4] = { 0.000000, 0.000000, -1.000000 }
v[5] = { 0.000000, 0.000000, 1.000000 }
--------------------------------------------------------------------------------
local t = {}
t[1] = { 0.000000, 0.000000 }
t[2] = { 1.000000, 0.000000 }
t[3] = { 1.000000, 1.000000 }
t[4] = { 0.000000, 1.000000 }
--------------------------------------------------------------------------------
local n = {}
n[1] = { 0.000000, 1.000000, 0.000000 }
--------------------------------------------------------------------------------
local c = {}
c[1] = { 1.000000, 1.000000, 1.000000, 1.000000 }
c[2] = { 1.000000, 0.000000, 0.000000, 0.500000 }
c[3] = { 0.000000, 1.000000, 0.000000, 0.500000 }
c[4] = { 0.000000, 0.000000, 1.000000, 0.500000 }
c[5] = { 1.000000, 1.000000, 0.000000, 0.500000 }
--------------------------------------------------------------------------------
local objs = {}
objs[1] = { -- 6 tris
name = "",
mats = {
["sides"] = {
{{1,0,1,1}, {2,0,1,2}, {5,0,1,5}},
{{1,0,1,1}, {5,0,1,5}, {3,0,1,3}},
{{1,0,1,1}, {3,0,1,3}, {4,0,1,4}},
{{1,0,1,1}, {4,0,1,4}, {2,0,1,2}},
},
["bottom"] = {
{{2,4,1,2}, {4,3,1,4}, {3,2,1,3}, {5,1,1,5}},
},
}
}
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
local exts = {
xmin = -1,
xmax = 1,
ymin = 0,
ymax = 1,
zmin = -1,
zmax = 1
}
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
return "1.0", objs, mtls, v, t, n, c, exts
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- filename: colors.obj
-- objects: 1
-- triangles: 6
-- materials: 2
-- vertices: 5
-- texcoorcds: 4
-- normals: 1
-- colors: 5
--
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
|