Author Topic: Rotating textures on bricks to face the right direction [IN BLB]  (Read 376 times)


The top left brick has the correct rotation.

Some of the code for the top left brick: [correct rotation]
Code: [Select]
1

0 0 0
32 32 1
COVERAGE:
0 : 1024
1 : 1024
1 : 32
1 : 32
1 : 32
1 : 32
----------------top quads:
11

TEX:RAMP
POSITION:
-14.000000 -16.000000 0.500000
-15.000000 -16.000000 0.500000
-15.000000 -15.000000 0.500000
-14.000000 -14.000000 0.500000
UV COORDS:
15.000000 -16.000000
15.999998 -16.000000
15.999998 -15.000002
15.000000 -14.000002
COLORS:
1.000000 1.000000 1.000000 1.000000
1.000000 1.000000 1.000000 1.000000
1.000000 1.000000 1.000000 1.000000
1.000000 1.000000 1.000000 1.000000
NORMALS:
0.000000 -0.000000 1.000000
0.000000 -0.000000 1.000000
0.000000 -0.000000 1.000000
0.000000 -0.000000 1.000000

TEX:RAMP
POSITION:
-14.000000 -14.000000 0.500000
-15.000000 -15.000000 0.500000
-16.000000 -15.000000 0.500000
-16.000000 -14.000000 0.500000
UV COORDS:
15.000000 -14.000002
15.999998 -15.000002
17.000000 -15.000002
17.000000 -14.000002
COLORS:
1.000000 1.000000 1.000000 1.000000
1.000000 1.000000 1.000000 1.000000
1.000000 1.000000 1.000000 1.000000
1.000000 1.000000 1.000000 1.000000
NORMALS:
0.000000 -0.000000 1.000000
0.000000 -0.000000 1.000000
0.000000 -0.000000 1.000000
0.000000 -0.000000 1.000000

TEX:RAMP
POSITION:
14.000000 16.000000 0.500000
15.000000 16.000000 0.500000
15.000000 -16.000000 0.500000
14.000000 -16.000000 0.500000
UV COORDS:
1.000000 16.000000
0.000000 16.000000
0.000000 -16.000000
1.000000 -16.000000
COLORS:
1.000000 1.000000 1.000000 1.000000
1.000000 1.000000 1.000000 1.000000
1.000000 1.000000 1.000000 1.000000
1.000000 1.000000 1.000000 1.000000
NORMALS:
0.000000 -0.000000 1.000000
0.000000 -0.000000 1.000000
0.000000 -0.000000 1.000000
0.000000 -0.000000 1.000000

TEX:RAMP
POSITION:
-15.000000 15.000000 0.500000
-15.000000 16.000000 0.500000
-14.000000 16.000000 0.500000
-14.000000 14.000000 0.500000
UV COORDS:
15.999998 15.000001
15.999998 16.000000
15.000000 16.000000
15.000000 14.000000
COLORS:
1.000000 1.000000 1.000000 1.000000
1.000000 1.000000 1.000000 1.000000
1.000000 1.000000 1.000000 1.000000
1.000000 1.000000 1.000000 1.000000
NORMALS:
0.000000 -0.000000 1.000000
0.000000 -0.000000 1.000000
0.000000 -0.000000 1.000000
0.000000 -0.000000 1.000000

TEX:RAMP
POSITION:
-16.000000 15.000000 0.500000
-15.000000 15.000000 0.500000
-14.000000 14.000000 0.500000
-16.000000 14.000000 0.500000
UV COORDS:
17.000000 15.000001
15.999998 15.000001
15.000000 14.000000
17.000000 14.000000
COLORS:
1.000000 1.000000 1.000000 1.000000
1.000000 1.000000 1.000000 1.000000
1.000000 1.000000 1.000000 1.000000
1.000000 1.000000 1.000000 1.000000
NORMALS:
0.000000 -0.000000 1.000000
0.000000 -0.000000 1.000000
0.000000 -0.000000 1.000000
0.000000 -0.000000 1.000000

