Discuss Scratch

secretagent123
Scratcher
1000+ posts

Z clipping.

Hello all,
How do I make Z clipping on my 3D engine.
Thank you.
Secretagent123
superM38
Scratcher
11 posts

Z clipping.

Greg8128
Scratcher
500+ posts

Z clipping.

For every 3D line segment, if one point is behind the near clipping plane, then replace it with the point where the segment intersects the near clipping plane. The process is similar for triangles, but somewhat more complex because you might end up with a quadrilateral, in which case you need to split it into two triangles.
secretagent123
Scratcher
1000+ posts

Z clipping.

Greg8128 wrote:

For every 3D line segment, if one point is behind the near clipping plane, then replace it with the point where the segment intersects the near clipping plane. The process is similar for triangles, but somewhat more complex because you might end up with a quadrilateral, in which case you need to split it into two triangles.
Thanks.

Powered by DjangoBB