I am trying to simulate a vehicle mirror, and having a difficult time with it.
Simply adding a camera that looks behind is not a solution, as there’s no reflection involved. In other words, what appears in the left side of the mirror is actually on the right side of the user. This is quite counter-intuitive and unnatural.
So, my second solution was to render on a cubemap texture, rendering a cube with this texture and then making a camera show one face of the cube. However this does not have the results I was hoping or…
Does anyone have another solution/suggestion on how to achieve a mirror effect?
Does this effort the culling thing? After I set the projection matrix, it seems that the camera is opposite to the normal direction, and things are just rendered back face.
This code does give a proper mirror effect. However the entire terrain in the camera view which the script was run against now looks like water - see attached image.
I’m still having this problem. Without the mirror script, the camera works ok. With the mirror script, everything is mirrored, but the terrain is gone (except the mountains in the distance or the trees etc.).
Anyone having a clue for inverting the cull on a projection matrix please ?
I confess i’d be happy to avoid loosing days diving back to my algebra courses, and i know
it’s only 1 or 2 signs to put here and there.