Previous | Next --- Slide 22 of 70
Back to Lecture Thumbnails
tplatina

I am wondering about using infinite far clip plane will cause heavy render problem, so does that mean in real use cases we still have far clip plane but we just use infinte form of the perspective matrix which works fine too?

motoole2

@tplatina Not sure if I completely understand your question here, but I'll give this a stab. The choice of using an infinite or finite far clip plane depends on the specific application. A finite clip plane may be useful for a couple reasons:

(1) It offers better depth buffer precision. If possible, it's best to make the difference between f and n as short as possible to avoid any issues with limited precision. If you know scene geometry is always going to be some distance away, might as well choose f to be finite to get the added precision.

(2) Performance! Perhaps you want to set a finite far plane to avoid having to render out a huge number of tiny triangles far away from your camera. Think how many triangles one would have to render in a game like MineCraft, that consists of one giant map. If the far plane were at infinity and you had to render every triangle in the game, it will completely kill performance. Also, the triangles that make up a block in Minecraft will be too small to see anyways if too far from the camera.