TEX:TOP
POSITION:
15.000000 -16.000000 0.500000
15.000000 16.000000 0.500000
16.000000 16.000000 0.500000
16.000000 -16.000000 0.500000
UV COORDS:
1.000000 -15.999998
1.000000 15.999999
0.000000 15.999999
0.000000 -15.999998
NORMALS:
0.000000 -0.000000 1.000000
0.000000 -0.000000 1.000000
0.000000 -0.000000 1.000000
0.000000 -0.000000 1.000000

TEX:TOP
POSITION:
-16.000000 16.000000 0.500000
-15.000000 16.000000 0.500000
-15.000000 15.000000 0.500000
-16.000000 15.000000 0.500000
UV COORDS:
17.000000 16.000000
15.999998 16.000000
15.999998 15.000001
17.000000 15.000001
NORMALS:
0.000000 -0.000000 1.000000
0.000000 -0.000000 1.000000
0.000000 -0.000000 1.000000
0.000000 -0.000000 1.000000

TEX:TOP
POSITION:
14.000000 14.000000 0.500000
-14.000000 14.000000 0.500000
-14.000000 16.000000 0.500000
14.000000 16.000000 0.500000
UV COORDS:
-13.000000 14.000000
15.000000 14.000000
15.000000 16.000000
-13.000000 16.000000
NORMALS:
0.000000 -0.000000 1.000000
0.000000 -0.000000 1.000000
0.000000 -0.000000 1.000000
0.000000 -0.000000 1.000000

TEX:TOP
POSITION:
-14.000000 -14.000000 0.500000
14.000000 -14.000000 0.500000
14.000000 -16.000000 0.500000
-14.000000 -16.000000 0.500000
UV COORDS:
15.000000 -14.000002
-13.000000 -14.000002
-13.000000 -16.000000
15.000000 -16.000000
NORMALS:
0.000000 -0.000000 1.000000
0.000000 -0.000000 1.000000
0.000000 -0.000000 1.000000
0.000000 -0.000000 1.000000

TEX:TOP
POSITION:
-16.000000 -14.000000 0.500000
-16.000000 14.000000 0.500000
14.000000 14.000000 0.500000
14.000000 -14.000000 0.500000
UV COORDS:
17.000000 -14.000002
17.000000 14.000000
-13.000000 14.000000
-13.000000 -14.000002
NORMALS:
0.000000 -0.000000 1.000000
0.000000 -0.000000 1.000000
0.000000 -0.000000 1.000000
0.000000 -0.000000 1.000000

TEX:TOP
POSITION:
-15.000000 -15.000000 0.500000
-15.000000 -16.000000 0.500000
-16.000000 -16.000000 0.500000
-16.000000 -15.000000 0.500000
UV COORDS:
15.999998 -15.000002
15.999998 -16.000000
17.000000 -16.000000
17.000000 -15.000002
NORMALS:
0.000000 -0.000000 1.000000
0.000000 -0.000000 1.000000
0.000000 -0.000000 1.000000
0.000000 -0.000000 1.000000

The other bricks: [wrong rotation]
Code: [Select]
1

0 0 0
64 32 1
COVERAGE:
0 : 2048
1 : 2048
1 : 64
1 : 32
1 : 64
1 : 32
----------------top quads:
15

TEX:RAMP
POSITION:
32.000000 14.000000 0.500000
-32.000000 14.000000 0.500000
-32.000000 15.000000 0.500000
32.000000 15.000000 0.500000
UV COORDS:
-12.999971 -32.000000
-12.999998 31.999987
-13.999998 31.999987
-13.999970 -32.000000
COLORS:
1.000000 1.000000 1.000000 1.000000
1.000000 1.000000 1.000000 1.000000
1.000000 1.000000 1.000000 1.000000
1.000000 1.000000 1.000000 1.000000
NORMALS:
-0.000000 0.000000 1.000000
-0.000000 0.000000 1.000000
-0.000000 0.000000 1.000000
-0.000000 0.000000 1.000000

