This script allows you to easily create seamless portals in your games.
This is great for creating more fluid gameplay as well as making your game look cool.
There is minimal setup required to get the portals working but there are configurable settings for a more versatile system.
You can apply a mask and background texture to your portals if you would like to overlay an effect, such as a border or window panel effect
On top of this you can disable teleporting for the portals so that they are just âwindowsâ into the other world that cannot be walked through.
The portals can be configured to teleport:
-The player camera
-The player cameraâs parent
-An arbitrary GameObject which can be used as reference for more complex player controllers for more info on this, check the documentation
As well as the documentation, you can hover over any of the settings in the configuration panel and a tooltip will give you short description of what that setting is for.
For examples of how this tool can be used, check out the included screenshots and video.
Asset Store Link: Here
And here is a little video to show the sort of things that can be done
By AR I assume youâre talking about the issue of having two cameras.
If thatâs the case then yes it is possible but you will need to have two sets of portals - exact duplicates but with each set configured and visible to only one camera/eye.
Hope that makes sense, if not I can help more
So you would want a portal to render in the camera view as though it would be there in real life, but what would you want to render inside the portal?
The portal is just a cube/plane with a fancy texture so if you want a portal to gameworld that renders as though it was in the realworld (via a camera) then yes that should be possible
Yeah I would say that is definitely possible, if you have a simple AR demo setup you could send me I could add in the portal to test and show you first, or alternatively I would be happy to refund you if you bought it but couldnât get it to work for your purpose
Hi sorry for the late reply, The portals could potentially be created and removed with a script.
Thinking about how theyâre setup, you may have an issue if you have more than one pair of portals (but only if they can âseeâ each other, otherwise should be fine)
The portals can be moved and they will continue to work
I strongly second this. Every project I find with seamless portals (that still works) doesnât support VR, and contains descriptions on how to modify the existing setup to achieve it, which they say is âeasy.â
Iâm not a new dev, but Iâm fairly new to VR. Multiple cameras, frustrums and rendering to single âeyesâ never seem to work correctly when I try to set them up for my Vive.
Another thread just brought up the idea of non-Euclidean levels. Could you do that sort of thing with this asset? I assume the 3-rooms-connected-as-if-they-were-4 trick is pretty easy, but what about things like scale transformations?
Also⌠a lesser issue, but: this portal is double-sided. All my portal needs are single-sided. That is, I should see and be able to use the portal when I approach from (say) the south, but if I approach it from the north, I donât see it and it shouldnât bother with its offscreen rendering.
Any idea how I could go about making these one-sided?
First up, just to let you know that the best way to contact me is by emailing me at josephpatrick2013@hotmail.com as I donât always check the forums too often
So thanks for buying the asset, while you currently cannot link more than two portals together, you should be able to have multiple pairs of portals, you will just need one PortalConfig script for each pair - though you may find each pair needs itâs own material.
The portals are double sided by choice by using flat cubes, if you would like single sided then just use planes instead.
Really like this asset and have been able to easily set up multiple portals to move around the world. I have been trying to use this asset for a VR game but there are some issues with the camera. It is related to the question about VR/AR above and the configuration with duplicate portals.
â
Looks good!
Can this asset be used in an AR setup?
By AR I assume youâre talking about the issue of having two cameras.
If thatâs the case then yes it is possible but you will need to have two sets of portals - exact duplicates but with each set configured and visible to only one camera/eye.
Hope that makes sense, if not I can help more