Fix UV mapping for lens model.

This commit is contained in:
Aaron Suen 2019-11-30 17:44:28 -05:00
parent 7af74ee5d6
commit a5d5f381e5
4 changed files with 55 additions and 39 deletions

View File

@ -51,7 +51,11 @@ local basedef = {
collision_box = nodecore.fixedbox(
{-0.5, -0.5, -3/8, 0.5, 0.5, 3/8}
),
tiles = {"nc_optics_lens_uv.png"},
tiles = {
txr,
txr .. "^" .. modname .. "_lens_out.png",
txr .. "^" .. modname .. "_lens_in.png"
},
groups = {
silica = 1,
optic_check = 1,
@ -83,12 +87,9 @@ reg("_glow", {
description = "Shining Lens",
light_source = 12,
tiles = {
txr,
txr,
txr,
txr,
txr .. "^" .. modname .. "_lens_in.png",
txr .. "^" .. modname .. "_lens_out.png",
txr .. "^" .. modname .. "_lens_out.png"
},
})

View File

@ -1,6 +1,6 @@
# Blender v2.79 (sub 0) OBJ File: 'lens.blend'
# Blender v2.79 (sub 0) OBJ File: 'nc_optics_lens.blend'
# www.blender.org
mtllib lens.mtl
mtllib nc_optics_lens.mtl
o Cube
v 0.500000 -0.500000 0.140000
v 0.500000 -0.500000 -0.360000
@ -12,45 +12,60 @@ v -0.500000 0.500000 -0.360000
v -0.500000 0.500000 0.140000
v 0.000000 0.000000 0.390000
v 0.000000 0.000000 -0.110000
vt 0.500000 0.875000
vt 0.250000 1.000000
vt 0.750000 1.000000
vt 0.250000 0.625000
vt 0.250000 0.765625
vt 0.750000 0.765625
vt 0.750000 0.625000
vt 0.250000 0.375000
vt 0.000000 0.375000
vt -0.000000 0.625000
vt 1.000000 0.375000
vt 0.750000 0.375000
vt 1.000000 0.625000
vt 1.000000 0.750000
vt 1.000000 0.250000
vt 0.000000 0.250000
vt 0.000000 0.750000
vt 1.000000 0.750000
vt 1.000000 0.250000
vt 0.000000 0.250000
vt -0.000000 0.750000
vt -0.000000 0.250000
vt 0.000000 0.750000
vt 1.000000 0.750000
vt 1.000000 0.250000
vt 1.000000 0.750000
vt 1.000000 0.250000
vt -0.000000 0.250000
vt 0.000000 0.750000
vt 0.500000 0.500000
vt 0.750000 0.250000
vt 0.250000 0.250000
vn 0.0000 0.4472 -0.8944
vt -0.000000 -0.000000
vt -0.000000 1.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.500000 0.500000
vt 1.000000 0.000000
vt 0.000000 0.000000
vt 1.000000 1.000000
vt -0.000000 1.000000
vn 0.0000 1.0000 0.0000
vn 1.0000 0.0000 0.0000
vn -0.4472 0.0000 -0.8944
vn -1.0000 0.0000 0.0000
vn 0.0000 -1.0000 0.0000
vn 0.4472 0.0000 0.8944
vn 0.0000 -0.4472 -0.8944
vn 0.0000 -0.4472 0.8944
vn 0.0000 0.4472 0.8944
vn -0.4472 0.0000 0.8944
vn 0.0000 -1.0000 0.0000
vn 0.0000 0.4472 -0.8944
vn -0.4472 0.0000 -0.8944
vn 0.0000 -0.4472 -0.8944
vn 0.4472 0.0000 -0.8944
usemtl Material
g Cube_Cube_sides
usemtl sides
s off
f 10/1/1 2/2/1 3/3/1
f 5/4/2 6/5/2 7/6/2 8/7/2
f 1/8/3 2/9/3 6/10/3 5/4/3
f 10/1/4 6/5/4 2/2/4
f 3/11/5 4/12/5 8/7/5 7/13/5
f 9/14/6 1/8/6 5/4/6
f 7/6/7 6/5/7 10/1/7
f 4/12/8 1/8/8 9/14/8
f 9/14/9 5/4/9 8/7/9
f 4/12/10 9/14/10 8/7/10
f 4/12/11 3/15/11 2/16/11 1/8/11
f 7/6/12 10/1/12 3/3/12
f 5/1/1 6/2/1 7/3/1 8/4/1
f 1/5/2 2/6/2 6/7/2 5/8/2
f 3/9/3 4/10/3 8/11/3 7/12/3
f 4/13/4 3/14/4 2/15/4 1/16/4
g Cube_Cube_front
usemtl front
f 9/17/5 1/18/5 5/19/5
f 4/20/6 1/18/6 9/17/6
f 9/17/7 5/19/7 8/21/7
f 4/20/8 9/17/8 8/21/8
g Cube_Cube_back
usemtl back
f 10/22/9 2/23/9 3/24/9
f 10/22/10 6/25/10 2/23/10
f 7/26/11 6/25/11 10/22/11
f 7/26/12 10/22/12 3/24/12

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB