Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Z clipping.
- secretagent123
-
1000+ posts
Z clipping.
Hello all,
How do I make Z clipping on my 3D engine.
Thank you.
Secretagent123
How do I make Z clipping on my 3D engine.
Thank you.
Secretagent123
- Greg8128
-
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
-
1000+ posts
Z clipping.
Thanks. 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.
- Discussion Forums
- » Help with Scripts
-
» Z clipping.