Hay all, I hope this is the right section for this…
I’m currently working on a project and wish to create portals between rooms, something similar to the portals in the game that shares the name (“Portal” by Valve) problem is that I am rather new to Unity and have found myself going in circles.
After diving though the web looking for some kind of tutorial or other material, I’ve found a lot of references to using RenderTextures, but no real guides or instruction on how to actuality use it for “Forces-Perspective” portals.
I have done some experimentation and have the camera movement set up, my issue is that the render texture is rendering the entire camera view, where I need to to render a select region of it.
What I Get -
And what I want -
The gray rectangle is just a quad with a very basic shader that is creating a dead-zone in the main-camera view, and the second camera is just rendered behind it. I want to do this with a rendertexture.
The above method I used is a bit buggy and limited in that if 2 solids are placed behind the surface, it wont render the second camera, and it only allows for the one portal (Unless there is a way for a shader to ‘select’ what camera view is rendered, but I don’t know if that is possible)
If someone able to help me or provide a step-though process on how to do this correctly then that would save me a lot of headache.
Thanks for anything you can offer.