-
Recently Browsing
No registered users viewing this page.
-
Posts
-
Hi. I tried translucent_transparency. I copied code from it to setup and clear the renderstate. Still doesn't work, texture is not transparent. Am I missing something? minecraft.getTextureManager().bindTexture(TEXTURE_LOC); matrixStack.push(); { RenderSystem.enableBlend(); RenderSystem.blendFuncSeparate(GlStateManager.SourceFactor.SRC_ALPHA, GlStateManager.DestFactor.ONE_MINUS_SRC_ALPHA, GlStateManager.SourceFactor.ONE, GlStateManager.DestFactor.ONE_MINUS_SRC_ALPHA); RenderSystem.blendColor(1f, 1f, 1f, 0.5f); matrixStack.translate(instru_pos[currentNbo.ordinal()][0], instru_pos[currentNbo.ordinal()][1], 0); matrixStack.scale((255/20f)*scale, (255/20f)*scale, (255/20f)*scale); this.blit(matrixStack, 0, 0, 0, 146, 20, 20); RenderSystem.disableBlend(); RenderSystem.defaultBlendFunc(); } matrixStack.pop();
-
By CookieLukas · Posted
Im trying to render a simple plane with the following code: GL11.glPushMatrix(); GL11.glTranslated(-doubleX, -doubleY, -doubleZ); ResourceLocation texture = new ResourceLocation(ExampleMod.MODID, "debug.png"); mc.renderEngine.bindTexture(texture); Tessellator tessellator = Tessellator.getInstance(); VertexBuffer bufferbuilder = tessellator.getBuffer(); GL11.glEnable(GL11.GL_TEXTURE_2D); bufferbuilder.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX); bufferbuilder.pos(x, y + 1.1, z + 1.0D).tex(0, 1).endVertex(); bufferbuilder.pos(x + 1.0D, y + 1.1, z + 1.0D).tex(1, 1).endVertex(); bufferbuilder.pos(x + 1.0D, y + 1.1, z).tex(1, 0).endVertex(); bufferbuilder.pos(x, y + 1.1, z).tex(0, 0).endVertex(); GL11.glEnd(); tessellator.draw(); GlStateManager.popMatrix(); It renders the plane perfectly, but it just completly ignores lighting. I tried stuff like GlStateManager.enableLighting(); but I cant get it work. Also, some textures like staind glass or water wont render in from of it. How can I fix those issues? Thanks in advance -Lukas -
By ChampionAsh5357 · Posted
Please link a paste to the gradle log from the erroring build process. -
By buffalobob · Posted
I will literally make out with you I was struggling with this for two hours and you fixed it papi chulo I love you -
By diesieben07 · Posted
The loader is an inner class: https://github.com/MinecraftForge/MinecraftForge/blob/1.16.x/src/main/java/net/minecraftforge/client/model/SeparatePerspectiveModel.java#L164 You need to register the loader (see where Forge does it). Then the loader will be called to load the JSON model into memory.
-
-
Topics
-
Who's Online (See full list)