Author Topic: 1x2F ceiling print brick  (Read 843 times)

I'm attempting to make a 1x2F ceiling print brick. Here's how far I got, but Blockland just crashes when attempting to load the add-on.

Code: [Select]
2 1 1
SPECIAL

bb

1

0 0 0
2 1 1
----------------top quads:
1

TEX:TOP
POSITION:
-1 -0.5 0.5
-1 0.5 0.5
1 0.5 0.5
1 -0.5 0.5
UV COORDS:
0 1
0 0
1 0
1 1
NORMALS:
0 0 1
0 0 1
0 0 1
0 0 1
----------------bottom quads:
1

TEX:PRINT
POSITION:
-1 -0.5 -0.5
1 -0.5 -0.5
0.5 0 -0.5
-0.5 0 -0.5
UV COORDS:
0.2 0
0.7 0
0.7 0.5
0.2 0.5
NORMALS:
0 0 -1
0 0 -1
0 0 -1
0 0 -1

----------------north quads:
1

TEX:SIDE
POSITION:
-1 0.5 0.5
-1 0.5 -0.5
1 0.5 -0.5
1 0.5 0.5
UV COORDS:
1 -0.09
1 1.09
0 1.09
0 -0.09
NORMALS:
0 1 0
0 1 0
0 1 0
0 1 0
----------------east quads:
1

TEX:SIDE
POSITION:
1 -0.5 0.5
1 0.5 0.5
1 0.5 -0.5
1 -0.5 -0.5
UV COORDS:
-0.02 -0.09
1.02 -0.09
1.02 1.09
-0.02 1.09
NORMALS:
1 0 0
1 0 0
1 0 0
1 0 0
----------------south quads:
1

TEX:SIDE
POSITION:
1 -0.5 0.5
1 -0.5 -0.5
-1 -0.5 -0.5
-1 -0.5 0.5
UV COORDS:
1 -0.09
1 1.09
0 1.09
0 -0.09
NORMALS:
0 -1 0
0 -1 0
0 -1 0
0 -1 0
----------------west quads:
1

TEX:SIDE
POSITION:
-1 -0.5 -0.5
-1 0.5 -0.5
-1 0.5 0.5
-1 -0.5 0.5
UV COORDS:
1.02 1.09
-0.02 1.09
-0.02 -0.09
1.02 -0.09
NORMALS:
-1 0 0
-1 0 0
-1 0 0
-1 0 0
----------------omni quads:
0

Code: [Select]
0 0 -1

----------------north quads:
Remove that gap. :cookieMonster:

Would anyone mind explaining me how the position thing works? The top quads are messed up and the bottom print face doesn't show up.

Code: [Select]
2 1 1
SPECIAL

bb

1

0 0 0
2 1 1
----------------top quads:
2

TEX:TOP
POSITION:
-0.5 -0.5 0.5
-0.5 0.5 0.5
0.5 0.5 0.5
0.5 -0.5 0.5
UV COORDS:
0 1
0 0
1 0
1 1
NORMALS:
0 0 1
0 0 1
0 0 1
0 0 1
----------------bottom quads:
1

TEX:PRINT
POSITION:
-1 -0.5 -0.5
1 -0.5 -0.5
0.5 0 -0.5
-0.5 0 -0.5
UV COORDS:
0 1
0 0
1 0
1 1
NORMALS:
0 0 -1
0 0 -1
0 0 -1
0 0 -1
----------------north quads:
1

TEX:SIDE
POSITION:
-1 0.5 0.5
-1 0.5 -0.5
1 0.5 -0.5
1 0.5 0.5
UV COORDS:
1 -0.09
1 1.09
0 1.09
0 -0.09
NORMALS:
0 1 0
0 1 0
0 1 0
0 1 0
----------------east quads:
1

TEX:SIDE
POSITION:
1 -0.5 0.5
1 0.5 0.5
1 0.5 -0.5
1 -0.5 -0.5
UV COORDS:
-0.02 -0.09
1.02 -0.09
1.02 1.09
-0.02 1.09
NORMALS:
1 0 0
1 0 0
1 0 0
1 0 0
----------------south quads:
1

TEX:SIDE
POSITION:
1 -0.5 0.5
1 -0.5 -0.5
-1 -0.5 -0.5
-1 -0.5 0.5
UV COORDS:
1 -0.09
1 1.09
0 1.09
0 -0.09
NORMALS:
0 -1 0
0 -1 0
0 -1 0
0 -1 0
----------------west quads:
1

TEX:SIDE
POSITION:
-1 -0.5 -0.5
-1 0.5 -0.5
-1 0.5 0.5
-1 -0.5 0.5
UV COORDS:
1.02 1.09
-0.02 1.09
-0.02 -0.09
1.02 -0.09
NORMALS:
-1 0 0
-1 0 0
-1 0 0
-1 0 0
----------------omni quads:
0

POSITION defines the location of each vertex relative to the centre of the shape you defined on the first line. You were on the right track with the top quads in that previous piece of code, all that needed touching up were the UVs.

I recieved a nasty error when I planted your brick, so I'm not certain what the problem is with the bottom quads. However, I can tell you that the position is a little screwed up. It should be:
Code: [Select]
POSITION:
-1 -0.5 -0.5
1 -0.5 -0.5
1 0.5 -0.5
-1 0.5 -0.5
This arranges each vertex to form a rectangular quad.


Also:
Code: [Select]
----------------top quads:
2
This should probably be 1 for now.
« Last Edit: February 04, 2010, 02:54:45 PM by Tophius »

God damn I hit 'quote' instead of 'modify'. Again. Disregard this post.

I guess I wont be releasing this brick, as I do not have the skills to make it work.