Rene8888
Members-
Posts
4 -
Joined
-
Last visited
Converted
-
Gender
Undisclosed
-
Personal Text
I am new!
Rene8888's Achievements
Tree Puncher (2/8)
1
Reputation
-
[1.8] [OpenGL] Using a Framebuffer breaks further rendering
Rene8888 replied to Rene8888's topic in Modder Support
I finally fixed it! By using the following command I found out, that in the render loop we don't render to framebuffer object 0, but a diffrent one. GL11.glGetInteger(EXTFramebufferObject.GL_FRAMEBUFFER_BINDING_EXT); Now before I create the framebuffer or bind it get the "default" id that in need to switch back to when I am finished. This fixes the issue. Now i just have to figure out why the drawn texture is not working as expected... -
[1.8] [OpenGL] Using a Framebuffer breaks further rendering
Rene8888 replied to Rene8888's topic in Modder Support
I tried it again with the Minecraft Framebuffer class and with the code in your example. Further rendering still gets broken after I try to render to the Framebuffer. This is how I use it: -
[1.8] [OpenGL] Using a Framebuffer breaks further rendering
Rene8888 replied to Rene8888's topic in Modder Support
Hi! Thanks for your reply and your great blog about Minecraft architecture and informations! I tried using the vanilla Framebuffer helper, but that lead to the exact same issues as with my own try. I tried making my own helper hoping to find the issue. I will look into your example tomorrow! -
Hello! I put together my own FrameBuffer helper class. I want to use it to render shapes to a side if a block. Framebuffer Helper class: Note that not all methods are yes implemented! Usage: I use the FBO in a TileEntitySpecialRenderer to draw to it. After the fbo.unbindFrameBuffer() further rendering is completely broken. I think something is not reset correctly, but I don't know what causes the issue. I can assure you that my custom 2D rendering calls are working fine. I tried them by directly rendering to the side of the block. I also don't know if something is actually rendered to the FBO because if I want to apply the texture afterwards rendering is messed up. The rendering gets broken in the following way: Water doesn't get rendered while looking at the block Item in hand and hand are not rendered while looking at the block Block outline is not rendered while looking at the block A black band appears on horizon (whole time) Here are some screenshots to visualize the issue: The block to get rendered is the light shadow in front of the Dispenser to the left of the hole. System Information: Minecraft 1.8 Forge Version: 11.14.1.1402 Operating System: Debian 8 with Gnome 3 and official Nvidia Drivers