vlad2305m / Anaglyph-fabric

3d for Minecraft
Other
5 stars 1 forks source link

Side By Side 3D #6

Open WaveSmashies opened 7 months ago

WaveSmashies commented 7 months ago

It seems you haven't updated this mod in a while lol. I'd love to get a response. I'd like a SBS mode to be added to this mod if you wouldn't mind looking into it. SBS or Side By Side 3D is easy to use with a VR headset using Virtual Desktop. Virtual Desktop does support Red-Blue 3D, however I couldn't adjust the settings in a way that made it fully work. Half SBS (HSBS) or Full SBS (FSBS) support would be incredible. I'd honestly love to play Minecraft in 3D with my VR headset. I enjoy Vivecraft, but sometimes I just want 3D lol.

vlad2305m commented 7 months ago

Thanks for the interest. I'll look into the render code again. It should be possible to do at least FSBS, but it's going to take me some time

vlad2305m commented 7 months ago

I just can't get viewport to work. It doesn't want to be the size I tell it to be. If you know any other projects that render the world in a specific part of the screen, I might be able to steal the code from there. Otherwise right now I don't know GL well enough to understand wtf is going on with it

tezvii commented 6 months ago

just leaving a comment to say i've been looking for an HSBS rendering mod that works on new versions for ages and this would be really cool to experience again after 15 years

AlwaysReadyWBY commented 4 months ago

I think I figured out why viewport isn't working. When renderworld is invoked, the game renders the solid blocks in a framebuffer, and then renders the frame buffer to the screen. After that the game renders translucent blocks, blockentities and entities over it. So if you invoke viewport before renderworld, it only works on the framebuffer.

vlad2305m commented 4 months ago

Cool. I'm busy for the next few months, so, @AlwaysReadyWBY, if you can figure anything out, feel free to fork and play around. I pushed my progress to trying-sbs. It's just that framebuffer size+viewport tweak away from a perfect world SBS. GUI is still TODO, but should be much easier