I am creating a mirror with a ViewportFrame and i am using a camera for it. I want the POV to be flipped like a mirror instead of seeing the player on the opposite side of the mirror where it shouldn’t be.
Ive looked for anything that would let me flip the ViewportFrame or the camera but nothing worked. Even setting the CanvasSize of the screenGui just makes it disspear.
I can’t properly test my code to make sure the mirror functions until i figure out how to fix this. Ive seen a game called Tunneler by Homade_Meal which is a portal spinoff which contains these, So i know its possible.
Maybe you can manipulate the camera’s CFrame rotation matrix in such a way that drugs the rendering engine? Not sure if it works for viewport frames, all I know is that it works for the actual ingame camera rendering. However, it does also cause the normals to be inverted as well which makes it look funny:
I forgot the original source for that demo, but here’s the place file that was saved on my PC: camera distortion.rbxl (266.8 KB)
Side note about the inverted normals, perhaps it can theoretically be fixed by making all of your parts meshes and then turning on double-sided rendering in the properties (???)