Jump to content

[1.8] Custom Item Inventory Rendering


FreneticFeline

Recommended Posts

I would like to do some custom overlay rendering on items in the inventory.  In fact, it is very similar to this tutorial here http://www.minecraftforge.net/wiki/Custom_2D_Inventory_Item_Renderer.  However, that tutorial appears to be for 1.7.x, and a lot of what that tutorial is doing has been removed or is deprecated in 1.8.  How can this be done in 1.8?  I just need a pointer in the right direction, and I should be able to work the rest of it out for myself.

 

Link to comment
Share on other sites

IItemRenderer is deprecated as of 1.8.

 

In 1.8 everything has been replaced by pregenerated models or combination of them which can also be easily rotated/moved around. Goal is use cached models instead of rendering everything "on run" with GL.

 

Now - if you need custom rendering you will need ISmartItemModel which has tutorial here:

https://github.com/TheGreyGhost/MinecraftByExample/tree/master/src/main/java/minecraftbyexample/mbe15_item_smartitemmodel

(assets included in their directory).

 

Note that there are a lot more model interfaces that can be used to archieve probably anything you want. Only way to learn true power of 1.8 rendering is to sit, analyse and code for hours.

1.7.10 is no longer supported by forge, you are on your own.

Link to comment
Share on other sites

 

Thanks, I have spent quite a bit of time with those tutorials.  I have rendered many items as described there.  It doesn't address my current situation.

 

Now - if you need custom rendering you will need ISmartItemModel which has tutorial here:

https://github.com/TheGreyGhost/MinecraftByExample/tree/master/src/main/java/minecraftbyexample/mbe15_item_smartitemmodel

(assets included in their directory).

 

Note that there are a lot more model interfaces that can be used to archieve probably anything you want. Only way to learn true power of 1.8 rendering is to sit, analyse and code for hours.

 

I am aware that item rendering has changed quite a bit in 1.8, and so far I have avoided doing any GL rendering directly.  I have in fact sat and analyzed code for hours already ;).  I will spend some time with ISmartItemModel to see if that will allow me to do what I want.

 

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.