Abeez11 Posted March 27, 2019 Share Posted March 27, 2019 GlStateManager.pushMatrix(); GlStateManager.color(255, 5f, 5f, 0.50f); GlStateManager.disableBlend(); GlStateManager.disableTexture2D(); GlStateManager.disableAlpha(); Tessellator tes = Tessellator.getInstance(); WorldRenderer worldrenderer = tes.getWorldRenderer(); worldrenderer.begin(7, DefaultVertexFormats.POSITION_COLOR); worldrenderer.pos(x + (length * Math.cos(angle)), y + (length * Math.sin(angle)), 0.0).tex(0.0, 1.0).endVertex(); worldrenderer.pos(x + (length * 0.5D * Math.cos(angle - arrowBackAngle)), y + (length * 0.5D * Math.sin(angle - arrowBackAngle)), 0.0).tex(1.0, 1.0).endVertex(); worldrenderer.pos(x + (length * 0.3D * Math.cos(angle + Math.PI)), y + (length * 0.3D * Math.sin(angle + Math.PI)), 0.0).tex(1.0, 0.0).endVertex(); worldrenderer.pos(x + (length * 0.5D * Math.cos(angle + arrowBackAngle)), y + (length * 0.5D * Math.sin(angle + arrowBackAngle)), 0.0).tex(0.0, 0.0).endVertex(); tes.draw(); GlStateManager.popMatrix(); GlStateManager.enableTexture2D(); GlStateManager.disableBlend(); GlStateManager.enableAlpha(); GlStateManager.color(1, 1, 1, 1); What exactly am I doing wrong? It's suppose to make a red arrow, but it makes a black instead. I've also tried worldrenderer.color without success. Did I forget to enable something? Quote Link to comment Share on other sites More sharing options...
Cadiboo Posted March 27, 2019 Share Posted March 27, 2019 That doesn’t look like 1.12.2 code... Quote About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme) Link to comment Share on other sites More sharing options...
Cadiboo Posted March 27, 2019 Share Posted March 27, 2019 6 minutes ago, Abeez11 said: tex(0.0, 0.0) You are drawing in POSITION_COLOR, why do you try and do anything with textures? Quote About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme) Link to comment Share on other sites More sharing options...
Abeez11 Posted March 28, 2019 Author Share Posted March 28, 2019 (edited) 6 hours ago, Cadiboo said: You are drawing in POSITION_COLOR, why do you try and do anything with textures? I just copy/paste graphics stuff then change it to work to save time. Sorry for wasting everyone's time, issue has been resolved. Thanks Cadiboo Edited March 28, 2019 by Abeez11 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.