Permalink
Browse files

Added network rack and module models/textures.

  • Loading branch information...
Ri5ux committed Nov 22, 2017
1 parent cc3511f commit 74f3882fedee83980f48ca95fa26dd9a287f0036
Showing with 1,138 additions and 0 deletions.
  1. +46 −0 src/main/java/org/avp/client/Resources.java
  2. +153 −0 src/main/java/org/avp/client/model/tile/rackmodules/ModelNetworkModuleRack.java
  3. +192 −0 src/main/java/org/avp/client/model/tile/rackmodules/ModelRackModule1.java
  4. +179 −0 src/main/java/org/avp/client/model/tile/rackmodules/ModelRackModule2.java
  5. +65 −0 src/main/java/org/avp/client/model/tile/rackmodules/ModelRackModule3.java
  6. +107 −0 src/main/java/org/avp/client/model/tile/rackmodules/ModelRackModule4.java
  7. +65 −0 src/main/java/org/avp/client/model/tile/rackmodules/ModelRackModule5.java
  8. +79 −0 src/main/java/org/avp/client/model/tile/rackmodules/ModelRackModule6.java
  9. +172 −0 src/main/java/org/avp/client/model/tile/rackmodules/ModelRackModule7.java
  10. +80 −0 src/main/java/org/avp/client/model/tile/rackmodules/ModelRackModule8.java
  11. BIN src/main/resources/assets/avp/textures/tile/networkmodulerack.png
  12. BIN src/main/resources/assets/avp/textures/tile/networkmodulerack_off.png
  13. BIN src/main/resources/assets/avp/textures/tile/networkmodulerack_on.png
  14. BIN src/main/resources/assets/avp/textures/tile/rackmodules/servercomponent01.png
  15. BIN src/main/resources/assets/avp/textures/tile/rackmodules/servercomponent01_off.png
  16. BIN src/main/resources/assets/avp/textures/tile/rackmodules/servercomponent01_on.png
  17. BIN src/main/resources/assets/avp/textures/tile/rackmodules/servercomponent02.png
  18. BIN src/main/resources/assets/avp/textures/tile/rackmodules/servercomponent02_off.png
  19. BIN src/main/resources/assets/avp/textures/tile/rackmodules/servercomponent02_on.png
  20. BIN src/main/resources/assets/avp/textures/tile/rackmodules/servercomponent03.png
  21. BIN src/main/resources/assets/avp/textures/tile/rackmodules/servercomponent03_off.png
  22. BIN src/main/resources/assets/avp/textures/tile/rackmodules/servercomponent03_on.png
  23. BIN src/main/resources/assets/avp/textures/tile/rackmodules/servercomponent04.png
  24. BIN src/main/resources/assets/avp/textures/tile/rackmodules/servercomponent04_off.png
  25. BIN src/main/resources/assets/avp/textures/tile/rackmodules/servercomponent04_on.png
  26. BIN src/main/resources/assets/avp/textures/tile/rackmodules/servercomponent05.png
  27. BIN src/main/resources/assets/avp/textures/tile/rackmodules/servercomponent05_off.png
  28. BIN src/main/resources/assets/avp/textures/tile/rackmodules/servercomponent05_on.png
  29. BIN src/main/resources/assets/avp/textures/tile/rackmodules/servercomponent06.png
  30. BIN src/main/resources/assets/avp/textures/tile/rackmodules/servercomponent06_off.png
  31. BIN src/main/resources/assets/avp/textures/tile/rackmodules/servercomponent06_on.png
  32. BIN src/main/resources/assets/avp/textures/tile/rackmodules/servercomponent07.png
  33. BIN src/main/resources/assets/avp/textures/tile/rackmodules/servercomponent07_off.png
  34. BIN src/main/resources/assets/avp/textures/tile/rackmodules/servercomponent07_on.png
  35. BIN src/main/resources/assets/avp/textures/tile/rackmodules/servercomponent08.png
  36. BIN src/main/resources/assets/avp/textures/tile/rackmodules/servercomponent08_off.png
  37. BIN src/main/resources/assets/avp/textures/tile/rackmodules/servercomponent08_on.png
