Posted September 1, 20214 yr Hello, I come here because I noticed that the function GlStateManager._enableAlphaTest(); was deprecated. This is probably due to the new 3d engine. It bothers me a lot and despite my research I haven't found an alternative, could you help me?
September 2, 20214 yr Author 1 hour ago, Luis_ST said: look into the RenderSystem class Already did and i didn't found about an alternative. However i checked PlayerRender class to see how nameTag render is used however i didn't found information about transparency of nametag. ( I mean we can see nametag throught blocks )
September 3, 20214 yr the RenderSytem class has the method enableAlphaTest and disableAlphaTest use them. if this is not what you want, explain what exactly you are looking for
September 3, 20214 yr Author 8 hours ago, Luis_ST said: the RenderSytem class has the method enableAlphaTest and disableAlphaTest use them. if this is not what you want, explain what exactly you are looking for So I will explain what I am looking for. I would like to render a message above the head, like the nickname (i'm using RenderEntityEvent ). However when the player is in a cave as example, the player on the surface will not see his nickname. ( At a good distance of course ). In 1.12.2, I used the RenderSystem.enableAlphaTest() to see the text through blocks. I use the FontRenderer#drawInBatch() method to render my text however RenderSystem.enableAlphaTest() is deprecreated & seem doesn't work for FontRenderer#drawInBatch() method. So that's why i need help please ! Edited September 3, 20214 yr by Thomas7520
September 3, 20214 yr Author 2 hours ago, Luis_ST said: look into the vanilla code how they render the name above a player I have already look, but now i think i'm so stupid... My answer was under my eyes...... I'm happy and angry..... Sorry for the inconvenience and thank you
September 5, 20214 yr Author I'm sorry, i don't know how close this topic, @diesieben07 if you can do it pls ^^
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.