-
Posts
6 -
Joined
-
Last visited
Posts posted by Iterator
-
-
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.
-
-
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.
-
19 hours ago, Cadiboo said:
You could look at the skull TESR code
Well, if I clearly understand the thing - rendering skulls is not exactly what I need, it won't even show the armor.
It'll be better to set some bounds for rendering. Maybe there's something in GL11 that can help?..
-
Greetings, I'm recreating some HUD and I need to render player's head in the specified area.
What I've got now is a piece of code taken from Minecraft's GuiInventory class. It renders the whole player.
SpoilerHowever, I need something like that:
SpoilerSo, is there a way to.. set some bounds, for example, and it will render the entity inside them, but not outside? Thanks.
[1.16] 3D render in a Screen
in Modder Support
Posted
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.