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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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