Fix slopes texture mappings

master
Jordan Irwin 2021-08-26 11:02:47 -07:00
parent b44da2be2d
commit 8ad71cf159
8 changed files with 34 additions and 38 deletions

View File

@ -72,7 +72,9 @@ simple_models_slope_1x1x2:
<img src="previews/slope_1x1x2_model.png" />
- texture map: same as simple_models_slope_1x1x1
- texture map:
<img src="textures/simple_models_sample_slope_1x1x2_map.png" />
#### Tables

View File

@ -1,6 +1,5 @@
# Blender v2.93.2 OBJ File: 'simple_models_slope_1x1x1.blend'
# www.blender.org
mtllib simple_models_slope_1x1x1.mtl
o Cube
v 0.500000 -0.500000 -0.500000
v 0.500000 0.500000 0.500000
@ -8,33 +7,30 @@ v 0.500000 -0.500000 0.500000
v -0.500000 -0.500000 -0.500000
v -0.500000 0.500000 0.500000
v -0.500000 -0.500000 0.500000
vt 0.333333 -0.000000
vt 0.333333 0.500000
vt 0.000000 0.500000
vt -0.000000 0.000000
vt 1.000000 0.500000
vt 0.666667 0.500000
vt 0.666667 0.000000
vt 1.000000 0.000000
vt 1.000000 0.500000
vt 1.000000 1.000000
vt 0.666667 0.500000
vt 0.000000 0.500000
vt 0.333333 0.500000
vt 0.000000 1.000000
vt 0.666667 -0.000000
vt 0.666667 1.000000
vt 0.333333 1.000000
vt 0.333333 0.000000
vt 0.333333 0.500000
vt 0.666667 0.500000
vt 0.333333 0.500000
vt 0.333333 -0.000000
vt 0.666667 -0.000000
vt 1.000000 0.500000
vt 1.000000 1.000000
vt 0.666667 0.000000
vt 1.000000 0.000000
vt 0.666667 0.500000
vt 0.333333 0.250000
vt 0.000000 1.000000
vt 0.000000 0.250000
vn 0.0000 0.0000 1.0000
vn 0.0000 -1.0000 0.0000
vn -1.0000 0.0000 0.0000
vn 1.0000 0.0000 0.0000
vn 0.0000 0.7071 -0.7071
usemtl Material
s off
f 3/1/1 2/2/1 5/3/1 6/4/1
f 4/5/2 1/6/2 3/7/2 6/8/2
f 6/9/3 5/10/3 4/11/3
f 3/12/4 1/13/4 2/14/4
f 4/15/5 5/16/5 2/17/5 1/18/5
f 6/9/3 5/10/3 4/5/3
f 3/11/4 1/12/4 2/13/4
f 4/14/5 5/3/5 2/15/5 1/16/5

View File

@ -1,6 +1,5 @@
# Blender v2.93.2 OBJ File: 'simple_models_slope_1x1x2.blend'
# www.blender.org
mtllib simple_models_slope_1x1x2.mtl
o Cube
v 0.500000 -0.500000 -0.500000
v 0.500000 0.500000 1.500000
@ -8,30 +7,29 @@ v 0.500000 -0.500000 1.500000
v -0.500000 -0.500000 -0.500000
v -0.500000 0.500000 1.500000
v -0.500000 -0.500000 1.500000
vt 0.333333 -0.000000
vt 0.333333 0.500000
vt 0.000000 0.500000
vt -0.000000 0.000000
vt 1.000000 0.500000
vt 0.666667 0.500000
vt 0.666667 0.000000
vt 1.000000 0.000000
vt 1.000000 0.500000
vt 1.000000 0.750000
vt 1.000000 1.000000
vt 0.666667 0.500000
vt 0.000000 0.500000
vt 0.333333 0.500000
vt 0.000000 1.000000
vt 0.666667 -0.000000
vt 0.666667 1.000000
vt 0.666667 0.750000
vt 0.666667 1.000000
vt 0.333333 1.000000
vt 0.333333 0.500000
vt 0.666667 0.500000
vt 1.000000 0.250000
vt 1.000000 0.500000
vt 0.333333 0.250000
vt 0.333333 0.000000
vt 1.000000 0.000000
vt 0.333333 0.250000
vt 0.333333 0.437500
vt 0.333333 1.000000
vt 0.000000 1.000000
vt 0.000000 0.437500
vn 0.0000 0.0000 1.0000
vn 0.0000 -1.0000 0.0000
vn -1.0000 0.0000 0.0000
vn 1.0000 0.0000 0.0000
vn 0.0000 0.8944 -0.4472
usemtl Material
s off
f 3/1/1 2/2/1 5/3/1 6/4/1
f 4/5/2 1/6/2 3/7/2 6/8/2

View File

@ -270,7 +270,7 @@ core.register_node("simple_models:slope", {
core.register_node("simple_models:slope_long", {
description = "Long Slope",
drawtype = "mesh",
tiles = {"simple_models_sample_slope_1x1x1_map.png"},
tiles = {"simple_models_sample_slope_1x1x2_map.png"},
mesh = smodel.slope_long.mesh,
collision_box = {
type = "fixed",

Binary file not shown.

Before

Width:  |  Height:  |  Size: 526 B

After

Width:  |  Height:  |  Size: 528 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 645 B