3
\$\begingroup\$

I'm a new comer to Unity. In Unity, when I click to main camera in Hierarchy view. I see 6 lines: one blue, one red, one green and three white. I know red/green/white lines for (x,y,z) location but I don't know what the meaning of 3 white lines is.

When I resize scene view I see that white lines change respectively. And at some points, three white line same with three color line as image below:

enter image description here Please explain for me. Thanks :)

\$\endgroup\$
2
  • \$\begingroup\$ don't know if you just misspoke or didn't notice them in the picture, but there are 4 white lines, not 3 :P \$\endgroup\$
    – jhocking
    Sep 2, 2014 at 16:15
  • \$\begingroup\$ @jhocking ah. yes. 4 lines :D just because i think "white lines" have some relationship with three color lines, so my brain works as 3 lines :D \$\endgroup\$
    – hqt
    Sep 2, 2014 at 17:06

1 Answer 1

5
\$\begingroup\$

The white lines are the view frustum of the camera. It shows what is within the camera's field of vision.

The frustum can be thought of as a pyramid, with the point oriented at the camera, and the flat rectangular base pointing outwards.

This representation of a camera in virtual space is common to many 3D programs and discussions of virtual 3D space in general. In some discussions of the frustum, you will see it depicted as a trapezoidal prism (think pyramid, but with the tip cut off) because in virtual space, the camera doesn't always see all the way to the horizon (that could get very inefficient).

Thus, you get a "far clipping plane" which forms the base of the pyramid and excludes things that are too far away, and the "near clipping plane" which cuts off the tip of the pyramid, and excludes things that are too close.

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .