Jump to content

[1.7.10] IItemRenderer transparent texture rendering as solid black


Recommended Posts

Posted

if the problem is the item in slot 1

then take a good look at it

it is rendering transparencies (look at to outside shape)

check your transparency on the inside bit, 

if it has a slight opacity it will render as fully opaque

 

the only items i have ever seen in the game with opacity are all blocks

and they use

    @SideOnly(Side.CLIENT)
    public int getRenderBlockPass()
    {
        return 1;
    }

to do that, but i dont know how you would for an item,  that is if it is possible

 

 

Posted

Hi

 

After looking more closely at your code I think the problem is probably here

 

            GL11.glColor3f(c.getRed() / 255, c.getGreen() / 255, c.getBlue() / 255);

 

This uses integer division so it becomes GL11.glColor3f(0, 0, 0);

 

Try

/ 255.0F

instead of

/ 255

 

-TGG

 

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.