I’m trying to simulate the behavior of “Command Conquer” where I have a main map and a minimap in the corner. I created the secondary “minimap” camera and I have it’s Normalized View Port Rect set to be a square in the lower righthand corner. I want the camera to display the whole of a 100x100 map. (This camera shouldn’t move. It’s just basically a consistent overhead view.) I’ve got it rotated 90 degrees and aimed centered above the map. Unfortunately, the Field of View is rectangular. The results also seem dependent on the far clipping plane, which seems odd to me. (A lower far-clipping plane actually shrinks the Field of View box.) Help would be appreciated.
Couldn’t you mask that cameraView with a 100x100 mask?
I fail to see how masking helps. Doesn’t masking hide layers? I’m not trying to hide a layer. I’m trying to resize or position the minimap camera such that I have a square overhead view of the main playing screen at all times within the main screen. I already have the minimap displaying just fine. It’s just showing a rectangular view within the square box, instead of a full square view within the square box.
You mean like this:
var mapSize = new Vector2(100,100);
var rect = new Rect((Screen.width - mapSize.x) / Screen.width, (Screen.height - mapSize.y) / Screen.height, mapSize.x / Screen.width, mapSize.y / Screen.height);