I'm reading the dependencies of minecraft forge 1.8 and I see that when the display is created there isn't stencil buffer.
Stencil buffer was in 1.7.10, but i can't find it in 1.8.
Can anyone help me?
ok, i'll try to finish it and i'll release the code.
i'll be not so fast because my real job is to be a farmer (not joking) so i have to code in my free time (like most of the people here)
ok, i'm posting the code.
https://github.com/giacomo986/trueportals
This code is uncommented but I'll try to explain here:
- the area is rendered multiple times.
- to render again the world i cloned some render function.
- to detect where to render i used opengl stencil functions
the best thing in that the portal works for all entity in game like mob or arrows.
If you need more explanations, ask here because it takes me a lot of time to write down all comments of the code
Hello everyone,
I was writing a mod for true portals in minecraft and I made a video of that:
I'm posting an incomplete work because I'm tired to fight against minecraft rendering and I'm waiting for 1.8 to see if it will be easier to code.
If there are people interested in how it works, I'll share and comment the code.