Textured Slanted Model
well mostly, the Up slant needs a seperate texture unless someone can think of a way to use the current without rotating the model alot.
Before Width: | Height: | Size: 839 B |
BIN
models/Thumbs.db
Normal file
BIN
resources/assemblyline/textures/Thumbs.db
Normal file
BIN
resources/assemblyline/textures/slantedbelt/Upframe0.png
Normal file
After Width: | Height: | Size: 1,018 B |
BIN
resources/assemblyline/textures/slantedbelt/frame0.png
Normal file
After Width: | Height: | Size: 968 B |
BIN
resources/assemblyline/textures/slantedbelt/frame1.png
Normal file
After Width: | Height: | Size: 835 B |
BIN
resources/assemblyline/textures/slantedbelt/frame10.png
Normal file
After Width: | Height: | Size: 1,017 B |
BIN
resources/assemblyline/textures/slantedbelt/frame11.png
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
resources/assemblyline/textures/slantedbelt/frame12.png
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
resources/assemblyline/textures/slantedbelt/frame13.png
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
resources/assemblyline/textures/slantedbelt/frame14.png
Normal file
After Width: | Height: | Size: 1,020 B |
BIN
resources/assemblyline/textures/slantedbelt/frame15.png
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
resources/assemblyline/textures/slantedbelt/frame16.png
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
resources/assemblyline/textures/slantedbelt/frame17.png
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
resources/assemblyline/textures/slantedbelt/frame18.png
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
resources/assemblyline/textures/slantedbelt/frame19.png
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
resources/assemblyline/textures/slantedbelt/frame2.png
Normal file
After Width: | Height: | Size: 936 B |
BIN
resources/assemblyline/textures/slantedbelt/frame20.png
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
resources/assemblyline/textures/slantedbelt/frame21.png
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
resources/assemblyline/textures/slantedbelt/frame22.png
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
resources/assemblyline/textures/slantedbelt/frame23.png
Normal file
After Width: | Height: | Size: 1,020 B |
BIN
resources/assemblyline/textures/slantedbelt/frame3.png
Normal file
After Width: | Height: | Size: 1,012 B |
BIN
resources/assemblyline/textures/slantedbelt/frame4.png
Normal file
After Width: | Height: | Size: 1,009 B |
BIN
resources/assemblyline/textures/slantedbelt/frame5.png
Normal file
After Width: | Height: | Size: 1,014 B |
BIN
resources/assemblyline/textures/slantedbelt/frame6.png
Normal file
After Width: | Height: | Size: 1,005 B |
BIN
resources/assemblyline/textures/slantedbelt/frame7.png
Normal file
After Width: | Height: | Size: 1,017 B |
BIN
resources/assemblyline/textures/slantedbelt/frame8.png
Normal file
After Width: | Height: | Size: 1,018 B |
BIN
resources/assemblyline/textures/slantedbelt/frame9.png
Normal file
After Width: | Height: | Size: 1,011 B |
|
@ -31,40 +31,56 @@ public class RenderConveyorBelt extends TileEntitySpecialRenderer
|
|||
|
||||
int frame = tileEntity.getAnimationFrame();
|
||||
|
||||
switch (face)
|
||||
{
|
||||
case 2:
|
||||
GL11.glRotatef(0f, 0f, 1f, 0f);
|
||||
break;
|
||||
case 3:
|
||||
GL11.glRotatef(180f, 0f, 1f, 0f);
|
||||
break;
|
||||
case 4:
|
||||
GL11.glRotatef(-90f, 0f, 1f, 0f);
|
||||
break;
|
||||
case 5:
|
||||
GL11.glRotatef(90f, 0f, 1f, 0f);
|
||||
break;
|
||||
}
|
||||
|
||||
if (slantType != null && slantType != SlantType.NONE)
|
||||
{
|
||||
this.bindTextureByName(AssemblyLine.TEXTURE_PATH + "Grey64.png");
|
||||
if (slantType == SlantType.UP)
|
||||
|
||||
switch (face)
|
||||
{
|
||||
GL11.glRotatef(180f, 0f, 1f, 0f);
|
||||
case 2:
|
||||
GL11.glRotatef(180f, 0f, 1f, 0f);
|
||||
break;
|
||||
case 3:
|
||||
GL11.glRotatef(0f, 0f, 1f, 0f);
|
||||
break;
|
||||
case 4:
|
||||
GL11.glRotatef(90f, 0f, 1f, 0f);
|
||||
break;
|
||||
case 5:
|
||||
GL11.glRotatef(-90f, 0f, 1f, 0f);
|
||||
break;
|
||||
}
|
||||
|
||||
if (slantType == SlantType.UP)
|
||||
{
|
||||
this.bindTextureByName(AssemblyLine.TEXTURE_PATH + "slantedbelt/Upframe0.png");
|
||||
//GL11.glRotatef(-90f, 1f, 0f, 0f);
|
||||
model2.render(0.0625F);
|
||||
}
|
||||
else if (slantType == SlantType.DOWN)
|
||||
{
|
||||
|
||||
|
||||
this.bindTextureByName(AssemblyLine.TEXTURE_PATH + "slantedbelt/frame"+frame+".png");
|
||||
GL11.glRotatef(180f, 0f, 1f, 0f);
|
||||
model2.render(0.0625F);
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
switch (face)
|
||||
{
|
||||
case 2:
|
||||
GL11.glRotatef(0f, 0f, 1f, 0f);
|
||||
break;
|
||||
case 3:
|
||||
GL11.glRotatef(180f, 0f, 1f, 0f);
|
||||
break;
|
||||
case 4:
|
||||
GL11.glRotatef(-90f, 0f, 1f, 0f);
|
||||
break;
|
||||
case 5:
|
||||
GL11.glRotatef(90f, 0f, 1f, 0f);
|
||||
break;
|
||||
}
|
||||
this.bindTextureByName(AssemblyLine.TEXTURE_PATH + "belt/frame" + frame + ".png");
|
||||
model.render(0.0625F, (float) Math.toRadians(tileEntity.wheelRotation), tileEntity.getIsLastBelt(), tileEntity.getIsFirstBelt(), false);
|
||||
|
||||
|
|