-
Storing last 20 frames of display
Hey there, I am trying to store the last 20 frames of the display using FrameBuffer currently I am storing them in a queue. if frame queue is more than 20, will remove first queue every tick and every tick it will add a FrameBuffer from (Minecraft#getFrameBuffer) When I want to get last second of footage, I render every FrameBuffer using this method private synchronized static BufferedImage getImageFromFrameBuffer(Framebuffer buffer, int width, int height) { int k = buffer.framebufferTextureWidth * buffer.framebufferTextureHeight; if (pixelBuffer == null || pixelBuffer.capacity() < k) { pixelBuffer = BufferUtils.createIntBuffer(k); pixelValues = new int[k]; } GL11.glPixelStorei(GL11.GL_PACK_ALIGNMENT, 1); GL11.glPixelStorei(GL11.GL_UNPACK_ALIGNMENT, 1); pixelBuffer.clear(); GlStateManager.bindTexture(buffer.framebufferTexture); GL11.glGetTexImage(GL11.GL_TEXTURE_2D, 0, GL12.GL_BGRA, GL12.GL_UNSIGNED_INT_8_8_8_8_REV, pixelBuffer); pixelBuffer.get(pixelValues); TextureUtil.processPixelValues(pixelValues, buffer.framebufferTextureWidth, buffer.framebufferTextureHeight); BufferedImage bufferedimage = new BufferedImage(width, height, BufferedImage.TYPE_4BYTE_ABGR); int l = buffer.framebufferTextureHeight - buffer.framebufferHeight; bufferedimage.setRGB(0, 0, width, height, pixelValues, l*buffer.framebufferTextureWidth, buffer.framebufferTextureWidth); return bufferedimage; } But the output frames is not the one I expected, it renders 20 seconds forward not backward that I stored in the queue, is this problem with how i render framebuffer or anything? Help would be appreciated SRC: https://github.com/HypixelCommunityClient/HCC/tree/master/src/main/java/com/hcc/mods/capturex (Licensed under GNU AGPLv3) - Cubxity
-
Forge versions list for custom minecraft launcher
Why is it not allowed to make a custom launcher that needs you to put credentials?? There is tons of launcher and Minecraft does not do anything with it like Technic, FTB Launcher, MultiMC and much more
-
Forge versions list for custom minecraft launcher
Hey! I am planning to make my own minecraft launcher that has Forge installer built in which you can choose forge version and the launcher installs it for you, Is there any api or something that I can check list of versions and get the forge and install it from my launcher?
-
MCP Recompile Failed
What forum I can go to? Spigotmc? or what
-
MCP Recompile Failed
im making modifications directly to client. Im not making mod. + 1.8.8 is gud for pvping
-
MCP Recompile Failed
i editted Xms and Xmx value for fernflower using Notepad++
-
MCP Recompile Failed
I have tried deleting and decompiled again. When I was setting up forge it works fine tho. set encoding to Cp1252? how?
-
MCP Recompile Failed
Hi there, my MCP failed to recompile Minecraft version 1.8.8, I am running Windows 10 64 bit here is the log Could anyone help me find out the problem thanks.
IPS spam blocked by CleanTalk.