Jump to content

[1.11.2] Gui Rendering


abused_master

Recommended Posts

Hey guys, so i need some help with rendering some stuff in my GUI. So my GUI looks like this: https://gyazo.com/f53e95ac6741f05e8dd2c41c4e89e9a1

what my goal is, is to render a block model in the center black area and have it spinning. I should be able to manage getting it spinning but i cant seem to figure out how to render the block like that with custom dimensions.

 

Link to comment
Share on other sites

Define 'custom dimensions'. If you just want to scale your model use GlStateManager::scale. If you want the rendered block to be 3d - it already is, guis just disable lighting when rendering items so it looks flat.

You can render a block/item model using RenderItem::renderItem. Use the overloaded method that suits your needs.

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.