Macapple Posted September 8, 2013 Posted September 8, 2013 Hi there everyone. I'm trying to make a model for my item,i made it using Techne and i loaded it in minecraft. The problem is that Texture doesn't load,becoming invisibile or purple-black checkers. My texture.png file is in /assets/modid/textures/texture3d.png I use THIS in my main class MinecraftForgeClient.registerItemRenderer(dubGun.itemID, (IItemRenderer)new ItemRendererWubGun()); And THIS as Renderer @Override public void renderItem(ItemRenderType type, ItemStack item, Object... data) { switch(type) { case EQUIPPED: { GL11.glPushMatrix(); Minecraft.getMinecraft().renderEngine.func_110577_a(new ResourceLocation("mac_dubgun:textures/items/dubguntex.png")); Any help will be appreciated Quote
Mazetar Posted September 8, 2013 Posted September 8, 2013 Check what the console output says about your texture. Quote If you guys dont get it.. then well ya.. try harder...
Mew Posted September 9, 2013 Posted September 9, 2013 Or better yet, look at the path you told the renderer to look in, and then look at where you said the file is stored. Then tell us whats wrong Quote I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes. I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there
Macapple Posted September 9, 2013 Author Posted September 9, 2013 I changed it to see if something would happen. Now the texture3d.png file is in \assets\mac_dubstepgun\textures\models In the code i changed it to : @Override public void renderItem(ItemRenderType type, ItemStack item, Object... data) { switch(type) { case EQUIPPED: { GL11.glPushMatrix(); Minecraft.getMinecraft().renderEngine.func_110577_a(new ResourceLocation("mac_dubstepgun:textures/models/texture3d.png")); Quote
Macapple Posted September 9, 2013 Author Posted September 9, 2013 I tried making texture 64 x 64 but it shows invisible. Just for testing,i made a completely red texture,and loaded it. It shows invisible aswell,no luck. :C Quote
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.