- Home /
Orthographic Camera
I'm creating a map that people can go around - I've made the zoom work like I wanted but noticed a small issue. Is Camera Orthographic mode rectangular and not square? I have a square map, and would like a square camera (and from what I understand orthographic draws a square double the size of the number you put in the size input). When I zoom my map to maximum size though, the map shows edges on each side - like the map was a rectangle (while being 200 by 200 pixels) or like the camera was a rectangle (despite orthographic being a, I assume, a square).
Anyone have this problem before?
Answer by Eric5h5 · Jul 04, 2011 at 05:00 AM
Orthographic doesn't have anything to do with anything being square, and it doesn't have anything to do with pixels; it's just a projection matrix. If you want to change what amount of the screen is drawn by a camera, change the normalized viewport rect. Keep in mind that you have to account for different screen aspect ratios, and that if the camera doesn't fill the screen, what's outside is undefined unless filled by another camera underneath. See AspectRatioEnforcer for a way to handle this.
Answer by Macdude2 · Jul 04, 2011 at 03:58 AM
You could always resize the near and far clipping planes of your camera if you cannot figure out how to make a the default one square.
Changing clipping plane values doesn't have any effect on the aspect ratio of a camera.
Your answer
Follow this Question
Related Questions
A node in a childnode? 1 Answer
Smooth Follow Camera Rotate on Z-Axis? 2 Answers
Build iOS Screen Shot function using Unity 0 Answers
Making a camera list 1 Answer