TEX:RAMP
POSITION:
-32.000000 -14.000000 0.500000
32.000000 -14.000000 0.500000
32.000000 -15.000000 0.500000
-32.000000 -15.000000 0.500000
UV COORDS:
14.999971 32.000000
15.000002 -31.999981
16.000004 -31.999981
15.999973 32.000000
COLORS:
1.000000 1.000000 1.000000 1.000000
1.000000 1.000000 1.000000 1.000000
1.000000 1.000000 1.000000 1.000000
1.000000 1.000000 1.000000 1.000000
NORMALS:
-0.000000 0.000000 1.000000
-0.000000 0.000000 1.000000
-0.000000 0.000000 1.000000
-0.000000 0.000000 1.000000

TEX:TOP
POSITION:
-4.000000 0.500000 0.500000
4.000000 0.500000 0.500000
4.000000 -0.500000 0.500000
-4.000000 -0.500000 0.500000
UV COORDS:
0.499997 4.000002
0.500004 -3.999996
1.500002 -3.999996
1.500002 4.000002
NORMALS:
-0.000000 0.000000 1.000000
-0.000000 0.000000 1.000000
-0.000000 0.000000 1.000000
-0.000000 0.000000 1.000000

TEX:TOP
POSITION:
-20.000000 0.500000 0.500000
-12.000000 0.500000 0.500000
-12.000000 -0.500000 0.500000
-20.000000 -0.500000 0.500000
UV COORDS:
0.499991 19.999996
0.499994 12.000000
1.499996 12.000000
1.499990 19.999996
NORMALS:
-0.000000 0.000000 1.000000
-0.000000 0.000000 1.000000
-0.000000 0.000000 1.000000
-0.000000 0.000000 1.000000

TEX:TOP
POSITION:
32.000000 0.500000 0.500000
32.000000 -0.500000 0.500000
28.000000 -0.500000 0.500000
28.000000 0.500000 0.500000
UV COORDS:
0.500015 -31.999989
1.500015 -31.999989
1.500015 -27.999989
0.500015 -27.999989
NORMALS:
-0.000000 0.000000 1.000000
-0.000000 0.000000 1.000000
-0.000000 0.000000 1.000000
-0.000000 0.000000 1.000000

TEX:TOP
POSITION:
-28.000000 0.500000 0.500000
-28.000000 -0.500000 0.500000
-32.000000 -0.500000 0.500000
-32.000000 0.500000 0.500000
UV COORDS:
0.499989 27.999992
1.499985 27.999992
1.499985 31.999994
0.499989 31.999994
NORMALS:
-0.000000 0.000000 1.000000
-0.000000 0.000000 1.000000
-0.000000 0.000000 1.000000
-0.000000 0.000000 1.000000

TEX:TOP
POSITION:
20.000000 0.500000 0.500000
20.000000 -0.500000 0.500000
12.000000 -0.500000 0.500000
12.000000 0.500000 0.500000
UV COORDS:
0.500012 -19.999992
1.500008 -19.999992
1.500008 -11.999992
0.500007 -11.999992
NORMALS:
-0.000000 0.000000 1.000000
-0.000000 0.000000 1.000000
-0.000000 0.000000 1.000000
-0.000000 0.000000 1.000000

TEX:TOP
POSITION:
-32.000000 -15.000000 0.500000
32.000000 -15.000000 0.500000
32.000000 -16.000000 0.500000
-32.000000 -16.000000 0.500000
UV COORDS:
15.999973 32.000000
16.000004 -31.999981
17.000000 -31.999981
16.999969 32.000000
NORMALS:
-0.000000 0.000000 1.000000
-0.000000 0.000000 1.000000
-0.000000 0.000000 1.000000
-0.000000 0.000000 1.000000

TEX:TOP
POSITION:
32.000000 15.000000 0.500000
-32.000000 15.000000 0.500000
-32.000000 16.000000 0.500000
32.000000 16.000000 0.500000
UV COORDS:
-13.999970 -32.000000
-13.999998 31.999987
-15.000000 31.999987
-14.999967 -32.000000
NORMALS:
-0.000000 0.000000 1.000000
-0.000000 0.000000 1.000000
-0.000000 0.000000 1.000000
-0.000000 0.000000 1.000000

