Learning C, Day 24 (Camera Clipping 2)

Today I spent another hour on camera clipping and I’m almost ready to start implementing it. My idea of using dot product to check whether points are inside a plane was correct 🥳. I do have some questions, though. If I’m clipping triangles by creating new vertices, the resulting polygon may not be a triangle. How do I convert the polygon back into triangles? It should be easy if it only has four vertices, but what about five or six? Also, what are the UV coordinates of the new vertices?

I should have answers tomorrow!

Leave a comment

Your email address will not be published. Required fields are marked *


Your data is processed in accordance with my privacy policy. Comments are manually approved and may take a while to appear.