Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Game Development How to Make a Video Game The Unity Editor and Scene Setup Setup the Camera

Ranvir Sahota
Ranvir Sahota
9,844 Points

Near setting

Correct me if I'm wrong but near is the distance from the camera to start rendering objects and far is where to stop. All object within that range on all sides of the camera will be rendered. If so why is near set to 0.3 surely it would be better to set it to 0 so it can render everything between 0 to 0.3?

1 Answer

Nick Pettit
STAFF
Nick Pettit
Treehouse Teacher

Hi Ranvir,

Great question! You can think of the near clip plane as a surface that images are projected onto. Then, that image is resized for your computer monitor. If the plane were at 0, the camera frustum would no longer be a frustum really, just a pyramid, and the image would just be a single point. In fact, Unity doesn't even allow you to put in a value of 0 for this reason.

That said, it's still a good idea to leave the near clip plane as high as possible. The reasoning is a bit advanced, but basically it improves the floating point precision of the camera's depth buffer, which is used in many parts of the graphics pipeline.