TEX:TOP
POSITION:
32.000000 14.000000 0.500000
32.000000 0.500000 0.500000
-32.000000 0.500000 0.500000
-32.000000 14.000000 0.500000
UV COORDS:
-12.999971 -32.000000
0.500015 -31.999989
0.499989 31.999994
-12.999998 31.999987
NORMALS:
-0.000000 0.000000 1.000000
-0.000000 0.000000 1.000000
-0.000000 0.000000 1.000000
-0.000000 0.000000 1.000000

TEX:TOP
POSITION:
32.000000 -0.500000 0.500000
32.000000 -14.000000 0.500000
-32.000000 -14.000000 0.500000
-32.000000 -0.500000 0.500000
UV COORDS:
1.500015 -31.999989
15.000002 -31.999981
14.999971 32.000000
1.499985 31.999994
NORMALS:
-0.000000 0.000000 1.000000
-0.000000 0.000000 1.000000
-0.000000 0.000000 1.000000
-0.000000 0.000000 1.000000

TEX:RAMP
POSITION:
-4.000000 0.500000 0.500000
-4.000000 -0.500000 0.500000
-12.000000 -0.500000 0.500000
-12.000000 0.500000 0.500000
UV COORDS:
0.499997 4.000002
1.500002 4.000002
1.499996 12.000000
0.499994 12.000000
COLORS:
1.000000 0.687000 0.000000 1.000000
1.000000 0.687000 0.000000 1.000000
1.000000 0.687000 0.000000 1.000000
1.000000 0.687000 0.000000 1.000000
NORMALS:
-0.000000 0.000000 1.000000
-0.000000 0.000000 1.000000
-0.000000 0.000000 1.000000
-0.000000 0.000000 1.000000

TEX:RAMP
POSITION:
-20.000000 0.500000 0.500000
-20.000000 -0.500000 0.500000
-28.000000 -0.500000 0.500000
-28.000000 0.500000 0.500000
UV COORDS:
0.499991 19.999996
1.499990 19.999996
1.499985 27.999992
0.499989 27.999992
COLORS:
1.000000 0.687000 0.000000 1.000000
1.000000 0.687000 0.000000 1.000000
1.000000 0.687000 0.000000 1.000000
1.000000 0.687000 0.000000 1.000000
NORMALS:
-0.000000 0.000000 1.000000
-0.000000 0.000000 1.000000
-0.000000 0.000000 1.000000
-0.000000 0.000000 1.000000

TEX:RAMP
POSITION:
12.000000 0.500000 0.500000
12.000000 -0.500000 0.500000
4.000000 -0.500000 0.500000
4.000000 0.500000 0.500000
UV COORDS:
0.500007 -11.999992
1.500008 -11.999992
1.500002 -3.999996
0.500004 -3.999996
COLORS:
1.000000 0.687000 0.000000 1.000000
1.000000 0.687000 0.000000 1.000000
1.000000 0.687000 0.000000 1.000000
1.000000 0.687000 0.000000 1.000000
NORMALS:
-0.000000 0.000000 1.000000
-0.000000 0.000000 1.000000
-0.000000 0.000000 1.000000
-0.000000 0.000000 1.000000

TEX:RAMP
POSITION:
28.000000 0.500000 0.500000
28.000000 -0.500000 0.500000
20.000000 -0.500000 0.500000
20.000000 0.500000 0.500000
UV COORDS:
0.500015 -27.999989
1.500015 -27.999989
1.500008 -19.999992
0.500012 -19.999992
COLORS:
1.000000 0.687000 0.000000 1.000000
1.000000 0.687000 0.000000 1.000000
1.000000 0.687000 0.000000 1.000000
1.000000 0.687000 0.000000 1.000000
NORMALS:
-0.000000 0.000000 1.000000
-0.000000 0.000000 1.000000
-0.000000 0.000000 1.000000
-0.000000 0.000000 1.000000

Any help would be appreciated.

Disclaimer: these are not my bricks.

Update: It has to do with UV mapping. I don't think there is a convenient way to properly rotate the UV via .blb though if you prove me wrong I will be very, very greatful.
« Last Edit: July 22, 2016, 09:26:18 AM by --LegoPepper-- »