Render 360

Render 360

23.5k Downloads

Does not work with Optifine Shaders

theminecoder opened this issue ยท 4 comments

commented

Wanted to try and run this with shaders for a really nice 360 experience but due to the render of this taking priority over shaders all the parts of the screen that would be rendered by this just show up as black/white.

Tested with latest optifine version & version 2.5.5 of the mod.
Shaderpack is Silders Vibrant Shaders v1.153 High

Side note that may help: log spams output of GL Error 0x0501: Invalid value at copy shadow depth

commented

I've found the issue. Optifine and Render360 overwrite the same class. I'll look at providing a fix, but it might take a while.

commented

Any update on this?

commented

When I started writing this mod, it was designed for vanilla Minecraft. Optifine changes a few things from the vanilla code, so I created a small patch to handle these changes. Because most of the changes that were relevant to me were just changes in the location of the code, it was not too difficult to manage.

The 360 degree projection is implemented is by creating a new framebuffer, then pointing Minecraft's rendering engine to that framebuffer and telling it to render normally. The render is done 6 times with 6 different directions, and 6 different textures on the framebuffer. When this is done, the output is reverted to the standard framebuffer, and a shader combines the 6 images into 1.

It would appear that shaders use their own framebuffer (or something similar) so just pointing it to my framebuffer does not work as intended. To fix this, I need to understand how the shaders are implemented, and write custom code to support them.

I am also concerned about the frame rate. Using Shaders (without Render360) causes low frame rates. I am concerned that rendering with shaders 6 times will cause single digit frame rates. @shaunlebron has been investigating ways to improve the frame rate without losing too much quality. Render360 is likely to be merged into flex-fov.

I will attempt to keep you updated on any progress with shaders.

commented

Closing due to inactivity