Jump to content

Iterator

Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by Iterator

  1. Heyo! So I'm trying to code some kind of space planet UI and I need to make some sort of impression that player is orbiting a planet while selecting it.

    What I need to do it is to render a planet texture and then rotate it 90 degrees on Z axis. Didn't find any examples in MC code close to that so that's why I'm asking here.

    Any OpenGL professionals? Any help will be appreciated.

  2. 14 hours ago, V0idWa1k3r said:

    You would need to replicate what GuiInventory.drawEntityOnScreen does but instead of calling RenderManager#renderEntity replicate the code that the method invokes, but after the getEntityRenderObject call cast the resulting renderer to RenderPlayer, then you have the access to the player's model through RenderPlayer#getMainModel. This is your ModelRenerer object.

    Just restore it back to the original stte after you are done rendering.

    Understandable, thanks! It must solve my problem.

  3. Sorry for 9 days of inactivity.

    On 4/21/2019 at 5:45 AM, V0idWa1k3r said:

    Don't rely on OpenGL as the end-all solution. Yes, there is something in OpenGL(not in GL11 though) that can help you, but it isn't going to acheive the result you desire. 

     

    What you can do is simply render the player's model, but disable every part of it apart from the head and it's children(ModelRenderer.isHidden).

    How to access this ModelRenderer? I've seen that it's used in many models (ModelPlayer for example), but how to use this in my case? Hiding all parts of entity except head, armor and item it's holding looks like exactly what I need.

×
×
  • Create New...

Important Information

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