@@ -80,7 +80,17 @@
import org.avp.client.model.tile.ModelTransformer;
import org.avp.client.model.tile.ModelTurret;
import org.avp.client.model.tile.ModelWorkstation;
import org.avp.client.model.tile.rackmodules.ModelNetworkModuleRack;
import org.avp.client.model.tile.rackmodules.ModelRackModule1;
import org.avp.client.model.tile.rackmodules.ModelRackModule2;
import org.avp.client.model.tile.rackmodules.ModelRackModule3;
import org.avp.client.model.tile.rackmodules.ModelRackModule4;
import org.avp.client.model.tile.rackmodules.ModelRackModule5;
import org.avp.client.model.tile.rackmodules.ModelRackModule6;
import org.avp.client.model.tile.rackmodules.ModelRackModule7;
import org.avp.client.model.tile.rackmodules.ModelRackModule8;
import com.arisux.mdx.lib.client.Model;
import com.arisux.mdx.lib.client.SpecialModelBiped;
import com.arisux.mdx.lib.client.TexturedModel;
import com.arisux.mdx.lib.client.WavefrontModelLoader;
@@ -223,6 +233,42 @@ public Models models()
/** Wavefront models **/
public final TriangulatedWavefrontModel M577_APC = WavefrontModelLoader.load(AliensVsPredator.class, AliensVsPredator.Properties.ID, "m577apc", "/assets/avp/models/m577apc");
public final TexturedModel<ModelNetworkModuleRack> NETWORKMODULERACK = new TexturedModel(new ModelNetworkModuleRack(), new Texture(AliensVsPredator.Properties.ID, "textures/tile/networkmodulerack.png"));
public final TexturedModel<ModelNetworkModuleRack> NETWORKMODULERACK_ON = new TexturedModel(new ModelNetworkModuleRack(), new Texture(AliensVsPredator.Properties.ID, "textures/tile/networkmodulerack_on.png"));
public final TexturedModel<ModelNetworkModuleRack> NETWORKMODULERACK_OFF = new TexturedModel(new ModelNetworkModuleRack(), new Texture(AliensVsPredator.Properties.ID, "textures/tile/networkmodulerack_off.png"));
public final TexturedModel<Model> RACKMODULE1 = new TexturedModel(new ModelRackModule1(), new Texture(AliensVsPredator.Properties.ID, "textures/tile/rackmodules/servercomponent01.png"));
public final TexturedModel<Model> RACKMODULE1_ON = new TexturedModel(new ModelRackModule1(), new Texture(AliensVsPredator.Properties.ID, "textures/tile/rackmodules/servercomponent01_on.png"));
public final TexturedModel<Model> RACKMODULE1_OFF = new TexturedModel(new ModelRackModule1(), new Texture(AliensVsPredator.Properties.ID, "textures/tile/rackmodules/servercomponent01_off.png"));
public final TexturedModel<Model> RACKMODULE2 = new TexturedModel(new ModelRackModule2(), new Texture(AliensVsPredator.Properties.ID, "textures/tile/rackmodules/servercomponent02.png"));
public final TexturedModel<Model> RACKMODULE2_ON = new TexturedModel(new ModelRackModule2(), new Texture(AliensVsPredator.Properties.ID, "textures/tile/rackmodules/servercomponent02_on.png"));
public final TexturedModel<Model> RACKMODULE2_OFF = new TexturedModel(new ModelRackModule2(), new Texture(AliensVsPredator.Properties.ID, "textures/tile/rackmodules/servercomponent02_off.png"));
public final TexturedModel<Model> RACKMODULE3 = new TexturedModel(new ModelRackModule3(), new Texture(AliensVsPredator.Properties.ID, "textures/tile/rackmodules/servercomponent03.png"));
public final TexturedModel<Model> RACKMODULE3_ON = new TexturedModel(new ModelRackModule3(), new Texture(AliensVsPredator.Properties.ID, "textures/tile/rackmodules/servercomponent03_on.png"));
public final TexturedModel<Model> RACKMODULE3_OFF = new TexturedModel(new ModelRackModule3(), new Texture(AliensVsPredator.Properties.ID, "textures/tile/rackmodules/servercomponent03_off.png"));
public final TexturedModel<Model> RACKMODULE4 = new TexturedModel(new ModelRackModule4(), new Texture(AliensVsPredator.Properties.ID, "textures/tile/rackmodules/servercomponent04.png"));
public final TexturedModel<Model> RACKMODULE4_ON = new TexturedModel(new ModelRackModule4(), new Texture(AliensVsPredator.Properties.ID, "textures/tile/rackmodules/servercomponent04_on.png"));
public final TexturedModel<Model> RACKMODULE4_OFF = new TexturedModel(new ModelRackModule4(), new Texture(AliensVsPredator.Properties.ID, "textures/tile/rackmodules/servercomponent04_off.png"));
public final TexturedModel<Model> RACKMODULE5 = new TexturedModel(new ModelRackModule5(), new Texture(AliensVsPredator.Properties.ID, "textures/tile/rackmodules/servercomponent05.png"));
public final TexturedModel<Model> RACKMODULE5_ON = new TexturedModel(new ModelRackModule5(), new Texture(AliensVsPredator.Properties.ID, "textures/tile/rackmodules/servercomponent05_on.png"));
public final TexturedModel<Model> RACKMODULE5_OFF = new TexturedModel(new ModelRackModule5(), new Texture(AliensVsPredator.Properties.ID, "textures/tile/rackmodules/servercomponent05_off.png"));
public final TexturedModel<Model> RACKMODULE6 = new TexturedModel(new ModelRackModule6(), new Texture(AliensVsPredator.Properties.ID, "textures/tile/rackmodules/servercomponent06.png"));
public final TexturedModel<Model> RACKMODULE6_ON = new TexturedModel(new ModelRackModule6(), new Texture(AliensVsPredator.Properties.ID, "textures/tile/rackmodules/servercomponent06_on.png"));
public final TexturedModel<Model> RACKMODULE6_OFF = new TexturedModel(new ModelRackModule6(), new Texture(AliensVsPredator.Properties.ID, "textures/tile/rackmodules/servercomponent06_off.png"));
public final TexturedModel<Model> RACKMODULE7 = new TexturedModel(new ModelRackModule7(), new Texture(AliensVsPredator.Properties.ID, "textures/tile/rackmodules/servercomponent07.png"));
public final TexturedModel<Model> RACKMODULE7_ON = new TexturedModel(new ModelRackModule7(), new Texture(AliensVsPredator.Properties.ID, "textures/tile/rackmodules/servercomponent07_on.png"));
public final TexturedModel<Model> RACKMODULE7_OFF = new TexturedModel(new ModelRackModule7(), new Texture(AliensVsPredator.Properties.ID, "textures/tile/rackmodules/servercomponent07_off.png"));
public final TexturedModel<Model> RACKMODULE8 = new TexturedModel(new ModelRackModule8(), new Texture(AliensVsPredator.Properties.ID, "textures/tile/rackmodules/servercomponent08.png"));
public final TexturedModel<Model> RACKMODULE8_ON = new TexturedModel(new ModelRackModule8(), new Texture(AliensVsPredator.Properties.ID, "textures/tile/rackmodules/servercomponent08_on.png"));
public final TexturedModel<Model> RACKMODULE8_OFF = new TexturedModel(new ModelRackModule8(), new Texture(AliensVsPredator.Properties.ID, "textures/tile/rackmodules/servercomponent08_off.png"));
}
public final Texture SKY_VARDA_CLOUDS = new Texture(AliensVsPredator.Properties.ID, "textures/misc/varda-clouds.png");
@@ -0,0 +1,153 @@
package org.avp.client.model.tile.rackmodules;
import com.arisux.mdx.lib.client.Model;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.client.renderer.GlStateManager;
public class ModelNetworkModuleRack extends Model
{
public ModelRenderer frame1;
public ModelRenderer frame2;
public ModelRenderer frame3;
public ModelRenderer frame4;
public ModelRenderer rLattice;
public ModelRenderer lLattice;
public ModelRenderer upperFrameF;
public ModelRenderer upperFrameB;
public ModelRenderer upperFrameR;
public ModelRenderer upperFrameL;
public ModelRenderer lowerFrameR;
public ModelRenderer LowerFrameL;
public ModelRenderer lowerFrameF;
public ModelRenderer lowerFrameB;
public ModelRenderer light1;
public ModelRenderer light2;
public ModelRenderer shelf1;
public ModelRenderer shelf2;
public ModelRenderer shelf3;
public ModelRenderer shelf4;
public ModelNetworkModuleRack()
{
this.textureWidth = 128;
this.textureHeight = 64;
this.LowerFrameL = new ModelRenderer(this, 90, 10);
this.LowerFrameL.setRotationPoint(0.0F, 0.0F, 0.0F);
this.LowerFrameL.addBox(18.0F, 22.3F, -7.5F, 1, 1, 15, 0.0F);
this.lLattice = new ModelRenderer(this, 20, -15);
this.lLattice.setRotationPoint(0.0F, 0.0F, 0.0F);
this.lLattice.addBox(18.7F, -21.5F, -7.5F, 0, 44, 15, 0.0F);
this.upperFrameR = new ModelRenderer(this, 55, 10);
this.upperFrameR.setRotationPoint(0.0F, 0.0F, 0.0F);
this.upperFrameR.addBox(-7.5F, -22.5F, -7.5F, 1, 1, 15, 0.0F);
this.upperFrameF = new ModelRenderer(this, 55, 5);
this.upperFrameF.setRotationPoint(0.0F, 0.0F, 0.0F);
this.upperFrameF.addBox(-7.8F, -22.5F, -7.5F, 27, 1, 1, 0.0F);
this.shelf3 = new ModelRenderer(this, 8, 50);
this.shelf3.setRotationPoint(8.0F, 0.5F, 0.0F);
this.shelf3.addBox(-15.0F, -0.5F, -6.0F, 25, 1, 12, 0.0F);
this.rLattice = new ModelRenderer(this, 20, -15);
this.rLattice.mirror = true;
this.rLattice.setRotationPoint(0.0F, 0.0F, 0.0F);
this.rLattice.addBox(-7.1F, -21.5F, -7.5F, 0, 44, 15, 0.0F);
this.light1 = new ModelRenderer(this, 100, 0);
this.light1.setRotationPoint(-7.0F, -1.5F, -7.3F);
this.light1.addBox(-0.5F, -0.5F, -1.0F, 1, 2, 1, 0.0F);
this.frame1 = new ModelRenderer(this, 0, 0);
this.frame1.setRotationPoint(0.0F, 0.0F, 0.0F);
this.frame1.addBox(-8.0F, -23.0F, -8.0F, 2, 47, 2, 0.0F);
this.light2 = new ModelRenderer(this, 100, 0);
this.light2.mirror = true;
this.light2.setRotationPoint(18.5F, -1.5F, -7.3F);
this.light2.addBox(-0.5F, -0.5F, -1.0F, 1, 2, 1, 0.0F);
this.lowerFrameF = new ModelRenderer(this, 55, 35);
this.lowerFrameF.setRotationPoint(0.0F, 0.0F, 0.0F);
this.lowerFrameF.addBox(-7.8F, 22.3F, -7.5F, 27, 1, 1, 0.0F);
this.shelf2 = new ModelRenderer(this, 8, 50);
this.shelf2.setRotationPoint(8.0F, 11.5F, 0.0F);
this.shelf2.addBox(-15.0F, -0.5F, -6.0F, 25, 1, 12, 0.0F);
this.frame3 = new ModelRenderer(this, 0, 0);
this.frame3.mirror = true;
this.frame3.setRotationPoint(0.0F, 0.0F, 0.0F);
this.frame3.addBox(17.5F, -23.0F, -8.0F, 2, 47, 2, 0.0F);
this.frame4 = new ModelRenderer(this, 10, 0);
this.frame4.mirror = true;
this.frame4.setRotationPoint(0.0F, 0.0F, 0.0F);
this.frame4.addBox(17.5F, -23.0F, 6.0F, 2, 47, 2, 0.0F);
this.lowerFrameB = new ModelRenderer(this, 55, 35);
this.lowerFrameB.setRotationPoint(0.0F, 0.0F, 0.0F);
this.lowerFrameB.addBox(-7.8F, 22.3F, 6.5F, 27, 1, 1, 0.0F);
this.shelf4 = new ModelRenderer(this, 8, 50);
this.shelf4.setRotationPoint(8.0F, -11.5F, 0.0F);
this.shelf4.addBox(-15.0F, -0.5F, -6.0F, 25, 1, 12, 0.0F);
this.upperFrameB = new ModelRenderer(this, 55, 5);
this.upperFrameB.setRotationPoint(0.0F, 0.0F, 0.0F);
this.upperFrameB.addBox(-7.8F, -22.5F, 6.5F, 27, 1, 1, 0.0F);
this.shelf1 = new ModelRenderer(this, 8, 50);
this.shelf1.setRotationPoint(8.0F, 22.5F, 0.0F);
this.shelf1.addBox(-15.0F, -0.5F, -6.0F, 25, 1, 12, 0.0F);
this.upperFrameL = new ModelRenderer(this, 55, 10);
this.upperFrameL.setRotationPoint(0.0F, 0.0F, 0.0F);
this.upperFrameL.addBox(18.0F, -22.5F, -7.5F, 1, 1, 15, 0.0F);
this.lowerFrameR = new ModelRenderer(this, 90, 10);
this.lowerFrameR.setRotationPoint(0.0F, 0.0F, 0.0F);
this.lowerFrameR.addBox(-7.5F, 22.3F, -7.5F, 1, 1, 15, 0.0F);
this.frame2 = new ModelRenderer(this, 10, 0);
this.frame2.setRotationPoint(0.0F, 0.0F, 0.0F);
this.frame2.addBox(-8.0F, -23.0F, 6.0F, 2, 47, 2, 0.0F);
}
@Override
public void render(Object obj)
{
this.LowerFrameL.render(DEFAULT_SCALE);
this.lLattice.render(DEFAULT_SCALE);
this.upperFrameR.render(DEFAULT_SCALE);
this.upperFrameF.render(DEFAULT_SCALE);
GlStateManager.pushMatrix();
GlStateManager.translate(this.shelf3.offsetX, this.shelf3.offsetY, this.shelf3.offsetZ);
GlStateManager.translate(this.shelf3.rotationPointX * DEFAULT_SCALE, this.shelf3.rotationPointY * DEFAULT_SCALE, this.shelf3.rotationPointZ * DEFAULT_SCALE);
GlStateManager.scale(1.0D, 1.0D, 1.2D);
GlStateManager.translate(-this.shelf3.offsetX, -this.shelf3.offsetY, -this.shelf3.offsetZ);
GlStateManager.translate(-this.shelf3.rotationPointX * DEFAULT_SCALE, -this.shelf3.rotationPointY * DEFAULT_SCALE, -this.shelf3.rotationPointZ * DEFAULT_SCALE);
this.shelf3.render(DEFAULT_SCALE);
GlStateManager.popMatrix();
this.rLattice.render(DEFAULT_SCALE);
this.light1.render(DEFAULT_SCALE);
this.frame1.render(DEFAULT_SCALE);
this.light2.render(DEFAULT_SCALE);
this.lowerFrameF.render(DEFAULT_SCALE);
GlStateManager.pushMatrix();
GlStateManager.translate(this.shelf2.offsetX, this.shelf2.offsetY, this.shelf2.offsetZ);
GlStateManager.translate(this.shelf2.rotationPointX * DEFAULT_SCALE, this.shelf2.rotationPointY * DEFAULT_SCALE, this.shelf2.rotationPointZ * DEFAULT_SCALE);
GlStateManager.scale(1.0D, 1.0D, 1.2D);
GlStateManager.translate(-this.shelf2.offsetX, -this.shelf2.offsetY, -this.shelf2.offsetZ);
GlStateManager.translate(-this.shelf2.rotationPointX * DEFAULT_SCALE, -this.shelf2.rotationPointY * DEFAULT_SCALE, -this.shelf2.rotationPointZ * DEFAULT_SCALE);
this.shelf2.render(DEFAULT_SCALE);
GlStateManager.popMatrix();
this.frame3.render(DEFAULT_SCALE);
this.frame4.render(DEFAULT_SCALE);
this.lowerFrameB.render(DEFAULT_SCALE);
GlStateManager.pushMatrix();
GlStateManager.translate(this.shelf4.offsetX, this.shelf4.offsetY, this.shelf4.offsetZ);
GlStateManager.translate(this.shelf4.rotationPointX * DEFAULT_SCALE, this.shelf4.rotationPointY * DEFAULT_SCALE, this.shelf4.rotationPointZ * DEFAULT_SCALE);
GlStateManager.scale(1.0D, 1.0D, 1.2D);
GlStateManager.translate(-this.shelf4.offsetX, -this.shelf4.offsetY, -this.shelf4.offsetZ);
GlStateManager.translate(-this.shelf4.rotationPointX * DEFAULT_SCALE, -this.shelf4.rotationPointY * DEFAULT_SCALE, -this.shelf4.rotationPointZ * DEFAULT_SCALE);
this.shelf4.render(DEFAULT_SCALE);
GlStateManager.popMatrix();
this.upperFrameB.render(DEFAULT_SCALE);
GlStateManager.pushMatrix();
GlStateManager.translate(this.shelf1.offsetX, this.shelf1.offsetY, this.shelf1.offsetZ);
GlStateManager.translate(this.shelf1.rotationPointX * DEFAULT_SCALE, this.shelf1.rotationPointY * DEFAULT_SCALE, this.shelf1.rotationPointZ * DEFAULT_SCALE);
GlStateManager.scale(1.0D, 1.0D, 1.2D);
GlStateManager.translate(-this.shelf1.offsetX, -this.shelf1.offsetY, -this.shelf1.offsetZ);
GlStateManager.translate(-this.shelf1.rotationPointX * DEFAULT_SCALE, -this.shelf1.rotationPointY * DEFAULT_SCALE, -this.shelf1.rotationPointZ * DEFAULT_SCALE);
this.shelf1.render(DEFAULT_SCALE);
GlStateManager.popMatrix();
this.upperFrameL.render(DEFAULT_SCALE);
this.lowerFrameR.render(DEFAULT_SCALE);
this.frame2.render(DEFAULT_SCALE);
}
}
Oops, something went wrong.

0 comments on commit 74f3882

Please sign in to comment.