PDA

View Full Version : Eye vs. Clipping Space

dvwood
02-19-2009, 02:54 PM
I am not entierely sure i understand the difference between eyespace and clippingspace.

I would say eyespace is the space you see through the camera, wherein all visible space is defined by the pyramid/frustum coming out of the camrea.

While clipspace is the NDC-box, that gives the perspective effect when you look at the screen. Or how is this understood??

Help is much appreciated!

Dark Photon
02-24-2009, 08:08 AM
I am not entierely sure i understand the difference between eyespace and clippingspace.

I would say eyespace is the space you see through the camera, wherein all visible space is defined by the pyramid/frustum coming out of the camrea.

While clipspace is the NDC-box, that gives the perspective effect when you look at the screen. Or how is this understood??

See This and previous page (http://books.google.com/books?id=H4eYq7-2YhYC&pg=PA22&lpg=PA22&dq=eye+clip+ndc+space&source=bl&ots=q9XFpR05TZ&sig=Kg319hw-V1ehD4a3SXexEqC0rfE&hl=en&ei=rgukSfe0H4qhtwek99nSBA&sa=X&oi=book_result&resnum=1&ct=result)

You've got the eye-space concept.

Clip space is not the NDC box. It is the 4D space that clipping occurs in. It is your eye space after the projection transform warp has been applied to it. If your projection is perspective, think of Clip space as an orthographic warp of your eye-space perspective frustum (| | vs. \ /), where perspective foreshortening has been accounted for. However it is still 4D so we don't have any nasty singularities created by perspective divides. That's why clipping occurs here.

NDC space is 3D (the -1..1 XYZ box you refer to). Clip space + perspective divide = NDC space. After we've clipped, it's safe to divide as nothing has Z=0.