Jump to content

1.6.2 Model Texture not Working


Macapple

Recommended Posts

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 :)

Link to comment
Share on other sites

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  :P:D

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 xD

Link to comment
Share on other sites

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"));

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.