Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • true portals mod
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 2
giacomo986

true portals mod

By giacomo986, September 18, 2014 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

giacomo986    1

giacomo986

giacomo986    1

  • Tree Puncher
  • giacomo986
  • Forge Modder
  • 1
  • 6 posts
Posted September 18, 2014

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.

  • Quote

Share this post


Link to post
Share on other sites

Eternaldoom    110

Eternaldoom

Eternaldoom    110

  • Dragon Slayer
  • Eternaldoom
  • Forge Modder
  • 110
  • 592 posts
Posted September 18, 2014

That's cool, can you post the code?

  • Quote

Check out my mod, Realms of Chaos, here.

 

If I helped you, be sure to press the "Thank You" button!

Share this post


Link to post
Share on other sites

giacomo986    1

giacomo986

giacomo986    1

  • Tree Puncher
  • giacomo986
  • Forge Modder
  • 1
  • 6 posts
Posted September 18, 2014

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

  • Quote

Share this post


Link to post
Share on other sites

WorldsEnder    16

WorldsEnder

WorldsEnder    16

  • Creeper Killer
  • WorldsEnder
  • Members
  • 16
  • 153 posts
Posted September 18, 2014

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 =|
  • Quote

Share this post


Link to post
Share on other sites

KeeganDeathman    11

KeeganDeathman

KeeganDeathman    11

  • Diamond Finder
  • KeeganDeathman
  • Forge Modder
  • 11
  • 434 posts
Posted September 19, 2014

So its like the portal gun mod, but with only portals, and their expandable. yes. Support

  • Quote

[shadow=gray,left][glow=red,2,300]KEEGAN[/glow][/shadow]

Share this post


Link to post
Share on other sites

giacomo986    1

giacomo986

giacomo986    1

  • Tree Puncher
  • giacomo986
  • Forge Modder
  • 1
  • 6 posts
Posted September 19, 2014

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)

  • Quote

Share this post


Link to post
Share on other sites

DjGiannuzz    2

DjGiannuzz

DjGiannuzz    2

  • Tree Puncher
  • DjGiannuzz
  • Members
  • 2
  • 24 posts
Posted September 19, 2014

Have you tried it with a minimap mod?

I saw this type of rendering having issues with minimaps.

  • Quote

Share this post


Link to post
Share on other sites

giacomo986    1

giacomo986

giacomo986    1

  • Tree Puncher
  • giacomo986
  • Forge Modder
  • 1
  • 6 posts
Posted September 19, 2014

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.

  • Quote

Share this post


Link to post
Share on other sites

Jwosty    9

Jwosty

Jwosty    9

  • Creeper Killer
  • Jwosty
  • Forge Modder
  • 9
  • 128 posts
Posted September 19, 2014

Ok, this is pretty freaking awesome. I like it. A lot.

  • Quote

I like to make mods, just like you. Here's one worth checking out

Share this post


Link to post
Share on other sites

_gjkf_    2

_gjkf_

_gjkf_    2

  • Stone Miner
  • _gjkf_
  • Members
  • 2
  • 55 posts
Posted September 19, 2014

IT: Davvero fantastica, complimenti, davvero molto fluido (sembra). Supporto assolutamente.

 

EN: Really fantastic, many compliments, really fluid (it seems). I absolutely support.

  • Quote

"I an atom in the universe, a universe of atoms"-- Richard P. Feynman

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 2
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • dotifo7120
      Do stuff right after login

      By dotifo7120 · Posted 9 minutes ago

      Thank you, works fine 🤗
    • diesieben07
      Do stuff right after login

      By diesieben07 · Posted 24 minutes ago

      Yes, it is server side only. For client-side you can use ClientPlayerNetworkEvent.LoggedInEvent.
    • dotifo7120
      Do stuff right after login

      By dotifo7120 · Posted 29 minutes ago

      Is it only server-side? I tried to use in client and the event wasn't firing. 🙁
    • diesieben07
      Do stuff right after login

      By diesieben07 · Posted 1 hour ago

      PlayerLoggedInEvent
    • dotifo7120
      Do stuff right after login

      By dotifo7120 · Posted 1 hour ago

      Is there an event called when a player enters into the world (fully logged)?
  • Topics

    • dotifo7120
      4
      Do stuff right after login

      By dotifo7120
      Started 1 hour ago

    • T_Jam1
      1
      Windows installer

      By T_Jam1
      Started 1 hour ago

    • Mounty
      3
      Meine Inkompetenz kennt mal wieder keine Grenzen.(Forge 1.16.1)

      By Mounty
      Started 3 hours ago

    • Amperka_pro
      5
      Как применить нбт к предмету.

      By Amperka_pro
      Started 5 hours ago

    • MistyMarshes
      9
      [1.16.4] Get IChunk World / get current World for the overworld.

      By MistyMarshes
      Started 16 hours ago

  • Who's Online (See full list)

    • magn919
    • ChampionAsh5357
    • Bubbabluehorn
    • Maewolf04
    • LexManos
    • Squrikle
    • Oscelot27
    • diesieben07
    • dotifo7120
    • jbredwards
    • Alexalien
    • Forix
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • true portals mod
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community