Jump to content

best way to do a pie timer?


Le Twitch
 Share

Recommended Posts

I don't think there is an ultimate "best" way, instead it depends heavily on your situation and your criterion.

 

One of the fastest approaches for the webgl renderer might say be a dynamically created triangle fan of up to 6-8 triangles for a full circle (and less for partial pies) textured with a bitmap image of the full circle, and drawn with a call directly to drawElements(). You can add a quad along the diagonal edge of the mouth of the pie, of about 1px width if you want to fake antialiasing, just vary the opacity of the vextex colors from 100% for the vertices on the edge touching the mouth, and 0% for the vextices 1px away...

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...