I have a challenge for you graphics peeps. Let's have a thread about it. I'm emulating a GPU that can draw points, lines, triangles, and quads. All are specified with four points, but some are coincident for lower-order shapes. There is no guaranteed order for the points. [1/?]
Given an arbitrary set of four points, for which the only known criteria is the screen-space coordinates and that they'll form a convex polygon (or line or point), there are several things that I need to be able to determine. [2/?]
-
-
A) Determine the shape's order (point, line, triangle, quad). B) Order the verts in a way such as to form horizontal spans that can be walked up or down. C) Calculate edge deltas such that horizontal spans can be filled during said walk. Any ideas, folks?
Näytä tämä ketjuKiitos. Käytämme tätä aikajanasi parantamiseen. KumoaKumoa
-
Lataaminen näyttää kestävän hetken.
Twitter saattaa olla ruuhkautunut tai ongelma on muuten hetkellinen. Yritä uudelleen tai käy Twitterin tilasivulla saadaksesi lisätietoja.