Posted September 18, 201411 yr 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.
September 18, 201411 yr That's cool, can you post the code? Check out my mod, Realms of Chaos, here. If I helped you, be sure to press the "Thank You" button!
September 18, 201411 yr Author 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
September 18, 201411 yr But is it recursive, though great work, don't quit pls - to detect where to render i used opengl stencil functions, where do you do that and how? (exact source would be a good start) I didn't understand stencil functions, really =|
September 19, 201411 yr So its like the portal gun mod, but with only portals, and their expandable. yes. Support [shadow=gray,left][glow=red,2,300]KEEGAN[/glow][/shadow]
September 19, 201411 yr Author 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)
September 19, 201411 yr Have you tried it with a minimap mod? I saw this type of rendering having issues with minimaps.
September 19, 201411 yr Author Have you tried it with a minimap mod? I saw this type of rendering having issues with minimaps. I haven't because it isn't finished.
September 19, 201411 yr Ok, this is pretty freaking awesome. I like it. A lot. I like to make mods, just like you. Here's one worth checking out
September 19, 201411 yr IT: Davvero fantastica, complimenti, davvero molto fluido (sembra). Supporto assolutamente. EN: Really fantastic, many compliments, really fluid (it seems). I absolutely support. "I an atom in the universe, a universe of atoms"-- Richard P. Feynman
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.