Posted May 16, 201510 yr Hey Guys, is there any way to render the player's view upside down? I tried to do it with screenshots which were rendered upside down on top of everything but all in all that was do slow and buggy (which i actually was sure about before I even tried ) thanks in advance enbecko
May 20, 201510 yr Author I tried to render the player's view upside down and I thought doing it via screenshots was a good idea, but it isn't
May 20, 201510 yr Well, there is a super secret setting for this ! Look what you can get from this: if (GLContext.getCapabilities().OpenGL20 && OpenGlHelper.areShadersSupported()) { Minecraft.getMinecraft().entityRenderer.activateNextShader(); } I can't help you more, because I'm struggling too with those damn shaders ! I hope you'll find a solution, because I need that solution.
May 20, 201510 yr You may be able to push and pop some GL11 transformation using render events. Like in a pre-render event push matrix, do a transform that rotates by 180, then pop the matrix in post-render? I haven't tried such a thing, but seems like maybe the right direction to try. Check out my tutorials here: http://jabelarminecraft.blogspot.com/
May 20, 201510 yr I found it ! [code load = EntityRenderer.class.getDeclaredMethod("loadShader", ResourceLocation.class); load.setAccessible(true); load.invoke(Minecraft.getMinecraft().entityRenderer, new ResourceLocation("shaders/post/invert.json")); You'll have a lot of try/catch to do but it works.
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.