Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

[WIP][Almost released] Seamless portals (that also work in VR!)

Discussion in 'Works In Progress - Archive' started by MCudlitz, Nov 18, 2016.

  1. MCudlitz

    MCudlitz

    Joined:
    Oct 22, 2016
    Posts:
    85
    Hello there! I've been working on this over the last couple of weeks, and it's nearly done.
    I noticed that there was nothing on the asset store for VR portals (let alone seamless ones), and the portal assets that were on the store were "jumpy" or let you hit the clipping plane with your face. There was also no documentation on the number of issues that come around when making Virtual Reality enabled portals, so I decided to do some research and come up with a working solution that I can share with you fine folks on the asset store.

    Features:
    • Seamless transitions between portals
    • Absolutely no "fudging", if you enter a portal you do not end up slightly in front of the exit
    • Portals support multiple levels of detail and reduction in quality for lower end computers
    • Portals have an option to act as if they were the same size and orientation as one another, allowing you to walk into a large portal and come out of a small one at an appropriate size. This also works for walking into a portal and coming out on a wall (this all can be disabled)
    • Will come with an easy VR movement script and mesh animation controller that lets you simply drop in a new avatar and model to change the player's model. These both, again, work at any orientation (Credit to Railboy for providing the base for the character controller, although it had to be heavily modified for orientation fixes)
    • Portals do not render if they are not visible, even if you are "looking" at them through a wall (this one was a pain, as unity does not have occlusion checks available)

    It's not quite complete(almost!), but here's what we a have so far:
    Basic screenshots (crosseye 3d)



    Portals can be entered halfway and closely inspected, and no visual bugs will develop


    Portals of various sizes will result in resizing of the character, and changing orientation will do the same (if a portal's "down" is on a wall, then "down" to the player will be that direction. this can be disabled)


    Portals can be of any size or shape:



    Questions or comments? Feature requests before it hits the asset store? Ask 'em here!
     
    Last edited: Nov 19, 2016
  2. daniel_freiburger

    daniel_freiburger

    Joined:
    Jan 16, 2014
    Posts:
    2
    That looks awesome.
    Can't wait to test it in VR...
     
  3. MCudlitz

    MCudlitz

    Joined:
    Oct 22, 2016
    Posts:
    85