Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training,
learning paths, books, tutorials, and more.

Implementing an anti-aliased circle geometry

A circle is a very common geometric shape that is widely used across a variety of computer graphics application, such as rendering statistics with pie graphs, drawing sign boards, animating dot patterns, and so on. In this recipe, we will implement an antialiased circle geometry with the help of texture coordinates and make it smoother using the adaptive anti-aliasing technique from the previous recipe.

One way to implement the antialiased circle geometry is to generate a set of vertices along the circumference of the circle, where every two consecutive vertices are connected to the center vertex (origin), creating a triangular slice. Several such slices are required to create the skeleton of the circle, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training,
learning paths, books, interactive tutorials, and more.