i like portale style games , this method i tried to create it before but i stuck in views , i do all calculation for the mouvement exept the views i get problem in it .
i think the view need special shader smirk

This is what i did before :


so the camera portal 1 it move and rotate a l aid of player view .

i ask Rackscha before about the method and this what he say :
Originally Posted By: Rackscha
visual:
cameras are not rendered on a entity texture. entity renders a special color into the buffer for a screenshader to replace these pixels with the camera

the camera needs to keep an eye on the player and stay on the same line as the portal. so it moves along it.

and it is required to translate a relative point from one portal to another. which means making a position relative to a portal, rotating it back, then rotating it by the other portal and making it absolut again. Sabe goes for rotations