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

Hey Guys!

 

I think you all know the Vanilla Item renderer. If the graphics are set to fancy it renders the Item in 3D with the shape based on the Alpha channel of the Item's texture. How can you use this method of rendering, for example to easily give a volume to a single face, while rendering Blocks or entities?

It doesn't render them in 3D any more than it renders glass in 3D -- that option says whether or not to draw transparency in some common textures. If it's disabled, then there's no alpha channel so it shows up black. I believe you can specify this by overriding

Block#isOpaqueCube()

; at least it seems that way from a quick glance into the code for

BlockLeaves

.

I like to make mods, just like you. Here's one worth checking out

  • Author

I think you didn't understand me correctly.

 

An Item which is rendered in Fancy-mode or held in the player's hand is not just a flat surface. It has a volume. And this volume, or the edges of the volume, are defined by a change from alpha = 0 to alpha =255 in the Item texture. If you have a differen texture, the edges are similar to the edges of the texture, because they are generated dynamically and are not just a predefined shape. If you just say, well I create a shape like this in 3D, you can't make the shape reacting dynamically if you change the textures alpha.

you mean change the edges of this: Ad8I0TD.png?

I'm always happy to help others!

 

Java is not my main programming language but I have alot experience in PHP/HTML/JS/CSS3/C#/SQL

hmm not really try checking the item renderer src.

I'm always happy to help others!

 

Java is not my main programming language but I have alot experience in PHP/HTML/JS/CSS3/C#/SQL

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.