09-26-2006, 08:49 AM

Hi everyone,

I'm confused about how clipping occurs using clip coordinates. For example, take these two points in clip coordinates:

p0 = -642.714 189.487 1061.82 1134.37

p1 = 557.522 -3335.33 -102.387 -1.09302

Suppose these to points are the endpoints of a line.

According to the opengl spec, points are clipped to a space that -wc lessequal cx lessequal wc (and similar for y and z).

The confusion in my mind is dealing with two points, like the ones above which have different wc values. How is that case handled ?

I'm confused about how clipping occurs using clip coordinates. For example, take these two points in clip coordinates:

p0 = -642.714 189.487 1061.82 1134.37

p1 = 557.522 -3335.33 -102.387 -1.09302

Suppose these to points are the endpoints of a line.

According to the opengl spec, points are clipped to a space that -wc lessequal cx lessequal wc (and similar for y and z).

The confusion in my mind is dealing with two points, like the ones above which have different wc values. How is that case handled ?