List of usage examples for org.lwjgl.opengl GL11 glTranslatef
public static native void glTranslatef(@NativeType("GLfloat") float x, @NativeType("GLfloat") float y, @NativeType("GLfloat") float z);
From source file:buildcraft.transport.RenderPipe.java
License:Minecraft Mod Public
public void doRenderItem(IPipedItem entityitem, double d, double d1, double d2, float f1) { if (entityitem == null || entityitem.getItemStack() == null) return;// w w w . ja v a 2 s. co m ItemStack itemstack = entityitem.getItemStack(); random.setSeed(187L); GL11.glPushMatrix(); byte quantity = 1; if (entityitem.getItemStack().stackSize > 1) quantity = 2; GL11.glTranslatef((float) d, (float) d1, (float) d2); GL11.glEnable(32826 /* GL_RESCALE_NORMAL_EXT */); IItemRenderer customRenderer = MinecraftForgeClient.getItemRenderer(itemstack, ItemRenderType.ENTITY); if (customRenderer != null) { GL11.glTranslatef(0, 0.25F, 0); // BC SPECIFIC loadTexture("/terrain.png"); ForgeHooksClient.overrideTexture(itemstack.getItem()); float f4 = 0.25F; f4 = 0.5F; GL11.glScalef(f4, f4, f4); for (int j = 0; j < quantity; j++) { GL11.glPushMatrix(); if (j > 0) { float f5 = ((random.nextFloat() * 2.0F - 1.0F) * 0.2F) / f4; float f7 = ((random.nextFloat() * 2.0F - 1.0F) * 0.2F) / f4; float f9 = ((random.nextFloat() * 2.0F - 1.0F) * 0.2F) / f4; GL11.glTranslatef(f5, f7, f9); } RenderPipe.dummyEntityItem.item = itemstack; customRenderer.renderItem(ItemRenderType.ENTITY, itemstack, renderBlocks, RenderPipe.dummyEntityItem); GL11.glPopMatrix(); } } else if (itemstack.itemID < Block.blocksList.length && Block.blocksList[itemstack.itemID] != null && RenderBlocks.renderItemIn3d(Block.blocksList[itemstack.itemID].getRenderType())) { GL11.glTranslatef(0, 0.25F, 0); // BC SPECIFIC loadTexture("/terrain.png"); ForgeHooksClient.overrideTexture(Block.blocksList[itemstack.itemID]); float f4 = 0.25F; int j = Block.blocksList[itemstack.itemID].getRenderType(); if (j == 1 || j == 19 || j == 12 || j == 2) f4 = 0.5F; GL11.glScalef(f4, f4, f4); for (int k = 0; k < quantity; k++) { GL11.glPushMatrix(); if (k > 0) { float f6 = ((random.nextFloat() * 2.0F - 1.0F) * 0.2F) / f4; float f9 = ((random.nextFloat() * 2.0F - 1.0F) * 0.2F) / f4; float f11 = ((random.nextFloat() * 2.0F - 1.0F) * 0.2F) / f4; GL11.glTranslatef(f6, f9, f11); } float f7 = 1.0F; renderBlocks.renderBlockAsItem(Block.blocksList[itemstack.itemID], itemstack.getItemDamage(), f7); GL11.glPopMatrix(); } } else { GL11.glTranslatef(0, 0.10F, 0); // BC SPECIFIC if (itemstack.getItem().requiresMultipleRenderPasses()) { GL11.glScalef(0.5F, 0.5F, 0.5F); this.loadTexture(ForgeHooksClient.getTexture("/gui/items.png", Item.itemsList[itemstack.itemID])); for (int i = 0; i <= 1; ++i) { int iconIndex = itemstack.getItem().getIconFromDamageForRenderPass(itemstack.getItemDamage(), i); float scale = 1.0F; if (true) { int var17 = Item.itemsList[itemstack.itemID].getColorFromDamage(itemstack.getItemDamage(), i); float var18 = (var17 >> 16 & 255) / 255.0F; float var19 = (var17 >> 8 & 255) / 255.0F; float var20 = (var17 & 255) / 255.0F; GL11.glColor4f(var18 * scale, var19 * scale, var20 * scale, 1.0F); } this.drawItem(iconIndex, quantity); } } else { GL11.glScalef(0.5F, 0.5F, 0.5F); int i = itemstack.getIconIndex(); if (itemstack.itemID < Block.blocksList.length && Block.blocksList[itemstack.itemID] != null) { loadTexture("/terrain.png"); ForgeHooksClient.overrideTexture(Block.blocksList[itemstack.itemID]); } else { loadTexture("/gui/items.png"); ForgeHooksClient.overrideTexture(Item.itemsList[itemstack.itemID]); } drawItem(i, quantity); } } GL11.glDisable(32826 /* GL_RESCALE_NORMAL_EXT */); GL11.glPopMatrix(); }
From source file:buildcraft.transport.RenderPipe.java
License:Minecraft Mod Public
private void drawItem(int iconIndex, int quantity) { Tessellator tesselator = Tessellator.instance; float var4 = (iconIndex % 16 * 16 + 0) / 256.0F; float var5 = (iconIndex % 16 * 16 + 16) / 256.0F; float var6 = (iconIndex / 16 * 16 + 0) / 256.0F; float var7 = (iconIndex / 16 * 16 + 16) / 256.0F; float var8 = 1.0F; float var9 = 0.5F; float var10 = 0.25F; for (int var11 = 0; var11 < quantity; ++var11) { GL11.glPushMatrix();/*from www . jav a 2 s .c om*/ if (var11 > 0) { float var12 = (this.random.nextFloat() * 2.0F - 1.0F) * 0.3F; float var13 = (this.random.nextFloat() * 2.0F - 1.0F) * 0.3F; float var14 = (this.random.nextFloat() * 2.0F - 1.0F) * 0.3F; GL11.glTranslatef(var12, var13, var14); } GL11.glRotatef(180.0F - RenderManager.instance.playerViewY, 0.0F, 1.0F, 0.0F); tesselator.startDrawingQuads(); tesselator.setNormal(0.0F, 1.0F, 0.0F); tesselator.addVertexWithUV((0.0F - var9), (0.0F - var10), 0.0D, var4, var7); tesselator.addVertexWithUV((var8 - var9), (0.0F - var10), 0.0D, var5, var7); tesselator.addVertexWithUV((var8 - var9), (1.0F - var10), 0.0D, var5, var6); tesselator.addVertexWithUV((0.0F - var9), (1.0F - var10), 0.0D, var4, var6); tesselator.draw(); GL11.glPopMatrix(); } }
From source file:buildcraftAdditions.client.models.BackPackModel.java
License:GNU General Public License
@Override public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) { FMLClientHandler.instance().getClient().getTextureManager().bindTexture(TEXTURE); GL11.glPushMatrix();/*w w w.j av a 2 s .c o m*/ GL11.glTranslatef(this.shape38_2.offsetX, this.shape38_2.offsetY, this.shape38_2.offsetZ); GL11.glTranslatef(this.shape38_2.rotationPointX * f5, this.shape38_2.rotationPointY * f5, this.shape38_2.rotationPointZ * f5); GL11.glScaled(0.9D, 1.0D, 1.0D); GL11.glTranslatef(-this.shape38_2.offsetX, -this.shape38_2.offsetY, -this.shape38_2.offsetZ); GL11.glTranslatef(-this.shape38_2.rotationPointX * f5, -this.shape38_2.rotationPointY * f5, -this.shape38_2.rotationPointZ * f5); this.shape38_2.render(f5); GL11.glPopMatrix(); this.shape38_1.render(f5); this.shape38_6.render(f5); this.shape21_2.render(f5); this.handleTopRight.render(f5); this.shape38_5.render(f5); this.shape11_6.render(f5); this.shape49.render(f5); this.shape22.render(f5); this.shape21.render(f5); GL11.glPushMatrix(); GL11.glTranslatef(this.shape21_1.offsetX, this.shape21_1.offsetY, this.shape21_1.offsetZ); GL11.glTranslatef(this.shape21_1.rotationPointX * f5, this.shape21_1.rotationPointY * f5, this.shape21_1.rotationPointZ * f5); GL11.glScaled(0.7D, 1.0D, 1.0D); GL11.glTranslatef(-this.shape21_1.offsetX, -this.shape21_1.offsetY, -this.shape21_1.offsetZ); GL11.glTranslatef(-this.shape21_1.rotationPointX * f5, -this.shape21_1.rotationPointY * f5, -this.shape21_1.rotationPointZ * f5); this.shape21_1.render(f5); GL11.glPopMatrix(); this.shape38_4.render(f5); this.shape49_2.render(f5); this.shape11_1.render(f5); this.shape11_4.render(f5); GL11.glPushMatrix(); GL11.glTranslatef(this.shape38.offsetX, this.shape38.offsetY, this.shape38.offsetZ); GL11.glTranslatef(this.shape38.rotationPointX * f5, this.shape38.rotationPointY * f5, this.shape38.rotationPointZ * f5); GL11.glScaled(1.0D, 0.7D, 1.0D); GL11.glTranslatef(-this.shape38.offsetX, -this.shape38.offsetY, -this.shape38.offsetZ); GL11.glTranslatef(-this.shape38.rotationPointX * f5, -this.shape38.rotationPointY * f5, -this.shape38.rotationPointZ * f5); this.shape38.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape22_1.offsetX, this.shape22_1.offsetY, this.shape22_1.offsetZ); GL11.glTranslatef(this.shape22_1.rotationPointX * f5, this.shape22_1.rotationPointY * f5, this.shape22_1.rotationPointZ * f5); GL11.glScaled(1.0D, 1.3D, 1.0D); GL11.glTranslatef(-this.shape22_1.offsetX, -this.shape22_1.offsetY, -this.shape22_1.offsetZ); GL11.glTranslatef(-this.shape22_1.rotationPointX * f5, -this.shape22_1.rotationPointY * f5, -this.shape22_1.rotationPointZ * f5); this.shape22_1.render(f5); GL11.glPopMatrix(); this.handleTopLeft.render(f5); GL11.glPushMatrix(); GL11.glTranslatef(this.shape21_4.offsetX, this.shape21_4.offsetY, this.shape21_4.offsetZ); GL11.glTranslatef(this.shape21_4.rotationPointX * f5, this.shape21_4.rotationPointY * f5, this.shape21_4.rotationPointZ * f5); GL11.glScaled(0.9D, 1.0D, 1.0D); GL11.glTranslatef(-this.shape21_4.offsetX, -this.shape21_4.offsetY, -this.shape21_4.offsetZ); GL11.glTranslatef(-this.shape21_4.rotationPointX * f5, -this.shape21_4.rotationPointY * f5, -this.shape21_4.rotationPointZ * f5); this.shape21_4.render(f5); GL11.glPopMatrix(); this.shape11_2.render(f5); this.shape11_9.render(f5); GL11.glPushMatrix(); GL11.glTranslatef(this.shape25.offsetX, this.shape25.offsetY, this.shape25.offsetZ); GL11.glTranslatef(this.shape25.rotationPointX * f5, this.shape25.rotationPointY * f5, this.shape25.rotationPointZ * f5); GL11.glScaled(1.0D, 0.7D, 1.0D); GL11.glTranslatef(-this.shape25.offsetX, -this.shape25.offsetY, -this.shape25.offsetZ); GL11.glTranslatef(-this.shape25.rotationPointX * f5, -this.shape25.rotationPointY * f5, -this.shape25.rotationPointZ * f5); this.shape25.render(f5); GL11.glPopMatrix(); this.shape11_3.render(f5); this.shape11_8.render(f5); this.shape11.render(f5); GL11.glPushMatrix(); GL11.glTranslatef(this.shape49_1.offsetX, this.shape49_1.offsetY, this.shape49_1.offsetZ); GL11.glTranslatef(this.shape49_1.rotationPointX * f5, this.shape49_1.rotationPointY * f5, this.shape49_1.rotationPointZ * f5); GL11.glScaled(1.0D, 0.6D, 1.0D); GL11.glTranslatef(-this.shape49_1.offsetX, -this.shape49_1.offsetY, -this.shape49_1.offsetZ); GL11.glTranslatef(-this.shape49_1.rotationPointX * f5, -this.shape49_1.rotationPointY * f5, -this.shape49_1.rotationPointZ * f5); this.shape49_1.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape21_3.offsetX, this.shape21_3.offsetY, this.shape21_3.offsetZ); GL11.glTranslatef(this.shape21_3.rotationPointX * f5, this.shape21_3.rotationPointY * f5, this.shape21_3.rotationPointZ * f5); GL11.glScaled(0.7D, 1.0D, 1.0D); GL11.glTranslatef(-this.shape21_3.offsetX, -this.shape21_3.offsetY, -this.shape21_3.offsetZ); GL11.glTranslatef(-this.shape21_3.rotationPointX * f5, -this.shape21_3.rotationPointY * f5, -this.shape21_3.rotationPointZ * f5); this.shape21_3.render(f5); GL11.glPopMatrix(); this.shape11_5.render(f5); this.shape38_3.render(f5); this.shape11_7.render(f5); if (entity != null && entity instanceof EntityPlayer) { EntityPlayer player = (EntityPlayer) entity; ItemStack bStack = player.getCurrentArmor(2); ItemKineticBackpack backpack = (ItemKineticBackpack) bStack.getItem(); if (backpack.getInstalledCapsule(bStack, 0) != 0) { GL11.glPushMatrix(); GL11.glTranslated(0.14, -1.35, 0.25); GL11.glScaled(1.5, 1.5, 1.5); ModelCapsule.INSTANCE.render(null, 0, 0, 0, 0, 0, 0.05F, backpack.getInstalledCapsule(bStack, 0)); GL11.glPopMatrix(); } if (backpack.getInstalledCapsule(bStack, 1) != 0) { GL11.glPushMatrix(); GL11.glTranslated(-0.14, -1.35, 0.25); GL11.glScaled(1.5, 1.5, 1.5); ModelCapsule.INSTANCE.render(null, 0, 0, 0, 0, 0, 0.05F, backpack.getInstalledCapsule(bStack, 1)); GL11.glPopMatrix(); } if (backpack.getInstalledCapsule(bStack, 2) != 0) { GL11.glPushMatrix(); GL11.glTranslated(0.14, -1.15, 0.25); GL11.glScaled(1.5, 1.5, 1.5); ModelCapsule.INSTANCE.render(null, 0, 0, 0, 0, 0, 0.05F, backpack.getInstalledCapsule(bStack, 2)); GL11.glPopMatrix(); } if (backpack.getInstalledCapsule(bStack, 3) != 0) { GL11.glPushMatrix(); GL11.glTranslated(-0.14, -1.15, 0.25); GL11.glScaled(1.5, 1.5, 1.5); ModelCapsule.INSTANCE.render(null, 0, 0, 0, 0, 0, 0.05F, backpack.getInstalledCapsule(bStack, 3)); GL11.glPopMatrix(); } } }
From source file:buildcraftAdditions.client.models.ModelBackpackStand.java
License:GNU General Public License
@Override public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) { FMLClientHandler.instance().getClient().getTextureManager().bindTexture(TEXTURE); this.shape11.render(f5); GL11.glPushMatrix();//from w w w . j a v a 2s . c o m GL11.glTranslatef(this.shape11_8.offsetX, this.shape11_8.offsetY, this.shape11_8.offsetZ); GL11.glTranslatef(this.shape11_8.rotationPointX * f5, this.shape11_8.rotationPointY * f5, this.shape11_8.rotationPointZ * f5); GL11.glScaled(0.7D, 1.0D, 1.0D); GL11.glTranslatef(-this.shape11_8.offsetX, -this.shape11_8.offsetY, -this.shape11_8.offsetZ); GL11.glTranslatef(-this.shape11_8.rotationPointX * f5, -this.shape11_8.rotationPointY * f5, -this.shape11_8.rotationPointZ * f5); this.shape11_8.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape8_18.offsetX, this.shape8_18.offsetY, this.shape8_18.offsetZ); GL11.glTranslatef(this.shape8_18.rotationPointX * f5, this.shape8_18.rotationPointY * f5, this.shape8_18.rotationPointZ * f5); GL11.glScaled(0.3D, 0.3D, 0.3D); GL11.glTranslatef(-this.shape8_18.offsetX, -this.shape8_18.offsetY, -this.shape8_18.offsetZ); GL11.glTranslatef(-this.shape8_18.rotationPointX * f5, -this.shape8_18.rotationPointY * f5, -this.shape8_18.rotationPointZ * f5); this.shape8_18.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape8_4.offsetX, this.shape8_4.offsetY, this.shape8_4.offsetZ); GL11.glTranslatef(this.shape8_4.rotationPointX * f5, this.shape8_4.rotationPointY * f5, this.shape8_4.rotationPointZ * f5); GL11.glScaled(0.3D, 0.3D, 0.3D); GL11.glTranslatef(-this.shape8_4.offsetX, -this.shape8_4.offsetY, -this.shape8_4.offsetZ); GL11.glTranslatef(-this.shape8_4.rotationPointX * f5, -this.shape8_4.rotationPointY * f5, -this.shape8_4.rotationPointZ * f5); this.shape8_4.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape8_23.offsetX, this.shape8_23.offsetY, this.shape8_23.offsetZ); GL11.glTranslatef(this.shape8_23.rotationPointX * f5, this.shape8_23.rotationPointY * f5, this.shape8_23.rotationPointZ * f5); GL11.glScaled(0.3D, 0.3D, 0.3D); GL11.glTranslatef(-this.shape8_23.offsetX, -this.shape8_23.offsetY, -this.shape8_23.offsetZ); GL11.glTranslatef(-this.shape8_23.rotationPointX * f5, -this.shape8_23.rotationPointY * f5, -this.shape8_23.rotationPointZ * f5); this.shape8_23.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape11_9.offsetX, this.shape11_9.offsetY, this.shape11_9.offsetZ); GL11.glTranslatef(this.shape11_9.rotationPointX * f5, this.shape11_9.rotationPointY * f5, this.shape11_9.rotationPointZ * f5); GL11.glScaled(1.0D, 0.9D, 1.0D); GL11.glTranslatef(-this.shape11_9.offsetX, -this.shape11_9.offsetY, -this.shape11_9.offsetZ); GL11.glTranslatef(-this.shape11_9.rotationPointX * f5, -this.shape11_9.rotationPointY * f5, -this.shape11_9.rotationPointZ * f5); this.shape11_9.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape8_5.offsetX, this.shape8_5.offsetY, this.shape8_5.offsetZ); GL11.glTranslatef(this.shape8_5.rotationPointX * f5, this.shape8_5.rotationPointY * f5, this.shape8_5.rotationPointZ * f5); GL11.glScaled(0.3D, 0.3D, 0.3D); GL11.glTranslatef(-this.shape8_5.offsetX, -this.shape8_5.offsetY, -this.shape8_5.offsetZ); GL11.glTranslatef(-this.shape8_5.rotationPointX * f5, -this.shape8_5.rotationPointY * f5, -this.shape8_5.rotationPointZ * f5); this.shape8_5.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape8_15.offsetX, this.shape8_15.offsetY, this.shape8_15.offsetZ); GL11.glTranslatef(this.shape8_15.rotationPointX * f5, this.shape8_15.rotationPointY * f5, this.shape8_15.rotationPointZ * f5); GL11.glScaled(0.3D, 0.3D, 0.3D); GL11.glTranslatef(-this.shape8_15.offsetX, -this.shape8_15.offsetY, -this.shape8_15.offsetZ); GL11.glTranslatef(-this.shape8_15.rotationPointX * f5, -this.shape8_15.rotationPointY * f5, -this.shape8_15.rotationPointZ * f5); this.shape8_15.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape11_13.offsetX, this.shape11_13.offsetY, this.shape11_13.offsetZ); GL11.glTranslatef(this.shape11_13.rotationPointX * f5, this.shape11_13.rotationPointY * f5, this.shape11_13.rotationPointZ * f5); GL11.glScaled(1.0D, 0.9D, 1.0D); GL11.glTranslatef(-this.shape11_13.offsetX, -this.shape11_13.offsetY, -this.shape11_13.offsetZ); GL11.glTranslatef(-this.shape11_13.rotationPointX * f5, -this.shape11_13.rotationPointY * f5, -this.shape11_13.rotationPointZ * f5); this.shape11_13.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape8_16.offsetX, this.shape8_16.offsetY, this.shape8_16.offsetZ); GL11.glTranslatef(this.shape8_16.rotationPointX * f5, this.shape8_16.rotationPointY * f5, this.shape8_16.rotationPointZ * f5); GL11.glScaled(0.3D, 0.3D, 0.3D); GL11.glTranslatef(-this.shape8_16.offsetX, -this.shape8_16.offsetY, -this.shape8_16.offsetZ); GL11.glTranslatef(-this.shape8_16.rotationPointX * f5, -this.shape8_16.rotationPointY * f5, -this.shape8_16.rotationPointZ * f5); this.shape8_16.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape8_17.offsetX, this.shape8_17.offsetY, this.shape8_17.offsetZ); GL11.glTranslatef(this.shape8_17.rotationPointX * f5, this.shape8_17.rotationPointY * f5, this.shape8_17.rotationPointZ * f5); GL11.glScaled(0.3D, 0.3D, 0.3D); GL11.glTranslatef(-this.shape8_17.offsetX, -this.shape8_17.offsetY, -this.shape8_17.offsetZ); GL11.glTranslatef(-this.shape8_17.rotationPointX * f5, -this.shape8_17.rotationPointY * f5, -this.shape8_17.rotationPointZ * f5); this.shape8_17.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape8_9.offsetX, this.shape8_9.offsetY, this.shape8_9.offsetZ); GL11.glTranslatef(this.shape8_9.rotationPointX * f5, this.shape8_9.rotationPointY * f5, this.shape8_9.rotationPointZ * f5); GL11.glScaled(0.3D, 0.3D, 0.3D); GL11.glTranslatef(-this.shape8_9.offsetX, -this.shape8_9.offsetY, -this.shape8_9.offsetZ); GL11.glTranslatef(-this.shape8_9.rotationPointX * f5, -this.shape8_9.rotationPointY * f5, -this.shape8_9.rotationPointZ * f5); this.shape8_9.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape11_10.offsetX, this.shape11_10.offsetY, this.shape11_10.offsetZ); GL11.glTranslatef(this.shape11_10.rotationPointX * f5, this.shape11_10.rotationPointY * f5, this.shape11_10.rotationPointZ * f5); GL11.glScaled(0.88D, 0.9D, 0.98D); GL11.glTranslatef(-this.shape11_10.offsetX, -this.shape11_10.offsetY, -this.shape11_10.offsetZ); GL11.glTranslatef(-this.shape11_10.rotationPointX * f5, -this.shape11_10.rotationPointY * f5, -this.shape11_10.rotationPointZ * f5); this.shape11_10.render(f5); GL11.glPopMatrix(); this.shape11_7.render(f5); this.shape8_19.render(f5); GL11.glPushMatrix(); GL11.glTranslatef(this.shape8_2.offsetX, this.shape8_2.offsetY, this.shape8_2.offsetZ); GL11.glTranslatef(this.shape8_2.rotationPointX * f5, this.shape8_2.rotationPointY * f5, this.shape8_2.rotationPointZ * f5); GL11.glScaled(1.0D, 1.0D, 0.5D); GL11.glTranslatef(-this.shape8_2.offsetX, -this.shape8_2.offsetY, -this.shape8_2.offsetZ); GL11.glTranslatef(-this.shape8_2.rotationPointX * f5, -this.shape8_2.rotationPointY * f5, -this.shape8_2.rotationPointZ * f5); this.shape8_2.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape8_10.offsetX, this.shape8_10.offsetY, this.shape8_10.offsetZ); GL11.glTranslatef(this.shape8_10.rotationPointX * f5, this.shape8_10.rotationPointY * f5, this.shape8_10.rotationPointZ * f5); GL11.glScaled(0.3D, 0.3D, 0.3D); GL11.glTranslatef(-this.shape8_10.offsetX, -this.shape8_10.offsetY, -this.shape8_10.offsetZ); GL11.glTranslatef(-this.shape8_10.rotationPointX * f5, -this.shape8_10.rotationPointY * f5, -this.shape8_10.rotationPointZ * f5); this.shape8_10.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape8_13.offsetX, this.shape8_13.offsetY, this.shape8_13.offsetZ); GL11.glTranslatef(this.shape8_13.rotationPointX * f5, this.shape8_13.rotationPointY * f5, this.shape8_13.rotationPointZ * f5); GL11.glScaled(1.0D, 0.9D, 1.0D); GL11.glTranslatef(-this.shape8_13.offsetX, -this.shape8_13.offsetY, -this.shape8_13.offsetZ); GL11.glTranslatef(-this.shape8_13.rotationPointX * f5, -this.shape8_13.rotationPointY * f5, -this.shape8_13.rotationPointZ * f5); this.shape8_13.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape11_14.offsetX, this.shape11_14.offsetY, this.shape11_14.offsetZ); GL11.glTranslatef(this.shape11_14.rotationPointX * f5, this.shape11_14.rotationPointY * f5, this.shape11_14.rotationPointZ * f5); GL11.glScaled(1.4D, 1.0D, 1.0D); GL11.glTranslatef(-this.shape11_14.offsetX, -this.shape11_14.offsetY, -this.shape11_14.offsetZ); GL11.glTranslatef(-this.shape11_14.rotationPointX * f5, -this.shape11_14.rotationPointY * f5, -this.shape11_14.rotationPointZ * f5); this.shape11_14.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape8_11.offsetX, this.shape8_11.offsetY, this.shape8_11.offsetZ); GL11.glTranslatef(this.shape8_11.rotationPointX * f5, this.shape8_11.rotationPointY * f5, this.shape8_11.rotationPointZ * f5); GL11.glScaled(0.3D, 0.3D, 0.3D); GL11.glTranslatef(-this.shape8_11.offsetX, -this.shape8_11.offsetY, -this.shape8_11.offsetZ); GL11.glTranslatef(-this.shape8_11.rotationPointX * f5, -this.shape8_11.rotationPointY * f5, -this.shape8_11.rotationPointZ * f5); this.shape8_11.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape8_12.offsetX, this.shape8_12.offsetY, this.shape8_12.offsetZ); GL11.glTranslatef(this.shape8_12.rotationPointX * f5, this.shape8_12.rotationPointY * f5, this.shape8_12.rotationPointZ * f5); GL11.glScaled(0.3D, 0.3D, 0.3D); GL11.glTranslatef(-this.shape8_12.offsetX, -this.shape8_12.offsetY, -this.shape8_12.offsetZ); GL11.glTranslatef(-this.shape8_12.rotationPointX * f5, -this.shape8_12.rotationPointY * f5, -this.shape8_12.rotationPointZ * f5); this.shape8_12.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape8_22.offsetX, this.shape8_22.offsetY, this.shape8_22.offsetZ); GL11.glTranslatef(this.shape8_22.rotationPointX * f5, this.shape8_22.rotationPointY * f5, this.shape8_22.rotationPointZ * f5); GL11.glScaled(0.3D, 0.3D, 0.3D); GL11.glTranslatef(-this.shape8_22.offsetX, -this.shape8_22.offsetY, -this.shape8_22.offsetZ); GL11.glTranslatef(-this.shape8_22.rotationPointX * f5, -this.shape8_22.rotationPointY * f5, -this.shape8_22.rotationPointZ * f5); this.shape8_22.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape8_14.offsetX, this.shape8_14.offsetY, this.shape8_14.offsetZ); GL11.glTranslatef(this.shape8_14.rotationPointX * f5, this.shape8_14.rotationPointY * f5, this.shape8_14.rotationPointZ * f5); GL11.glScaled(1.0D, 1.0D, 0.5D); GL11.glTranslatef(-this.shape8_14.offsetX, -this.shape8_14.offsetY, -this.shape8_14.offsetZ); GL11.glTranslatef(-this.shape8_14.rotationPointX * f5, -this.shape8_14.rotationPointY * f5, -this.shape8_14.rotationPointZ * f5); this.shape8_14.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape11_4.offsetX, this.shape11_4.offsetY, this.shape11_4.offsetZ); GL11.glTranslatef(this.shape11_4.rotationPointX * f5, this.shape11_4.rotationPointY * f5, this.shape11_4.rotationPointZ * f5); GL11.glScaled(0.7D, 1.0D, 1.0D); GL11.glTranslatef(-this.shape11_4.offsetX, -this.shape11_4.offsetY, -this.shape11_4.offsetZ); GL11.glTranslatef(-this.shape11_4.rotationPointX * f5, -this.shape11_4.rotationPointY * f5, -this.shape11_4.rotationPointZ * f5); this.shape11_4.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape11_6.offsetX, this.shape11_6.offsetY, this.shape11_6.offsetZ); GL11.glTranslatef(this.shape11_6.rotationPointX * f5, this.shape11_6.rotationPointY * f5, this.shape11_6.rotationPointZ * f5); GL11.glScaled(0.7D, 1.0D, 1.0D); GL11.glTranslatef(-this.shape11_6.offsetX, -this.shape11_6.offsetY, -this.shape11_6.offsetZ); GL11.glTranslatef(-this.shape11_6.rotationPointX * f5, -this.shape11_6.rotationPointY * f5, -this.shape11_6.rotationPointZ * f5); this.shape11_6.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape8_3.offsetX, this.shape8_3.offsetY, this.shape8_3.offsetZ); GL11.glTranslatef(this.shape8_3.rotationPointX * f5, this.shape8_3.rotationPointY * f5, this.shape8_3.rotationPointZ * f5); GL11.glScaled(0.3D, 0.3D, 0.3D); GL11.glTranslatef(-this.shape8_3.offsetX, -this.shape8_3.offsetY, -this.shape8_3.offsetZ); GL11.glTranslatef(-this.shape8_3.rotationPointX * f5, -this.shape8_3.rotationPointY * f5, -this.shape8_3.rotationPointZ * f5); this.shape8_3.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape11_12.offsetX, this.shape11_12.offsetY, this.shape11_12.offsetZ); GL11.glTranslatef(this.shape11_12.rotationPointX * f5, this.shape11_12.rotationPointY * f5, this.shape11_12.rotationPointZ * f5); GL11.glScaled(0.88D, 0.9D, 0.98D); GL11.glTranslatef(-this.shape11_12.offsetX, -this.shape11_12.offsetY, -this.shape11_12.offsetZ); GL11.glTranslatef(-this.shape11_12.rotationPointX * f5, -this.shape11_12.rotationPointY * f5, -this.shape11_12.rotationPointZ * f5); this.shape11_12.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape8_1.offsetX, this.shape8_1.offsetY, this.shape8_1.offsetZ); GL11.glTranslatef(this.shape8_1.rotationPointX * f5, this.shape8_1.rotationPointY * f5, this.shape8_1.rotationPointZ * f5); GL11.glScaled(1.0D, 1.0D, 0.6D); GL11.glTranslatef(-this.shape8_1.offsetX, -this.shape8_1.offsetY, -this.shape8_1.offsetZ); GL11.glTranslatef(-this.shape8_1.rotationPointX * f5, -this.shape8_1.rotationPointY * f5, -this.shape8_1.rotationPointZ * f5); this.shape8_1.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape8_24.offsetX, this.shape8_24.offsetY, this.shape8_24.offsetZ); GL11.glTranslatef(this.shape8_24.rotationPointX * f5, this.shape8_24.rotationPointY * f5, this.shape8_24.rotationPointZ * f5); GL11.glScaled(0.3D, 0.3D, 0.3D); GL11.glTranslatef(-this.shape8_24.offsetX, -this.shape8_24.offsetY, -this.shape8_24.offsetZ); GL11.glTranslatef(-this.shape8_24.rotationPointX * f5, -this.shape8_24.rotationPointY * f5, -this.shape8_24.rotationPointZ * f5); this.shape8_24.render(f5); GL11.glPopMatrix(); this.shape11_5.render(f5); GL11.glPushMatrix(); GL11.glTranslatef(this.shape11_11.offsetX, this.shape11_11.offsetY, this.shape11_11.offsetZ); GL11.glTranslatef(this.shape11_11.rotationPointX * f5, this.shape11_11.rotationPointY * f5, this.shape11_11.rotationPointZ * f5); GL11.glScaled(1.0D, 0.9D, 1.0D); GL11.glTranslatef(-this.shape11_11.offsetX, -this.shape11_11.offsetY, -this.shape11_11.offsetZ); GL11.glTranslatef(-this.shape11_11.rotationPointX * f5, -this.shape11_11.rotationPointY * f5, -this.shape11_11.rotationPointZ * f5); this.shape11_11.render(f5); GL11.glPopMatrix(); this.shape8_25.render(f5); GL11.glPushMatrix(); GL11.glTranslatef(this.shape8_7.offsetX, this.shape8_7.offsetY, this.shape8_7.offsetZ); GL11.glTranslatef(this.shape8_7.rotationPointX * f5, this.shape8_7.rotationPointY * f5, this.shape8_7.rotationPointZ * f5); GL11.glScaled(1.0D, 0.9D, 1.0D); GL11.glTranslatef(-this.shape8_7.offsetX, -this.shape8_7.offsetY, -this.shape8_7.offsetZ); GL11.glTranslatef(-this.shape8_7.rotationPointX * f5, -this.shape8_7.rotationPointY * f5, -this.shape8_7.rotationPointZ * f5); this.shape8_7.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape8.offsetX, this.shape8.offsetY, this.shape8.offsetZ); GL11.glTranslatef(this.shape8.rotationPointX * f5, this.shape8.rotationPointY * f5, this.shape8.rotationPointZ * f5); GL11.glScaled(1.0D, 1.0D, 0.6D); GL11.glTranslatef(-this.shape8.offsetX, -this.shape8.offsetY, -this.shape8.offsetZ); GL11.glTranslatef(-this.shape8.rotationPointX * f5, -this.shape8.rotationPointY * f5, -this.shape8.rotationPointZ * f5); this.shape8.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape11_16.offsetX, this.shape11_16.offsetY, this.shape11_16.offsetZ); GL11.glTranslatef(this.shape11_16.rotationPointX * f5, this.shape11_16.rotationPointY * f5, this.shape11_16.rotationPointZ * f5); GL11.glScaled(1.4D, 1.0D, 1.0D); GL11.glTranslatef(-this.shape11_16.offsetX, -this.shape11_16.offsetY, -this.shape11_16.offsetZ); GL11.glTranslatef(-this.shape11_16.rotationPointX * f5, -this.shape11_16.rotationPointY * f5, -this.shape11_16.rotationPointZ * f5); this.shape11_16.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape11_15.offsetX, this.shape11_15.offsetY, this.shape11_15.offsetZ); GL11.glTranslatef(this.shape11_15.rotationPointX * f5, this.shape11_15.rotationPointY * f5, this.shape11_15.rotationPointZ * f5); GL11.glScaled(1.02D, 0.7D, 1.0D); GL11.glTranslatef(-this.shape11_15.offsetX, -this.shape11_15.offsetY, -this.shape11_15.offsetZ); GL11.glTranslatef(-this.shape11_15.rotationPointX * f5, -this.shape11_15.rotationPointY * f5, -this.shape11_15.rotationPointZ * f5); this.shape11_15.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape8_6.offsetX, this.shape8_6.offsetY, this.shape8_6.offsetZ); GL11.glTranslatef(this.shape8_6.rotationPointX * f5, this.shape8_6.rotationPointY * f5, this.shape8_6.rotationPointZ * f5); GL11.glScaled(0.3D, 0.3D, 0.3D); GL11.glTranslatef(-this.shape8_6.offsetX, -this.shape8_6.offsetY, -this.shape8_6.offsetZ); GL11.glTranslatef(-this.shape8_6.rotationPointX * f5, -this.shape8_6.rotationPointY * f5, -this.shape8_6.rotationPointZ * f5); this.shape8_6.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape8_20.offsetX, this.shape8_20.offsetY, this.shape8_20.offsetZ); GL11.glTranslatef(this.shape8_20.rotationPointX * f5, this.shape8_20.rotationPointY * f5, this.shape8_20.rotationPointZ * f5); GL11.glScaled(1.0D, 1.0D, 0.5D); GL11.glTranslatef(-this.shape8_20.offsetX, -this.shape8_20.offsetY, -this.shape8_20.offsetZ); GL11.glTranslatef(-this.shape8_20.rotationPointX * f5, -this.shape8_20.rotationPointY * f5, -this.shape8_20.rotationPointZ * f5); this.shape8_20.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape11_3.offsetX, this.shape11_3.offsetY, this.shape11_3.offsetZ); GL11.glTranslatef(this.shape11_3.rotationPointX * f5, this.shape11_3.rotationPointY * f5, this.shape11_3.rotationPointZ * f5); GL11.glScaled(0.7D, 1.0D, 1.0D); GL11.glTranslatef(-this.shape11_3.offsetX, -this.shape11_3.offsetY, -this.shape11_3.offsetZ); GL11.glTranslatef(-this.shape11_3.rotationPointX * f5, -this.shape11_3.rotationPointY * f5, -this.shape11_3.rotationPointZ * f5); this.shape11_3.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape8_8.offsetX, this.shape8_8.offsetY, this.shape8_8.offsetZ); GL11.glTranslatef(this.shape8_8.rotationPointX * f5, this.shape8_8.rotationPointY * f5, this.shape8_8.rotationPointZ * f5); GL11.glScaled(1.0D, 1.0D, 0.5D); GL11.glTranslatef(-this.shape8_8.offsetX, -this.shape8_8.offsetY, -this.shape8_8.offsetZ); GL11.glTranslatef(-this.shape8_8.rotationPointX * f5, -this.shape8_8.rotationPointY * f5, -this.shape8_8.rotationPointZ * f5); this.shape8_8.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape8_21.offsetX, this.shape8_21.offsetY, this.shape8_21.offsetZ); GL11.glTranslatef(this.shape8_21.rotationPointX * f5, this.shape8_21.rotationPointY * f5, this.shape8_21.rotationPointZ * f5); GL11.glScaled(0.3D, 0.3D, 0.3D); GL11.glTranslatef(-this.shape8_21.offsetX, -this.shape8_21.offsetY, -this.shape8_21.offsetZ); GL11.glTranslatef(-this.shape8_21.rotationPointX * f5, -this.shape8_21.rotationPointY * f5, -this.shape8_21.rotationPointZ * f5); this.shape8_21.render(f5); GL11.glPopMatrix(); }
From source file:buildcraftAdditions.client.models.ModelCapsule.java
License:GNU General Public License
@Override public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) { GL11.glPushMatrix();// w w w . j a va 2 s . com GL11.glTranslatef(this.capsuleCoreVert.offsetX, this.capsuleCoreVert.offsetY, this.capsuleCoreVert.offsetZ); GL11.glTranslatef(this.capsuleCoreVert.rotationPointX * f5, this.capsuleCoreVert.rotationPointY * f5, this.capsuleCoreVert.rotationPointZ * f5); GL11.glScaled(0.6D, 1.0D, 1.0D); GL11.glTranslatef(-this.capsuleCoreVert.offsetX, -this.capsuleCoreVert.offsetY, -this.capsuleCoreVert.offsetZ); GL11.glTranslatef(-this.capsuleCoreVert.rotationPointX * f5, -this.capsuleCoreVert.rotationPointY * f5, -this.capsuleCoreVert.rotationPointZ * f5); this.capsuleCoreVert.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.capsuleCoreTR.offsetX, this.capsuleCoreTR.offsetY, this.capsuleCoreTR.offsetZ); GL11.glTranslatef(this.capsuleCoreTR.rotationPointX * f5, this.capsuleCoreTR.rotationPointY * f5, this.capsuleCoreTR.rotationPointZ * f5); GL11.glScaled(0.45D, 0.5D, 0.5D); GL11.glTranslatef(-this.capsuleCoreTR.offsetX, -this.capsuleCoreTR.offsetY, -this.capsuleCoreTR.offsetZ); GL11.glTranslatef(-this.capsuleCoreTR.rotationPointX * f5, -this.capsuleCoreTR.rotationPointY * f5, -this.capsuleCoreTR.rotationPointZ * f5); this.capsuleCoreTR.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.capsuleThingy4.offsetX, this.capsuleThingy4.offsetY, this.capsuleThingy4.offsetZ); GL11.glTranslatef(this.capsuleThingy4.rotationPointX * f5, this.capsuleThingy4.rotationPointY * f5, this.capsuleThingy4.rotationPointZ * f5); GL11.glScaled(0.4D, 0.4D, 0.4D); GL11.glTranslatef(-this.capsuleThingy4.offsetX, -this.capsuleThingy4.offsetY, -this.capsuleThingy4.offsetZ); GL11.glTranslatef(-this.capsuleThingy4.rotationPointX * f5, -this.capsuleThingy4.rotationPointY * f5, -this.capsuleThingy4.rotationPointZ * f5); this.capsuleThingy4.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.capsuleCoreBL.offsetX, this.capsuleCoreBL.offsetY, this.capsuleCoreBL.offsetZ); GL11.glTranslatef(this.capsuleCoreBL.rotationPointX * f5, this.capsuleCoreBL.rotationPointY * f5, this.capsuleCoreBL.rotationPointZ * f5); GL11.glScaled(0.45D, 0.5D, 0.5D); GL11.glTranslatef(-this.capsuleCoreBL.offsetX, -this.capsuleCoreBL.offsetY, -this.capsuleCoreBL.offsetZ); GL11.glTranslatef(-this.capsuleCoreBL.rotationPointX * f5, -this.capsuleCoreBL.rotationPointY * f5, -this.capsuleCoreBL.rotationPointZ * f5); this.capsuleCoreBL.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.capsuleCoreBR.offsetX, this.capsuleCoreBR.offsetY, this.capsuleCoreBR.offsetZ); GL11.glTranslatef(this.capsuleCoreBR.rotationPointX * f5, this.capsuleCoreBR.rotationPointY * f5, this.capsuleCoreBR.rotationPointZ * f5); GL11.glScaled(0.45D, 0.5D, 0.5D); GL11.glTranslatef(-this.capsuleCoreBR.offsetX, -this.capsuleCoreBR.offsetY, -this.capsuleCoreBR.offsetZ); GL11.glTranslatef(-this.capsuleCoreBR.rotationPointX * f5, -this.capsuleCoreBR.rotationPointY * f5, -this.capsuleCoreBR.rotationPointZ * f5); this.capsuleCoreBR.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.capsuleThingy1.offsetX, this.capsuleThingy1.offsetY, this.capsuleThingy1.offsetZ); GL11.glTranslatef(this.capsuleThingy1.rotationPointX * f5, this.capsuleThingy1.rotationPointY * f5, this.capsuleThingy1.rotationPointZ * f5); GL11.glScaled(0.4D, 0.4D, 0.4D); GL11.glTranslatef(-this.capsuleThingy1.offsetX, -this.capsuleThingy1.offsetY, -this.capsuleThingy1.offsetZ); GL11.glTranslatef(-this.capsuleThingy1.rotationPointX * f5, -this.capsuleThingy1.rotationPointY * f5, -this.capsuleThingy1.rotationPointZ * f5); this.capsuleThingy1.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.capsuleCoreTL.offsetX, this.capsuleCoreTL.offsetY, this.capsuleCoreTL.offsetZ); GL11.glTranslatef(this.capsuleCoreTL.rotationPointX * f5, this.capsuleCoreTL.rotationPointY * f5, this.capsuleCoreTL.rotationPointZ * f5); GL11.glScaled(0.45D, 0.5D, 0.5D); GL11.glTranslatef(-this.capsuleCoreTL.offsetX, -this.capsuleCoreTL.offsetY, -this.capsuleCoreTL.offsetZ); GL11.glTranslatef(-this.capsuleCoreTL.rotationPointX * f5, -this.capsuleCoreTL.rotationPointY * f5, -this.capsuleCoreTL.rotationPointZ * f5); this.capsuleCoreTL.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.capsuleThingy2.offsetX, this.capsuleThingy2.offsetY, this.capsuleThingy2.offsetZ); GL11.glTranslatef(this.capsuleThingy2.rotationPointX * f5, this.capsuleThingy2.rotationPointY * f5, this.capsuleThingy2.rotationPointZ * f5); GL11.glScaled(0.4D, 0.4D, 0.4D); GL11.glTranslatef(-this.capsuleThingy2.offsetX, -this.capsuleThingy2.offsetY, -this.capsuleThingy2.offsetZ); GL11.glTranslatef(-this.capsuleThingy2.rotationPointX * f5, -this.capsuleThingy2.rotationPointY * f5, -this.capsuleThingy2.rotationPointZ * f5); this.capsuleThingy2.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.capsuleThingy3.offsetX, this.capsuleThingy3.offsetY, this.capsuleThingy3.offsetZ); GL11.glTranslatef(this.capsuleThingy3.rotationPointX * f5, this.capsuleThingy3.rotationPointY * f5, this.capsuleThingy3.rotationPointZ * f5); GL11.glScaled(0.4D, 0.4D, 0.4D); GL11.glTranslatef(-this.capsuleThingy3.offsetX, -this.capsuleThingy3.offsetY, -this.capsuleThingy3.offsetZ); GL11.glTranslatef(-this.capsuleThingy3.rotationPointX * f5, -this.capsuleThingy3.rotationPointY * f5, -this.capsuleThingy3.rotationPointZ * f5); this.capsuleThingy3.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.capsuleCoreHori.offsetX, this.capsuleCoreHori.offsetY, this.capsuleCoreHori.offsetZ); GL11.glTranslatef(this.capsuleCoreHori.rotationPointX * f5, this.capsuleCoreHori.rotationPointY * f5, this.capsuleCoreHori.rotationPointZ * f5); GL11.glScaled(1.0D, 0.6D, 0.99D); GL11.glTranslatef(-this.capsuleCoreHori.offsetX, -this.capsuleCoreHori.offsetY, -this.capsuleCoreHori.offsetZ); GL11.glTranslatef(-this.capsuleCoreHori.rotationPointX * f5, -this.capsuleCoreHori.rotationPointY * f5, -this.capsuleCoreHori.rotationPointZ * f5); this.capsuleCoreHori.render(f5); GL11.glPopMatrix(); }
From source file:buildcraftAdditions.client.models.ModelHoverBoots.java
License:GNU General Public License
@Override public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) { RenderUtils.bindTexture(TEXTURE);/*from w ww .jav a 2 s .c o m*/ GL11.glPushMatrix(); GL11.glTranslatef(this.shape1_1.offsetX, this.shape1_1.offsetY, this.shape1_1.offsetZ); GL11.glTranslatef(this.shape1_1.rotationPointX * f5, this.shape1_1.rotationPointY * f5, this.shape1_1.rotationPointZ * f5); GL11.glScaled(0.4D, 0.5D, 0.9D); GL11.glTranslatef(-this.shape1_1.offsetX, -this.shape1_1.offsetY, -this.shape1_1.offsetZ); GL11.glTranslatef(-this.shape1_1.rotationPointX * f5, -this.shape1_1.rotationPointY * f5, -this.shape1_1.rotationPointZ * f5); this.shape1_1.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape5_33.offsetX, this.shape5_33.offsetY, this.shape5_33.offsetZ); GL11.glTranslatef(this.shape5_33.rotationPointX * f5, this.shape5_33.rotationPointY * f5, this.shape5_33.rotationPointZ * f5); GL11.glScaled(0.6D, 0.5D, 0.35D); GL11.glTranslatef(-this.shape5_33.offsetX, -this.shape5_33.offsetY, -this.shape5_33.offsetZ); GL11.glTranslatef(-this.shape5_33.rotationPointX * f5, -this.shape5_33.rotationPointY * f5, -this.shape5_33.rotationPointZ * f5); this.shape5_33.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape5_17.offsetX, this.shape5_17.offsetY, this.shape5_17.offsetZ); GL11.glTranslatef(this.shape5_17.rotationPointX * f5, this.shape5_17.rotationPointY * f5, this.shape5_17.rotationPointZ * f5); GL11.glScaled(0.1D, 0.4D, 0.4D); GL11.glTranslatef(-this.shape5_17.offsetX, -this.shape5_17.offsetY, -this.shape5_17.offsetZ); GL11.glTranslatef(-this.shape5_17.rotationPointX * f5, -this.shape5_17.rotationPointY * f5, -this.shape5_17.rotationPointZ * f5); this.shape5_17.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape5_36.offsetX, this.shape5_36.offsetY, this.shape5_36.offsetZ); GL11.glTranslatef(this.shape5_36.rotationPointX * f5, this.shape5_36.rotationPointY * f5, this.shape5_36.rotationPointZ * f5); GL11.glScaled(0.1D, 0.4D, 0.4D); GL11.glTranslatef(-this.shape5_36.offsetX, -this.shape5_36.offsetY, -this.shape5_36.offsetZ); GL11.glTranslatef(-this.shape5_36.rotationPointX * f5, -this.shape5_36.rotationPointY * f5, -this.shape5_36.rotationPointZ * f5); this.shape5_36.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape5_31.offsetX, this.shape5_31.offsetY, this.shape5_31.offsetZ); GL11.glTranslatef(this.shape5_31.rotationPointX * f5, this.shape5_31.rotationPointY * f5, this.shape5_31.rotationPointZ * f5); GL11.glScaled(0.1D, 0.4D, 0.4D); GL11.glTranslatef(-this.shape5_31.offsetX, -this.shape5_31.offsetY, -this.shape5_31.offsetZ); GL11.glTranslatef(-this.shape5_31.rotationPointX * f5, -this.shape5_31.rotationPointY * f5, -this.shape5_31.rotationPointZ * f5); this.shape5_31.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape5_37.offsetX, this.shape5_37.offsetY, this.shape5_37.offsetZ); GL11.glTranslatef(this.shape5_37.rotationPointX * f5, this.shape5_37.rotationPointY * f5, this.shape5_37.rotationPointZ * f5); GL11.glScaled(0.7D, 0.4D, 0.1D); GL11.glTranslatef(-this.shape5_37.offsetX, -this.shape5_37.offsetY, -this.shape5_37.offsetZ); GL11.glTranslatef(-this.shape5_37.rotationPointX * f5, -this.shape5_37.rotationPointY * f5, -this.shape5_37.rotationPointZ * f5); this.shape5_37.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape5_38.offsetX, this.shape5_38.offsetY, this.shape5_38.offsetZ); GL11.glTranslatef(this.shape5_38.rotationPointX * f5, this.shape5_38.rotationPointY * f5, this.shape5_38.rotationPointZ * f5); GL11.glScaled(0.1D, 0.4D, 0.4D); GL11.glTranslatef(-this.shape5_38.offsetX, -this.shape5_38.offsetY, -this.shape5_38.offsetZ); GL11.glTranslatef(-this.shape5_38.rotationPointX * f5, -this.shape5_38.rotationPointY * f5, -this.shape5_38.rotationPointZ * f5); this.shape5_38.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape5_7.offsetX, this.shape5_7.offsetY, this.shape5_7.offsetZ); GL11.glTranslatef(this.shape5_7.rotationPointX * f5, this.shape5_7.rotationPointY * f5, this.shape5_7.rotationPointZ * f5); GL11.glScaled(0.7D, 0.1D, 0.4D); GL11.glTranslatef(-this.shape5_7.offsetX, -this.shape5_7.offsetY, -this.shape5_7.offsetZ); GL11.glTranslatef(-this.shape5_7.rotationPointX * f5, -this.shape5_7.rotationPointY * f5, -this.shape5_7.rotationPointZ * f5); this.shape5_7.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape5.offsetX, this.shape5.offsetY, this.shape5.offsetZ); GL11.glTranslatef(this.shape5.rotationPointX * f5, this.shape5.rotationPointY * f5, this.shape5.rotationPointZ * f5); GL11.glScaled(1.0D, 1.0D, 0.5D); GL11.glTranslatef(-this.shape5.offsetX, -this.shape5.offsetY, -this.shape5.offsetZ); GL11.glTranslatef(-this.shape5.rotationPointX * f5, -this.shape5.rotationPointY * f5, -this.shape5.rotationPointZ * f5); this.shape5.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape5_27.offsetX, this.shape5_27.offsetY, this.shape5_27.offsetZ); GL11.glTranslatef(this.shape5_27.rotationPointX * f5, this.shape5_27.rotationPointY * f5, this.shape5_27.rotationPointZ * f5); GL11.glScaled(0.1D, 0.8D, 0.1D); GL11.glTranslatef(-this.shape5_27.offsetX, -this.shape5_27.offsetY, -this.shape5_27.offsetZ); GL11.glTranslatef(-this.shape5_27.rotationPointX * f5, -this.shape5_27.rotationPointY * f5, -this.shape5_27.rotationPointZ * f5); this.shape5_27.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape5_29.offsetX, this.shape5_29.offsetY, this.shape5_29.offsetZ); GL11.glTranslatef(this.shape5_29.rotationPointX * f5, this.shape5_29.rotationPointY * f5, this.shape5_29.rotationPointZ * f5); GL11.glScaled(0.7D, 0.4D, 0.1D); GL11.glTranslatef(-this.shape5_29.offsetX, -this.shape5_29.offsetY, -this.shape5_29.offsetZ); GL11.glTranslatef(-this.shape5_29.rotationPointX * f5, -this.shape5_29.rotationPointY * f5, -this.shape5_29.rotationPointZ * f5); this.shape5_29.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape5_23.offsetX, this.shape5_23.offsetY, this.shape5_23.offsetZ); GL11.glTranslatef(this.shape5_23.rotationPointX * f5, this.shape5_23.rotationPointY * f5, this.shape5_23.rotationPointZ * f5); GL11.glScaled(0.1D, 0.8D, 0.1D); GL11.glTranslatef(-this.shape5_23.offsetX, -this.shape5_23.offsetY, -this.shape5_23.offsetZ); GL11.glTranslatef(-this.shape5_23.rotationPointX * f5, -this.shape5_23.rotationPointY * f5, -this.shape5_23.rotationPointZ * f5); this.shape5_23.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape5_24.offsetX, this.shape5_24.offsetY, this.shape5_24.offsetZ); GL11.glTranslatef(this.shape5_24.rotationPointX * f5, this.shape5_24.rotationPointY * f5, this.shape5_24.rotationPointZ * f5); GL11.glScaled(1.0D, 0.3D, 0.2D); GL11.glTranslatef(-this.shape5_24.offsetX, -this.shape5_24.offsetY, -this.shape5_24.offsetZ); GL11.glTranslatef(-this.shape5_24.rotationPointX * f5, -this.shape5_24.rotationPointY * f5, -this.shape5_24.rotationPointZ * f5); this.shape5_24.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape5_1.offsetX, this.shape5_1.offsetY, this.shape5_1.offsetZ); GL11.glTranslatef(this.shape5_1.rotationPointX * f5, this.shape5_1.rotationPointY * f5, this.shape5_1.rotationPointZ * f5); GL11.glScaled(1.0D, 0.2D, 0.2D); GL11.glTranslatef(-this.shape5_1.offsetX, -this.shape5_1.offsetY, -this.shape5_1.offsetZ); GL11.glTranslatef(-this.shape5_1.rotationPointX * f5, -this.shape5_1.rotationPointY * f5, -this.shape5_1.rotationPointZ * f5); this.shape5_1.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape5_13.offsetX, this.shape5_13.offsetY, this.shape5_13.offsetZ); GL11.glTranslatef(this.shape5_13.rotationPointX * f5, this.shape5_13.rotationPointY * f5, this.shape5_13.rotationPointZ * f5); GL11.glScaled(0.4D, 0.2D, 0.25D); GL11.glTranslatef(-this.shape5_13.offsetX, -this.shape5_13.offsetY, -this.shape5_13.offsetZ); GL11.glTranslatef(-this.shape5_13.rotationPointX * f5, -this.shape5_13.rotationPointY * f5, -this.shape5_13.rotationPointZ * f5); this.shape5_13.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape5_10.offsetX, this.shape5_10.offsetY, this.shape5_10.offsetZ); GL11.glTranslatef(this.shape5_10.rotationPointX * f5, this.shape5_10.rotationPointY * f5, this.shape5_10.rotationPointZ * f5); GL11.glScaled(0.1D, 0.4D, 0.4D); GL11.glTranslatef(-this.shape5_10.offsetX, -this.shape5_10.offsetY, -this.shape5_10.offsetZ); GL11.glTranslatef(-this.shape5_10.rotationPointX * f5, -this.shape5_10.rotationPointY * f5, -this.shape5_10.rotationPointZ * f5); this.shape5_10.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape5_20.offsetX, this.shape5_20.offsetY, this.shape5_20.offsetZ); GL11.glTranslatef(this.shape5_20.rotationPointX * f5, this.shape5_20.rotationPointY * f5, this.shape5_20.rotationPointZ * f5); GL11.glScaled(0.4D, 0.2D, 0.25D); GL11.glTranslatef(-this.shape5_20.offsetX, -this.shape5_20.offsetY, -this.shape5_20.offsetZ); GL11.glTranslatef(-this.shape5_20.rotationPointX * f5, -this.shape5_20.rotationPointY * f5, -this.shape5_20.rotationPointZ * f5); this.shape5_20.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape5_18.offsetX, this.shape5_18.offsetY, this.shape5_18.offsetZ); GL11.glTranslatef(this.shape5_18.rotationPointX * f5, this.shape5_18.rotationPointY * f5, this.shape5_18.rotationPointZ * f5); GL11.glScaled(0.2D, 0.15D, 0.25D); GL11.glTranslatef(-this.shape5_18.offsetX, -this.shape5_18.offsetY, -this.shape5_18.offsetZ); GL11.glTranslatef(-this.shape5_18.rotationPointX * f5, -this.shape5_18.rotationPointY * f5, -this.shape5_18.rotationPointZ * f5); this.shape5_18.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape5_35.offsetX, this.shape5_35.offsetY, this.shape5_35.offsetZ); GL11.glTranslatef(this.shape5_35.rotationPointX * f5, this.shape5_35.rotationPointY * f5, this.shape5_35.rotationPointZ * f5); GL11.glScaled(0.7D, 0.1D, 0.4D); GL11.glTranslatef(-this.shape5_35.offsetX, -this.shape5_35.offsetY, -this.shape5_35.offsetZ); GL11.glTranslatef(-this.shape5_35.rotationPointX * f5, -this.shape5_35.rotationPointY * f5, -this.shape5_35.rotationPointZ * f5); this.shape5_35.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape5_15.offsetX, this.shape5_15.offsetY, this.shape5_15.offsetZ); GL11.glTranslatef(this.shape5_15.rotationPointX * f5, this.shape5_15.rotationPointY * f5, this.shape5_15.rotationPointZ * f5); GL11.glScaled(0.1D, 0.4D, 0.4D); GL11.glTranslatef(-this.shape5_15.offsetX, -this.shape5_15.offsetY, -this.shape5_15.offsetZ); GL11.glTranslatef(-this.shape5_15.rotationPointX * f5, -this.shape5_15.rotationPointY * f5, -this.shape5_15.rotationPointZ * f5); this.shape5_15.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape5_16.offsetX, this.shape5_16.offsetY, this.shape5_16.offsetZ); GL11.glTranslatef(this.shape5_16.rotationPointX * f5, this.shape5_16.rotationPointY * f5, this.shape5_16.rotationPointZ * f5); GL11.glScaled(0.7D, 0.4D, 0.1D); GL11.glTranslatef(-this.shape5_16.offsetX, -this.shape5_16.offsetY, -this.shape5_16.offsetZ); GL11.glTranslatef(-this.shape5_16.rotationPointX * f5, -this.shape5_16.rotationPointY * f5, -this.shape5_16.rotationPointZ * f5); this.shape5_16.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape5_30.offsetX, this.shape5_30.offsetY, this.shape5_30.offsetZ); GL11.glTranslatef(this.shape5_30.rotationPointX * f5, this.shape5_30.rotationPointY * f5, this.shape5_30.rotationPointZ * f5); GL11.glScaled(0.1D, 0.4D, 0.4D); GL11.glTranslatef(-this.shape5_30.offsetX, -this.shape5_30.offsetY, -this.shape5_30.offsetZ); GL11.glTranslatef(-this.shape5_30.rotationPointX * f5, -this.shape5_30.rotationPointY * f5, -this.shape5_30.rotationPointZ * f5); this.shape5_30.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape5_41.offsetX, this.shape5_41.offsetY, this.shape5_41.offsetZ); GL11.glTranslatef(this.shape5_41.rotationPointX * f5, this.shape5_41.rotationPointY * f5, this.shape5_41.rotationPointZ * f5); GL11.glScaled(0.4D, 0.2D, 0.25D); GL11.glTranslatef(-this.shape5_41.offsetX, -this.shape5_41.offsetY, -this.shape5_41.offsetZ); GL11.glTranslatef(-this.shape5_41.rotationPointX * f5, -this.shape5_41.rotationPointY * f5, -this.shape5_41.rotationPointZ * f5); this.shape5_41.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape5_39.offsetX, this.shape5_39.offsetY, this.shape5_39.offsetZ); GL11.glTranslatef(this.shape5_39.rotationPointX * f5, this.shape5_39.rotationPointY * f5, this.shape5_39.rotationPointZ * f5); GL11.glScaled(0.2D, 0.15D, 0.25D); GL11.glTranslatef(-this.shape5_39.offsetX, -this.shape5_39.offsetY, -this.shape5_39.offsetZ); GL11.glTranslatef(-this.shape5_39.rotationPointX * f5, -this.shape5_39.rotationPointY * f5, -this.shape5_39.rotationPointZ * f5); this.shape5_39.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape5_5.offsetX, this.shape5_5.offsetY, this.shape5_5.offsetZ); GL11.glTranslatef(this.shape5_5.rotationPointX * f5, this.shape5_5.rotationPointY * f5, this.shape5_5.rotationPointZ * f5); GL11.glScaled(0.1D, 0.8D, 0.1D); GL11.glTranslatef(-this.shape5_5.offsetX, -this.shape5_5.offsetY, -this.shape5_5.offsetZ); GL11.glTranslatef(-this.shape5_5.rotationPointX * f5, -this.shape5_5.rotationPointY * f5, -this.shape5_5.rotationPointZ * f5); this.shape5_5.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape5_14.offsetX, this.shape5_14.offsetY, this.shape5_14.offsetZ); GL11.glTranslatef(this.shape5_14.rotationPointX * f5, this.shape5_14.rotationPointY * f5, this.shape5_14.rotationPointZ * f5); GL11.glScaled(0.7D, 0.1D, 0.4D); GL11.glTranslatef(-this.shape5_14.offsetX, -this.shape5_14.offsetY, -this.shape5_14.offsetZ); GL11.glTranslatef(-this.shape5_14.rotationPointX * f5, -this.shape5_14.rotationPointY * f5, -this.shape5_14.rotationPointZ * f5); this.shape5_14.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape5_3.offsetX, this.shape5_3.offsetY, this.shape5_3.offsetZ); GL11.glTranslatef(this.shape5_3.rotationPointX * f5, this.shape5_3.rotationPointY * f5, this.shape5_3.rotationPointZ * f5); GL11.glScaled(1.0D, 0.3D, 0.2D); GL11.glTranslatef(-this.shape5_3.offsetX, -this.shape5_3.offsetY, -this.shape5_3.offsetZ); GL11.glTranslatef(-this.shape5_3.rotationPointX * f5, -this.shape5_3.rotationPointY * f5, -this.shape5_3.rotationPointZ * f5); this.shape5_3.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape5_40.offsetX, this.shape5_40.offsetY, this.shape5_40.offsetZ); GL11.glTranslatef(this.shape5_40.rotationPointX * f5, this.shape5_40.rotationPointY * f5, this.shape5_40.rotationPointZ * f5); GL11.glScaled(0.6D, 0.5D, 0.35D); GL11.glTranslatef(-this.shape5_40.offsetX, -this.shape5_40.offsetY, -this.shape5_40.offsetZ); GL11.glTranslatef(-this.shape5_40.rotationPointX * f5, -this.shape5_40.rotationPointY * f5, -this.shape5_40.rotationPointZ * f5); this.shape5_40.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape5_21.offsetX, this.shape5_21.offsetY, this.shape5_21.offsetZ); GL11.glTranslatef(this.shape5_21.rotationPointX * f5, this.shape5_21.rotationPointY * f5, this.shape5_21.rotationPointZ * f5); GL11.glScaled(1.0D, 1.0D, 0.5D); GL11.glTranslatef(-this.shape5_21.offsetX, -this.shape5_21.offsetY, -this.shape5_21.offsetZ); GL11.glTranslatef(-this.shape5_21.rotationPointX * f5, -this.shape5_21.rotationPointY * f5, -this.shape5_21.rotationPointZ * f5); this.shape5_21.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape5_28.offsetX, this.shape5_28.offsetY, this.shape5_28.offsetZ); GL11.glTranslatef(this.shape5_28.rotationPointX * f5, this.shape5_28.rotationPointY * f5, this.shape5_28.rotationPointZ * f5); GL11.glScaled(0.7D, 0.1D, 0.4D); GL11.glTranslatef(-this.shape5_28.offsetX, -this.shape5_28.offsetY, -this.shape5_28.offsetZ); GL11.glTranslatef(-this.shape5_28.rotationPointX * f5, -this.shape5_28.rotationPointY * f5, -this.shape5_28.rotationPointZ * f5); this.shape5_28.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape1.offsetX, this.shape1.offsetY, this.shape1.offsetZ); GL11.glTranslatef(this.shape1.rotationPointX * f5, this.shape1.rotationPointY * f5, this.shape1.rotationPointZ * f5); GL11.glScaled(0.4D, 0.5D, 0.9D); GL11.glTranslatef(-this.shape1.offsetX, -this.shape1.offsetY, -this.shape1.offsetZ); GL11.glTranslatef(-this.shape1.rotationPointX * f5, -this.shape1.rotationPointY * f5, -this.shape1.rotationPointZ * f5); this.shape1.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape5_19.offsetX, this.shape5_19.offsetY, this.shape5_19.offsetZ); GL11.glTranslatef(this.shape5_19.rotationPointX * f5, this.shape5_19.rotationPointY * f5, this.shape5_19.rotationPointZ * f5); GL11.glScaled(0.6D, 0.5D, 0.35D); GL11.glTranslatef(-this.shape5_19.offsetX, -this.shape5_19.offsetY, -this.shape5_19.offsetZ); GL11.glTranslatef(-this.shape5_19.rotationPointX * f5, -this.shape5_19.rotationPointY * f5, -this.shape5_19.rotationPointZ * f5); this.shape5_19.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape5_2.offsetX, this.shape5_2.offsetY, this.shape5_2.offsetZ); GL11.glTranslatef(this.shape5_2.rotationPointX * f5, this.shape5_2.rotationPointY * f5, this.shape5_2.rotationPointZ * f5); GL11.glScaled(0.1D, 0.8D, 0.1D); GL11.glTranslatef(-this.shape5_2.offsetX, -this.shape5_2.offsetY, -this.shape5_2.offsetZ); GL11.glTranslatef(-this.shape5_2.rotationPointX * f5, -this.shape5_2.rotationPointY * f5, -this.shape5_2.rotationPointZ * f5); this.shape5_2.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape5_11.offsetX, this.shape5_11.offsetY, this.shape5_11.offsetZ); GL11.glTranslatef(this.shape5_11.rotationPointX * f5, this.shape5_11.rotationPointY * f5, this.shape5_11.rotationPointZ * f5); GL11.glScaled(0.2D, 0.15D, 0.25D); GL11.glTranslatef(-this.shape5_11.offsetX, -this.shape5_11.offsetY, -this.shape5_11.offsetZ); GL11.glTranslatef(-this.shape5_11.rotationPointX * f5, -this.shape5_11.rotationPointY * f5, -this.shape5_11.rotationPointZ * f5); this.shape5_11.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape5_25.offsetX, this.shape5_25.offsetY, this.shape5_25.offsetZ); GL11.glTranslatef(this.shape5_25.rotationPointX * f5, this.shape5_25.rotationPointY * f5, this.shape5_25.rotationPointZ * f5); GL11.glScaled(0.1D, 0.8D, 0.1D); GL11.glTranslatef(-this.shape5_25.offsetX, -this.shape5_25.offsetY, -this.shape5_25.offsetZ); GL11.glTranslatef(-this.shape5_25.rotationPointX * f5, -this.shape5_25.rotationPointY * f5, -this.shape5_25.rotationPointZ * f5); this.shape5_25.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape5_34.offsetX, this.shape5_34.offsetY, this.shape5_34.offsetZ); GL11.glTranslatef(this.shape5_34.rotationPointX * f5, this.shape5_34.rotationPointY * f5, this.shape5_34.rotationPointZ * f5); GL11.glScaled(0.4D, 0.2D, 0.25D); GL11.glTranslatef(-this.shape5_34.offsetX, -this.shape5_34.offsetY, -this.shape5_34.offsetZ); GL11.glTranslatef(-this.shape5_34.rotationPointX * f5, -this.shape5_34.rotationPointY * f5, -this.shape5_34.rotationPointZ * f5); this.shape5_34.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape5_4.offsetX, this.shape5_4.offsetY, this.shape5_4.offsetZ); GL11.glTranslatef(this.shape5_4.rotationPointX * f5, this.shape5_4.rotationPointY * f5, this.shape5_4.rotationPointZ * f5); GL11.glScaled(0.1D, 0.8D, 0.1D); GL11.glTranslatef(-this.shape5_4.offsetX, -this.shape5_4.offsetY, -this.shape5_4.offsetZ); GL11.glTranslatef(-this.shape5_4.rotationPointX * f5, -this.shape5_4.rotationPointY * f5, -this.shape5_4.rotationPointZ * f5); this.shape5_4.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape5_9.offsetX, this.shape5_9.offsetY, this.shape5_9.offsetZ); GL11.glTranslatef(this.shape5_9.rotationPointX * f5, this.shape5_9.rotationPointY * f5, this.shape5_9.rotationPointZ * f5); GL11.glScaled(0.1D, 0.4D, 0.4D); GL11.glTranslatef(-this.shape5_9.offsetX, -this.shape5_9.offsetY, -this.shape5_9.offsetZ); GL11.glTranslatef(-this.shape5_9.rotationPointX * f5, -this.shape5_9.rotationPointY * f5, -this.shape5_9.rotationPointZ * f5); this.shape5_9.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape5_12.offsetX, this.shape5_12.offsetY, this.shape5_12.offsetZ); GL11.glTranslatef(this.shape5_12.rotationPointX * f5, this.shape5_12.rotationPointY * f5, this.shape5_12.rotationPointZ * f5); GL11.glScaled(0.6D, 0.5D, 0.35D); GL11.glTranslatef(-this.shape5_12.offsetX, -this.shape5_12.offsetY, -this.shape5_12.offsetZ); GL11.glTranslatef(-this.shape5_12.rotationPointX * f5, -this.shape5_12.rotationPointY * f5, -this.shape5_12.rotationPointZ * f5); this.shape5_12.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape5_22.offsetX, this.shape5_22.offsetY, this.shape5_22.offsetZ); GL11.glTranslatef(this.shape5_22.rotationPointX * f5, this.shape5_22.rotationPointY * f5, this.shape5_22.rotationPointZ * f5); GL11.glScaled(1.0D, 0.2D, 0.2D); GL11.glTranslatef(-this.shape5_22.offsetX, -this.shape5_22.offsetY, -this.shape5_22.offsetZ); GL11.glTranslatef(-this.shape5_22.rotationPointX * f5, -this.shape5_22.rotationPointY * f5, -this.shape5_22.rotationPointZ * f5); this.shape5_22.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape5_26.offsetX, this.shape5_26.offsetY, this.shape5_26.offsetZ); GL11.glTranslatef(this.shape5_26.rotationPointX * f5, this.shape5_26.rotationPointY * f5, this.shape5_26.rotationPointZ * f5); GL11.glScaled(0.1D, 0.8D, 0.1D); GL11.glTranslatef(-this.shape5_26.offsetX, -this.shape5_26.offsetY, -this.shape5_26.offsetZ); GL11.glTranslatef(-this.shape5_26.rotationPointX * f5, -this.shape5_26.rotationPointY * f5, -this.shape5_26.rotationPointZ * f5); this.shape5_26.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape5_32.offsetX, this.shape5_32.offsetY, this.shape5_32.offsetZ); GL11.glTranslatef(this.shape5_32.rotationPointX * f5, this.shape5_32.rotationPointY * f5, this.shape5_32.rotationPointZ * f5); GL11.glScaled(0.2D, 0.15D, 0.25D); GL11.glTranslatef(-this.shape5_32.offsetX, -this.shape5_32.offsetY, -this.shape5_32.offsetZ); GL11.glTranslatef(-this.shape5_32.rotationPointX * f5, -this.shape5_32.rotationPointY * f5, -this.shape5_32.rotationPointZ * f5); this.shape5_32.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape5_8.offsetX, this.shape5_8.offsetY, this.shape5_8.offsetZ); GL11.glTranslatef(this.shape5_8.rotationPointX * f5, this.shape5_8.rotationPointY * f5, this.shape5_8.rotationPointZ * f5); GL11.glScaled(0.7D, 0.4D, 0.1D); GL11.glTranslatef(-this.shape5_8.offsetX, -this.shape5_8.offsetY, -this.shape5_8.offsetZ); GL11.glTranslatef(-this.shape5_8.rotationPointX * f5, -this.shape5_8.rotationPointY * f5, -this.shape5_8.rotationPointZ * f5); this.shape5_8.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape5_6.offsetX, this.shape5_6.offsetY, this.shape5_6.offsetZ); GL11.glTranslatef(this.shape5_6.rotationPointX * f5, this.shape5_6.rotationPointY * f5, this.shape5_6.rotationPointZ * f5); GL11.glScaled(0.1D, 0.8D, 0.1D); GL11.glTranslatef(-this.shape5_6.offsetX, -this.shape5_6.offsetY, -this.shape5_6.offsetZ); GL11.glTranslatef(-this.shape5_6.rotationPointX * f5, -this.shape5_6.rotationPointY * f5, -this.shape5_6.rotationPointZ * f5); this.shape5_6.render(f5); GL11.glPopMatrix(); GL11.glPopMatrix(); }
From source file:buildcraftAdditions.client.models.ModelKineticDuster.java
License:GNU General Public License
@Override public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) { this.cube.render(f5); this.shape11_2.render(f5); GL11.glPushMatrix();//from w w w.ja va 2s. co m GL11.glTranslatef(this.shape24_3.offsetX, this.shape24_3.offsetY, this.shape24_3.offsetZ); GL11.glTranslatef(this.shape24_3.rotationPointX * f5, this.shape24_3.rotationPointY * f5, this.shape24_3.rotationPointZ * f5); GL11.glScaled(1.0D, 6.0D, 14.0D); GL11.glTranslatef(-this.shape24_3.offsetX, -this.shape24_3.offsetY, -this.shape24_3.offsetZ); GL11.glTranslatef(-this.shape24_3.rotationPointX * f5, -this.shape24_3.rotationPointY * f5, -this.shape24_3.rotationPointZ * f5); GL11.glEnable(GL11.GL_BLEND); GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); GL11.glColor4f(1.0F, 1.0F, 1.0F, 0.2F); this.shape24_3.render(f5); GL11.glDisable(GL11.GL_BLEND); GL11.glPopMatrix(); this.shape11_7.render(f5); this.shape11_5.render(f5); this.shape11_1.render(f5); GL11.glPushMatrix(); GL11.glTranslatef(this.shape24_1.offsetX, this.shape24_1.offsetY, this.shape24_1.offsetZ); GL11.glTranslatef(this.shape24_1.rotationPointX * f5, this.shape24_1.rotationPointY * f5, this.shape24_1.rotationPointZ * f5); GL11.glScaled(1.0D, 6.0D, 14.0D); GL11.glTranslatef(-this.shape24_1.offsetX, -this.shape24_1.offsetY, -this.shape24_1.offsetZ); GL11.glTranslatef(-this.shape24_1.rotationPointX * f5, -this.shape24_1.rotationPointY * f5, -this.shape24_1.rotationPointZ * f5); GL11.glEnable(GL11.GL_BLEND); GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); GL11.glColor4f(1.0F, 1.0F, 1.0F, 0.2F); this.shape24_1.render(f5); GL11.glDisable(GL11.GL_BLEND); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape24_2.offsetX, this.shape24_2.offsetY, this.shape24_2.offsetZ); GL11.glTranslatef(this.shape24_2.rotationPointX * f5, this.shape24_2.rotationPointY * f5, this.shape24_2.rotationPointZ * f5); GL11.glScaled(1.0D, 6.0D, 14.0D); GL11.glTranslatef(-this.shape24_2.offsetX, -this.shape24_2.offsetY, -this.shape24_2.offsetZ); GL11.glTranslatef(-this.shape24_2.rotationPointX * f5, -this.shape24_2.rotationPointY * f5, -this.shape24_2.rotationPointZ * f5); GL11.glEnable(GL11.GL_BLEND); GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); GL11.glColor4f(1.0F, 1.0F, 1.0F, 0.2F); this.shape24_2.render(f5); GL11.glDisable(GL11.GL_BLEND); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape24_5.offsetX, this.shape24_5.offsetY, this.shape24_5.offsetZ); GL11.glTranslatef(this.shape24_5.rotationPointX * f5, this.shape24_5.rotationPointY * f5, this.shape24_5.rotationPointZ * f5); GL11.glScaled(14.0D, 1.0D, 14.0D); GL11.glTranslatef(-this.shape24_5.offsetX, -this.shape24_5.offsetY, -this.shape24_5.offsetZ); GL11.glTranslatef(-this.shape24_5.rotationPointX * f5, -this.shape24_5.rotationPointY * f5, -this.shape24_5.rotationPointZ * f5); GL11.glEnable(GL11.GL_BLEND); GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); GL11.glColor4f(1.0F, 1.0F, 1.0F, 0.2F); this.shape24_5.render(f5); GL11.glDisable(GL11.GL_BLEND); GL11.glPopMatrix(); this.shape11_4.render(f5); this.shape11_3.render(f5); this.shape11_6.render(f5); this.shape11.render(f5); GL11.glPushMatrix(); GL11.glTranslatef(this.shape24.offsetX, this.shape24.offsetY, this.shape24.offsetZ); GL11.glTranslatef(this.shape24.rotationPointX * f5, this.shape24.rotationPointY * f5, this.shape24.rotationPointZ * f5); GL11.glScaled(14.0D, 6.0D, 1.0D); GL11.glTranslatef(-this.shape24.offsetX, -this.shape24.offsetY, -this.shape24.offsetZ); GL11.glTranslatef(-this.shape24.rotationPointX * f5, -this.shape24.rotationPointY * f5, -this.shape24.rotationPointZ * f5); GL11.glEnable(GL11.GL_BLEND); GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); GL11.glColor4f(1.0F, 1.0F, 1.0F, 0.2F); this.shape24.render(f5); GL11.glDisable(GL11.GL_BLEND); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape24_4.offsetX, this.shape24_4.offsetY, this.shape24_4.offsetZ); GL11.glTranslatef(this.shape24_4.rotationPointX * f5, this.shape24_4.rotationPointY * f5, this.shape24_4.rotationPointZ * f5); GL11.glScaled(14.0D, 6.0D, 1.0D); GL11.glTranslatef(-this.shape24_4.offsetX, -this.shape24_4.offsetY, -this.shape24_4.offsetZ); GL11.glTranslatef(-this.shape24_4.rotationPointX * f5, -this.shape24_4.rotationPointY * f5, -this.shape24_4.rotationPointZ * f5); GL11.glEnable(GL11.GL_BLEND); GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); GL11.glColor4f(1.0F, 1.0F, 1.0F, 0.2F); this.shape24_4.render(f5); GL11.glDisable(GL11.GL_BLEND); GL11.glPopMatrix(); }
From source file:buildcraftAdditions.client.models.ModelRocketPants.java
License:GNU General Public License
private void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5, float offsetX, float offsetY, float offsetZ) { GL11.glPushMatrix();/*from ww w .j ava2s. c om*/ GL11.glTranslatef(offsetX, offsetY, offsetZ); RenderUtils.bindTexture(TEXTURE); GL11.glPushMatrix(); GL11.glTranslatef(this.shape9_18.offsetX, this.shape9_18.offsetY, this.shape9_18.offsetZ); GL11.glTranslatef(this.shape9_18.rotationPointX * f5, this.shape9_18.rotationPointY * f5, this.shape9_18.rotationPointZ * f5); GL11.glScaled(0.4D, 0.5D, 0.6D); GL11.glTranslatef(-this.shape9_18.offsetX, -this.shape9_18.offsetY, -this.shape9_18.offsetZ); GL11.glTranslatef(-this.shape9_18.rotationPointX * f5, -this.shape9_18.rotationPointY * f5, -this.shape9_18.rotationPointZ * f5); this.shape9_18.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape9_24.offsetX, this.shape9_24.offsetY, this.shape9_24.offsetZ); GL11.glTranslatef(this.shape9_24.rotationPointX * f5, this.shape9_24.rotationPointY * f5, this.shape9_24.rotationPointZ * f5); GL11.glScaled(0.4D, 0.8D, 1.0D); GL11.glTranslatef(-this.shape9_24.offsetX, -this.shape9_24.offsetY, -this.shape9_24.offsetZ); GL11.glTranslatef(-this.shape9_24.rotationPointX * f5, -this.shape9_24.rotationPointY * f5, -this.shape9_24.rotationPointZ * f5); this.shape9_24.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape9_10.offsetX, this.shape9_10.offsetY, this.shape9_10.offsetZ); GL11.glTranslatef(this.shape9_10.rotationPointX * f5, this.shape9_10.rotationPointY * f5, this.shape9_10.rotationPointZ * f5); GL11.glScaled(0.6D, 0.2D, 0.2D); GL11.glTranslatef(-this.shape9_10.offsetX, -this.shape9_10.offsetY, -this.shape9_10.offsetZ); GL11.glTranslatef(-this.shape9_10.rotationPointX * f5, -this.shape9_10.rotationPointY * f5, -this.shape9_10.rotationPointZ * f5); this.shape9_10.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape9_17.offsetX, this.shape9_17.offsetY, this.shape9_17.offsetZ); GL11.glTranslatef(this.shape9_17.rotationPointX * f5, this.shape9_17.rotationPointY * f5, this.shape9_17.rotationPointZ * f5); GL11.glScaled(0.4D, 0.6D, 0.8D); GL11.glTranslatef(-this.shape9_17.offsetX, -this.shape9_17.offsetY, -this.shape9_17.offsetZ); GL11.glTranslatef(-this.shape9_17.rotationPointX * f5, -this.shape9_17.rotationPointY * f5, -this.shape9_17.rotationPointZ * f5); this.shape9_17.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape9_9.offsetX, this.shape9_9.offsetY, this.shape9_9.offsetZ); GL11.glTranslatef(this.shape9_9.rotationPointX * f5, this.shape9_9.rotationPointY * f5, this.shape9_9.rotationPointZ * f5); GL11.glScaled(0.6D, 0.5D, 1.0D); GL11.glTranslatef(-this.shape9_9.offsetX, -this.shape9_9.offsetY, -this.shape9_9.offsetZ); GL11.glTranslatef(-this.shape9_9.rotationPointX * f5, -this.shape9_9.rotationPointY * f5, -this.shape9_9.rotationPointZ * f5); this.shape9_9.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape9_31.offsetX, this.shape9_31.offsetY, this.shape9_31.offsetZ); GL11.glTranslatef(this.shape9_31.rotationPointX * f5, this.shape9_31.rotationPointY * f5, this.shape9_31.rotationPointZ * f5); GL11.glScaled(0.2D, 0.6D, 0.6D); GL11.glTranslatef(-this.shape9_31.offsetX, -this.shape9_31.offsetY, -this.shape9_31.offsetZ); GL11.glTranslatef(-this.shape9_31.rotationPointX * f5, -this.shape9_31.rotationPointY * f5, -this.shape9_31.rotationPointZ * f5); this.shape9_31.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape9_1.offsetX, this.shape9_1.offsetY, this.shape9_1.offsetZ); GL11.glTranslatef(this.shape9_1.rotationPointX * f5, this.shape9_1.rotationPointY * f5, this.shape9_1.rotationPointZ * f5); GL11.glScaled(0.3D, 0.8D, 0.7D); GL11.glTranslatef(-this.shape9_1.offsetX, -this.shape9_1.offsetY, -this.shape9_1.offsetZ); GL11.glTranslatef(-this.shape9_1.rotationPointX * f5, -this.shape9_1.rotationPointY * f5, -this.shape9_1.rotationPointZ * f5); this.shape9_1.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape9_13.offsetX, this.shape9_13.offsetY, this.shape9_13.offsetZ); GL11.glTranslatef(this.shape9_13.rotationPointX * f5, this.shape9_13.rotationPointY * f5, this.shape9_13.rotationPointZ * f5); GL11.glScaled(0.4D, 0.4D, 0.5D); GL11.glTranslatef(-this.shape9_13.offsetX, -this.shape9_13.offsetY, -this.shape9_13.offsetZ); GL11.glTranslatef(-this.shape9_13.rotationPointX * f5, -this.shape9_13.rotationPointY * f5, -this.shape9_13.rotationPointZ * f5); this.shape9_13.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.frl_3.offsetX, this.frl_3.offsetY, this.frl_3.offsetZ); GL11.glTranslatef(this.frl_3.rotationPointX * f5, this.frl_3.rotationPointY * f5, this.frl_3.rotationPointZ * f5); GL11.glScaled(0.2D, 0.5D, 0.4D); GL11.glTranslatef(-this.frl_3.offsetX, -this.frl_3.offsetY, -this.frl_3.offsetZ); GL11.glTranslatef(-this.frl_3.rotationPointX * f5, -this.frl_3.rotationPointY * f5, -this.frl_3.rotationPointZ * f5); this.frl_3.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape9_11.offsetX, this.shape9_11.offsetY, this.shape9_11.offsetZ); GL11.glTranslatef(this.shape9_11.rotationPointX * f5, this.shape9_11.rotationPointY * f5, this.shape9_11.rotationPointZ * f5); GL11.glScaled(0.6D, 0.8D, 0.8D); GL11.glTranslatef(-this.shape9_11.offsetX, -this.shape9_11.offsetY, -this.shape9_11.offsetZ); GL11.glTranslatef(-this.shape9_11.rotationPointX * f5, -this.shape9_11.rotationPointY * f5, -this.shape9_11.rotationPointZ * f5); this.shape9_11.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.frl.offsetX, this.frl.offsetY, this.frl.offsetZ); GL11.glTranslatef(this.frl.rotationPointX * f5, this.frl.rotationPointY * f5, this.frl.rotationPointZ * f5); GL11.glScaled(0.2D, 0.5D, 0.4D); GL11.glTranslatef(-this.frl.offsetX, -this.frl.offsetY, -this.frl.offsetZ); GL11.glTranslatef(-this.frl.rotationPointX * f5, -this.frl.rotationPointY * f5, -this.frl.rotationPointZ * f5); this.frl.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape9_28.offsetX, this.shape9_28.offsetY, this.shape9_28.offsetZ); GL11.glTranslatef(this.shape9_28.rotationPointX * f5, this.shape9_28.rotationPointY * f5, this.shape9_28.rotationPointZ * f5); GL11.glScaled(0.2D, 0.8D, 0.8D); GL11.glTranslatef(-this.shape9_28.offsetX, -this.shape9_28.offsetY, -this.shape9_28.offsetZ); GL11.glTranslatef(-this.shape9_28.rotationPointX * f5, -this.shape9_28.rotationPointY * f5, -this.shape9_28.rotationPointZ * f5); this.shape9_28.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape9_26.offsetX, this.shape9_26.offsetY, this.shape9_26.offsetZ); GL11.glTranslatef(this.shape9_26.rotationPointX * f5, this.shape9_26.rotationPointY * f5, this.shape9_26.rotationPointZ * f5); GL11.glScaled(0.4D, 0.5D, 0.6D); GL11.glTranslatef(-this.shape9_26.offsetX, -this.shape9_26.offsetY, -this.shape9_26.offsetZ); GL11.glTranslatef(-this.shape9_26.rotationPointX * f5, -this.shape9_26.rotationPointY * f5, -this.shape9_26.rotationPointZ * f5); this.shape9_26.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape9_12.offsetX, this.shape9_12.offsetY, this.shape9_12.offsetZ); GL11.glTranslatef(this.shape9_12.rotationPointX * f5, this.shape9_12.rotationPointY * f5, this.shape9_12.rotationPointZ * f5); GL11.glScaled(0.4D, 0.8D, 0.4D); GL11.glTranslatef(-this.shape9_12.offsetX, -this.shape9_12.offsetY, -this.shape9_12.offsetZ); GL11.glTranslatef(-this.shape9_12.rotationPointX * f5, -this.shape9_12.rotationPointY * f5, -this.shape9_12.rotationPointZ * f5); this.shape9_12.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape9_16.offsetX, this.shape9_16.offsetY, this.shape9_16.offsetZ); GL11.glTranslatef(this.shape9_16.rotationPointX * f5, this.shape9_16.rotationPointY * f5, this.shape9_16.rotationPointZ * f5); GL11.glScaled(0.4D, 0.8D, 1.0D); GL11.glTranslatef(-this.shape9_16.offsetX, -this.shape9_16.offsetY, -this.shape9_16.offsetZ); GL11.glTranslatef(-this.shape9_16.rotationPointX * f5, -this.shape9_16.rotationPointY * f5, -this.shape9_16.rotationPointZ * f5); this.shape9_16.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape9_7.offsetX, this.shape9_7.offsetY, this.shape9_7.offsetZ); GL11.glTranslatef(this.shape9_7.rotationPointX * f5, this.shape9_7.rotationPointY * f5, this.shape9_7.rotationPointZ * f5); GL11.glScaled(0.6D, 0.8D, 0.8D); GL11.glTranslatef(-this.shape9_7.offsetX, -this.shape9_7.offsetY, -this.shape9_7.offsetZ); GL11.glTranslatef(-this.shape9_7.rotationPointX * f5, -this.shape9_7.rotationPointY * f5, -this.shape9_7.rotationPointZ * f5); this.shape9_7.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape9_15.offsetX, this.shape9_15.offsetY, this.shape9_15.offsetZ); GL11.glTranslatef(this.shape9_15.rotationPointX * f5, this.shape9_15.rotationPointY * f5, this.shape9_15.rotationPointZ * f5); GL11.glScaled(0.2D, 0.2D, 0.3D); GL11.glTranslatef(-this.shape9_15.offsetX, -this.shape9_15.offsetY, -this.shape9_15.offsetZ); GL11.glTranslatef(-this.shape9_15.rotationPointX * f5, -this.shape9_15.rotationPointY * f5, -this.shape9_15.rotationPointZ * f5); this.shape9_15.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape9_14.offsetX, this.shape9_14.offsetY, this.shape9_14.offsetZ); GL11.glTranslatef(this.shape9_14.rotationPointX * f5, this.shape9_14.rotationPointY * f5, this.shape9_14.rotationPointZ * f5); GL11.glScaled(0.3D, 0.3D, 0.3D); GL11.glTranslatef(-this.shape9_14.offsetX, -this.shape9_14.offsetY, -this.shape9_14.offsetZ); GL11.glTranslatef(-this.shape9_14.rotationPointX * f5, -this.shape9_14.rotationPointY * f5, -this.shape9_14.rotationPointZ * f5); this.shape9_14.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape9_30.offsetX, this.shape9_30.offsetY, this.shape9_30.offsetZ); GL11.glTranslatef(this.shape9_30.rotationPointX * f5, this.shape9_30.rotationPointY * f5, this.shape9_30.rotationPointZ * f5); GL11.glScaled(0.2D, 0.8D, 0.8D); GL11.glTranslatef(-this.shape9_30.offsetX, -this.shape9_30.offsetY, -this.shape9_30.offsetZ); GL11.glTranslatef(-this.shape9_30.rotationPointX * f5, -this.shape9_30.rotationPointY * f5, -this.shape9_30.rotationPointZ * f5); this.shape9_30.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape9_2.offsetX, this.shape9_2.offsetY, this.shape9_2.offsetZ); GL11.glTranslatef(this.shape9_2.rotationPointX * f5, this.shape9_2.rotationPointY * f5, this.shape9_2.rotationPointZ * f5); GL11.glScaled(0.9D, 0.3D, 0.7D); GL11.glTranslatef(-this.shape9_2.offsetX, -this.shape9_2.offsetY, -this.shape9_2.offsetZ); GL11.glTranslatef(-this.shape9_2.rotationPointX * f5, -this.shape9_2.rotationPointY * f5, -this.shape9_2.rotationPointZ * f5); this.shape9_2.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape9_20.offsetX, this.shape9_20.offsetY, this.shape9_20.offsetZ); GL11.glTranslatef(this.shape9_20.rotationPointX * f5, this.shape9_20.rotationPointY * f5, this.shape9_20.rotationPointZ * f5); GL11.glScaled(0.2D, 0.8D, 0.8D); GL11.glTranslatef(-this.shape9_20.offsetX, -this.shape9_20.offsetY, -this.shape9_20.offsetZ); GL11.glTranslatef(-this.shape9_20.rotationPointX * f5, -this.shape9_20.rotationPointY * f5, -this.shape9_20.rotationPointZ * f5); this.shape9_20.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape9_4.offsetX, this.shape9_4.offsetY, this.shape9_4.offsetZ); GL11.glTranslatef(this.shape9_4.rotationPointX * f5, this.shape9_4.rotationPointY * f5, this.shape9_4.rotationPointZ * f5); GL11.glScaled(0.4D, 0.4D, 0.5D); GL11.glTranslatef(-this.shape9_4.offsetX, -this.shape9_4.offsetY, -this.shape9_4.offsetZ); GL11.glTranslatef(-this.shape9_4.rotationPointX * f5, -this.shape9_4.rotationPointY * f5, -this.shape9_4.rotationPointZ * f5); this.shape9_4.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.frl_2.offsetX, this.frl_2.offsetY, this.frl_2.offsetZ); GL11.glTranslatef(this.frl_2.rotationPointX * f5, this.frl_2.rotationPointY * f5, this.frl_2.rotationPointZ * f5); GL11.glScaled(0.2D, 0.5D, 0.4D); GL11.glTranslatef(-this.frl_2.offsetX, -this.frl_2.offsetY, -this.frl_2.offsetZ); GL11.glTranslatef(-this.frl_2.rotationPointX * f5, -this.frl_2.rotationPointY * f5, -this.frl_2.rotationPointZ * f5); this.frl_2.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape9_19.offsetX, this.shape9_19.offsetY, this.shape9_19.offsetZ); GL11.glTranslatef(this.shape9_19.rotationPointX * f5, this.shape9_19.rotationPointY * f5, this.shape9_19.rotationPointZ * f5); GL11.glScaled(0.4D, 0.4D, 0.4D); GL11.glTranslatef(-this.shape9_19.offsetX, -this.shape9_19.offsetY, -this.shape9_19.offsetZ); GL11.glTranslatef(-this.shape9_19.rotationPointX * f5, -this.shape9_19.rotationPointY * f5, -this.shape9_19.rotationPointZ * f5); this.shape9_19.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape9.offsetX, this.shape9.offsetY, this.shape9.offsetZ); GL11.glTranslatef(this.shape9.rotationPointX * f5, this.shape9.rotationPointY * f5, this.shape9.rotationPointZ * f5); GL11.glScaled(0.6D, 0.8D, 0.6D); GL11.glTranslatef(-this.shape9.offsetX, -this.shape9.offsetY, -this.shape9.offsetZ); GL11.glTranslatef(-this.shape9.rotationPointX * f5, -this.shape9.rotationPointY * f5, -this.shape9.rotationPointZ * f5); this.shape9.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape9_5.offsetX, this.shape9_5.offsetY, this.shape9_5.offsetZ); GL11.glTranslatef(this.shape9_5.rotationPointX * f5, this.shape9_5.rotationPointY * f5, this.shape9_5.rotationPointZ * f5); GL11.glScaled(0.3D, 0.3D, 0.3D); GL11.glTranslatef(-this.shape9_5.offsetX, -this.shape9_5.offsetY, -this.shape9_5.offsetZ); GL11.glTranslatef(-this.shape9_5.rotationPointX * f5, -this.shape9_5.rotationPointY * f5, -this.shape9_5.rotationPointZ * f5); this.shape9_5.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape9_27.offsetX, this.shape9_27.offsetY, this.shape9_27.offsetZ); GL11.glTranslatef(this.shape9_27.rotationPointX * f5, this.shape9_27.rotationPointY * f5, this.shape9_27.rotationPointZ * f5); GL11.glScaled(0.4D, 0.4D, 0.4D); GL11.glTranslatef(-this.shape9_27.offsetX, -this.shape9_27.offsetY, -this.shape9_27.offsetZ); GL11.glTranslatef(-this.shape9_27.rotationPointX * f5, -this.shape9_27.rotationPointY * f5, -this.shape9_27.rotationPointZ * f5); this.shape9_27.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape9_22.offsetX, this.shape9_22.offsetY, this.shape9_22.offsetZ); GL11.glTranslatef(this.shape9_22.rotationPointX * f5, this.shape9_22.rotationPointY * f5, this.shape9_22.rotationPointZ * f5); GL11.glScaled(0.2D, 0.6D, 0.6D); GL11.glTranslatef(-this.shape9_22.offsetX, -this.shape9_22.offsetY, -this.shape9_22.offsetZ); GL11.glTranslatef(-this.shape9_22.rotationPointX * f5, -this.shape9_22.rotationPointY * f5, -this.shape9_22.rotationPointZ * f5); this.shape9_22.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape9_21.offsetX, this.shape9_21.offsetY, this.shape9_21.offsetZ); GL11.glTranslatef(this.shape9_21.rotationPointX * f5, this.shape9_21.rotationPointY * f5, this.shape9_21.rotationPointZ * f5); GL11.glScaled(0.2D, 0.6D, 0.6D); GL11.glTranslatef(-this.shape9_21.offsetX, -this.shape9_21.offsetY, -this.shape9_21.offsetZ); GL11.glTranslatef(-this.shape9_21.rotationPointX * f5, -this.shape9_21.rotationPointY * f5, -this.shape9_21.rotationPointZ * f5); this.shape9_21.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape9_29.offsetX, this.shape9_29.offsetY, this.shape9_29.offsetZ); GL11.glTranslatef(this.shape9_29.rotationPointX * f5, this.shape9_29.rotationPointY * f5, this.shape9_29.rotationPointZ * f5); GL11.glScaled(0.2D, 0.6D, 0.6D); GL11.glTranslatef(-this.shape9_29.offsetX, -this.shape9_29.offsetY, -this.shape9_29.offsetZ); GL11.glTranslatef(-this.shape9_29.rotationPointX * f5, -this.shape9_29.rotationPointY * f5, -this.shape9_29.rotationPointZ * f5); this.shape9_29.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape9_8.offsetX, this.shape9_8.offsetY, this.shape9_8.offsetZ); GL11.glTranslatef(this.shape9_8.rotationPointX * f5, this.shape9_8.rotationPointY * f5, this.shape9_8.rotationPointZ * f5); GL11.glScaled(0.4D, 0.8D, 0.4D); GL11.glTranslatef(-this.shape9_8.offsetX, -this.shape9_8.offsetY, -this.shape9_8.offsetZ); GL11.glTranslatef(-this.shape9_8.rotationPointX * f5, -this.shape9_8.rotationPointY * f5, -this.shape9_8.rotationPointZ * f5); this.shape9_8.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape9_23.offsetX, this.shape9_23.offsetY, this.shape9_23.offsetZ); GL11.glTranslatef(this.shape9_23.rotationPointX * f5, this.shape9_23.rotationPointY * f5, this.shape9_23.rotationPointZ * f5); GL11.glScaled(0.2D, 0.8D, 0.8D); GL11.glTranslatef(-this.shape9_23.offsetX, -this.shape9_23.offsetY, -this.shape9_23.offsetZ); GL11.glTranslatef(-this.shape9_23.rotationPointX * f5, -this.shape9_23.rotationPointY * f5, -this.shape9_23.rotationPointZ * f5); this.shape9_23.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.frl_1.offsetX, this.frl_1.offsetY, this.frl_1.offsetZ); GL11.glTranslatef(this.frl_1.rotationPointX * f5, this.frl_1.rotationPointY * f5, this.frl_1.rotationPointZ * f5); GL11.glScaled(0.2D, 0.5D, 0.4D); GL11.glTranslatef(-this.frl_1.offsetX, -this.frl_1.offsetY, -this.frl_1.offsetZ); GL11.glTranslatef(-this.frl_1.rotationPointX * f5, -this.frl_1.rotationPointY * f5, -this.frl_1.rotationPointZ * f5); this.frl_1.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape9_3.offsetX, this.shape9_3.offsetY, this.shape9_3.offsetZ); GL11.glTranslatef(this.shape9_3.rotationPointX * f5, this.shape9_3.rotationPointY * f5, this.shape9_3.rotationPointZ * f5); GL11.glScaled(0.3D, 0.8D, 0.7D); GL11.glTranslatef(-this.shape9_3.offsetX, -this.shape9_3.offsetY, -this.shape9_3.offsetZ); GL11.glTranslatef(-this.shape9_3.rotationPointX * f5, -this.shape9_3.rotationPointY * f5, -this.shape9_3.rotationPointZ * f5); this.shape9_3.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape9_25.offsetX, this.shape9_25.offsetY, this.shape9_25.offsetZ); GL11.glTranslatef(this.shape9_25.rotationPointX * f5, this.shape9_25.rotationPointY * f5, this.shape9_25.rotationPointZ * f5); GL11.glScaled(0.4D, 0.6D, 0.8D); GL11.glTranslatef(-this.shape9_25.offsetX, -this.shape9_25.offsetY, -this.shape9_25.offsetZ); GL11.glTranslatef(-this.shape9_25.rotationPointX * f5, -this.shape9_25.rotationPointY * f5, -this.shape9_25.rotationPointZ * f5); this.shape9_25.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glTranslatef(this.shape9_6.offsetX, this.shape9_6.offsetY, this.shape9_6.offsetZ); GL11.glTranslatef(this.shape9_6.rotationPointX * f5, this.shape9_6.rotationPointY * f5, this.shape9_6.rotationPointZ * f5); GL11.glScaled(0.2D, 0.2D, 0.3D); GL11.glTranslatef(-this.shape9_6.offsetX, -this.shape9_6.offsetY, -this.shape9_6.offsetZ); GL11.glTranslatef(-this.shape9_6.rotationPointX * f5, -this.shape9_6.rotationPointY * f5, -this.shape9_6.rotationPointZ * f5); this.shape9_6.render(f5); GL11.glPopMatrix(); GL11.glPopMatrix(); }
From source file:buildcraftAdditions.client.render.entities.EntityLaserShotRenderer.java
License:GNU General Public License
private void doRender(EntityLaserShot entity, double x, double y, double z, float rotation, float partialTicks) { bindEntityTexture(entity);// www . j a v a2s . c o m GL11.glPushMatrix(); float strength = entity.getStrength(); if (strength >= 1) GL11.glColor3f(1, 0, 0); else if (strength > 0.75) GL11.glColor3f(0.75F, 0, 0.25F); else if (strength > 0.6) GL11.glColor3f(0.5F, 0, 0.5F); else if (strength > 0.35) GL11.glColor3f(0.25F, 0, 0.75F); else GL11.glColor3f(0, 0, 1); GL11.glTranslated(x, y, z); GL11.glRotatef(entity.prevRotationYaw + (entity.rotationYaw - entity.prevRotationYaw) * partialTicks - 90, 0, 1, 0); GL11.glRotatef(entity.prevRotationPitch + (entity.rotationPitch - entity.prevRotationPitch) * partialTicks, 0, 0, 1); Tessellator t = Tessellator.instance; double d1 = 0; double d2 = 0.5; double d3 = 0 / 32D; double d4 = 5 / 32D; double d5 = 0.05625; GL11.glEnable(GL12.GL_RESCALE_NORMAL); float f1 = entity.throwableShake - partialTicks; if (f1 > 0) { float f2 = -MathHelper.sin(f1 * 3) * f1; GL11.glRotatef(f2, 0, 0, 1); } GL11.glRotatef(45, 1, 0, 0); GL11.glScaled(d5, d5, d5); GL11.glTranslatef(-4, 0, 0); for (int i = 0; i < 4; i++) { GL11.glRotatef(90, 1, 0, 0); GL11.glNormal3d(0, 0, d5); t.startDrawingQuads(); t.addVertexWithUV(-8, -2, 0, d1, d3); t.addVertexWithUV(8, -2, 0, d2, d3); t.addVertexWithUV(8, 2, 0, d2, d4); t.addVertexWithUV(-8, 2, 0, d1, d4); t.draw(); } GL11.glDisable(GL12.GL_RESCALE_NORMAL); GL11.glPopMatrix(); }
From source file:bunyan.blocks.RenderManager.java
License:Minecraft Mod Public
public static void renderBlockAsItem(Block block, int metadata, float color, RenderBlocks renderer) { if (renderer.useInventoryTint) { final int renderColor = block.getRenderColor(metadata); final float red = (renderColor >> 16 & 255) / 255.0F; final float green = (renderColor >> 8 & 255) / 255.0F; final float blue = (renderColor & 255) / 255.0F; GL11.glColor4f(red * color, green * color, blue * color, 1.0F); }//from w ww . j av a 2 s. c om final Tessellator tessellator = Tessellator.instance; block.setBlockBoundsForItemRender(); GL11.glTranslatef(-0.5F, -0.5F, -0.5F); tessellator.startDrawingQuads(); tessellator.setNormal(0.0F, -1.0F, 0.0F); renderer.renderBottomFace(block, 0.0D, 0.0D, 0.0D, block.getBlockTextureFromSideAndMetadata(0, metadata)); tessellator.draw(); tessellator.startDrawingQuads(); tessellator.setNormal(0.0F, 1.0F, 0.0F); renderer.renderTopFace(block, 0.0D, 0.0D, 0.0D, block.getBlockTextureFromSideAndMetadata(1, metadata)); tessellator.draw(); tessellator.startDrawingQuads(); tessellator.setNormal(0.0F, 0.0F, -1.0F); renderer.renderEastFace(block, 0.0D, 0.0D, 0.0D, block.getBlockTextureFromSideAndMetadata(2, metadata)); tessellator.draw(); tessellator.startDrawingQuads(); tessellator.setNormal(0.0F, 0.0F, 1.0F); renderer.renderWestFace(block, 0.0D, 0.0D, 0.0D, block.getBlockTextureFromSideAndMetadata(3, metadata)); tessellator.draw(); tessellator.startDrawingQuads(); tessellator.setNormal(-1.0F, 0.0F, 0.0F); renderer.renderNorthFace(block, 0.0D, 0.0D, 0.0D, block.getBlockTextureFromSideAndMetadata(4, metadata)); tessellator.draw(); tessellator.startDrawingQuads(); tessellator.setNormal(1.0F, 0.0F, 0.0F); renderer.renderSouthFace(block, 0.0D, 0.0D, 0.0D, block.getBlockTextureFromSideAndMetadata(5, metadata)); tessellator.draw(); GL11.glTranslatef(0.5F, 0.5F, 0.5F); }