What kind of numerical stability issues would occur if we did this after the perspective divide?
chenruis
Really get a little confused in 3D triangle clipping. There are too many edge cases that is very difficult to enumerate, and I can't think of a method effectively solve all of them.
mateib
Really get a little confused in 3D triangle clipping. There are too many edge cases that is very difficult to enumerate, and I can't think of a method effectively solve all of them.
If you clip each axis separately, triangle clipping becomes a lot easier, you don't need to deal with all the corner cases. I spent a while trying multiple things until I came to this conclusion.
Gru
Would you clip triangles that exist only on the edges and beyond of a unit cube?
This step is the most confusing one.
Very fair, especially with per-vertex w values.
Yeah this is tricky
What kind of numerical stability issues would occur if we did this after the perspective divide?
Really get a little confused in 3D triangle clipping. There are too many edge cases that is very difficult to enumerate, and I can't think of a method effectively solve all of them.
If you clip each axis separately, triangle clipping becomes a lot easier, you don't need to deal with all the corner cases. I spent a while trying multiple things until I came to this conclusion.
Would you clip triangles that exist only on the edges and beyond of a unit cube?
This one was definitely tough
Still having difficulties with this one
Even more confused with w involved