Jump to content

OpenGL overlay rendering help


BigDaveNz

Recommended Posts

Hello all,

 

Recently someone helped me override the vanilla HUD, and its working great, however i got stuck again. I'm recreating the classic vanilla hotbar, except it has quite a few tweaks. Basically, If the item is the current selected item, it renders rotating. Otherwise it renders static.

 

I need help on a couple of things.

 

-How do I decide to render the ItemStack as a item or a block?

-How can I render a 3D item (like when an item is dropped ingame)

 

I can render a 3D Block and rotating 3D Block already

The difference between stupidity and genius is that genius has its limits. - Albert Einstein

Link to comment
Share on other sites

Thanks for the reply, I'd seen you tutorials when browsing but obviously didn't look at them close enough. My HUD overlay cancels the onRenderGameOverlay event, and draws my hud instead. Therefore I was confused as to whether or not I could use certain vanilla minecraft rendering functions. Or whether I had to code from scratch. But I think with the help of your tutorials and browsing some more vanilla code especially ItemRenderer and RenderItem, I should start to get an understanding of what I need to do. It's midnight so I'll have a look tomorrow. I'll get back to you if I get stuck. Thanks again

The difference between stupidity and genius is that genius has its limits. - Albert Einstein

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.



×
×
  • Create New...

Important Information

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