Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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.

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!

  • 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

But is it recursive, though  8) 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 =|

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]

  • 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)

  • 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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.