abused_master Posted May 26, 2017 Posted May 26, 2017 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. Quote
V0idWa1k3r Posted May 26, 2017 Posted May 26, 2017 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. Quote
abused_master Posted May 26, 2017 Author Posted May 26, 2017 ah wow that was surprisingly easy, thanks Quote
Recommended Posts
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.