Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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?
 

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

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

  • 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 !
 

 

Dz3tVnT.png

jY4gUlY.png

 

Edited by Thomas7520

  • 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

 

rcGI9qT.png

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.