-
Recently Browsing
No registered users viewing this page.
-
Posts
-
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. -
Loader, is that another class I extend off of? Is that SeparaterPerspectiveModel? I really have no context for how these pieces of information fit together. Can you explain with some more detail?
-
-
Topics
-
Who's Online (See full list)