Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3334170
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T23:52:32+00:00 2026-05-17T23:52:32+00:00

I just started with OpenGL programming and I am building a clock application. I

  • 0

I just started with OpenGL programming and I am building a clock application. I want it to look something simple like this: https://i.stack.imgur.com/E73ap.jpg

However, my application looks very “un-anti-aliased” : https://i.stack.imgur.com/LUx2v.png

I tried the GL_SMOOTH_POLYGON method mentioned in the Red Book. However that doesn’t seem to do a thing.

I am working on a laptop with Intel integrated graphics. The card doesn’t support things like GL_ARB_multisample.

What are my options at this point to my app look anti-aliased?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T23:52:33+00:00Added an answer on May 17, 2026 at 11:52 pm

    Intel integrated videocards are notorious for their lack of support for OpenGL antialiasing. You can work around that, however.

    First option: Manual supersampling
    Make a texture 2x times as big as the screen. Render your scene to the texture via FBO, then render the texture at half size so it fills the screen, with bilinear interpolation. Can be very slow (in complex scenes) due to the 4x increase in pixels to draw.

    Will result in weak antialiasing (so I don’t recommend it for desktop software like your clock). See for yourself:
    antialiasing vs supersampling

    Second option: (advanced)
    Use a shader to perform Morphological Antialiasing. This is a new technique and I don’t know how easy it is to implement. It’s used by some advanced games.

    Third option:
    Use textures and bilinear interpolation to your advantage by emulating OpenGL’s primitives via textures. The technique is described here.

    Fourth option:
    Use a separate texture for every element of your clock.

    For example, for your hour-arrow, don’t use a flat black GL_POLYGON shaped like your arrow. Instead, use a rotated GL_QUAD, textured with a hour-arrow image drawn in an image program. Then bilinear interpolation will take care of antialiasing it as you rotate it.

    This option would take the least effort and looks very well.

    Fifth option:
    Use a library that supports software rendering –

    • Qt
    • Cairo
    • Windows GDI+
    • WPF
    • XRender
    • etc

    Such libraries contain their own algorithms for antialiased rendering, so they don’t depend on your videocard for antialiasing. The advantages are:

    • Will render the same on every platform. (this is not guaranteed with OpenGL in various cases – for example, the thick diagonal “tick” lines in your screenshot are rendered as parallelograms, rather than rectangles)
    • Has a big bunch of convenient drawing functions (“drawArc”, “drawText”, “drawConcavePolygon”, and those will support gradients and borders. also you get things like an Image class.)
    • Some, like Qt, will provide much more desktop-app type functionality. This can be very useful even for a clock app. For example:
      • in an OpenGL app you’d probably loop every 20msec and re-render the clock, and not even think twice. This would hog unnecessary CPU cycles, and wake up the CPU on a laptop, depleting the battery. By contrast, Qt is very intelligent about when it must redraw parts of your clock (e.g., when the right half of the clock stops being covered by a window, or when your clock moves the minute-arrow one step).
      • once you get to implementing, e.g. a tray icon, or a settings dialog, for your clock, a library like Qt can make it a snap. It’s nice to use the same library for everything.

    The disadvantage is much worse performance, but that doesn’t matter at all for a clock app, and it turns around when you take into account the intelligent-redrawing functionality I mentioned.

    For something like a clock app, the fifth option is very much recommended. OpenGL is mainly useful for games, 3D software and intense graphical stuff like music visualizers. For desktop apps, it’s too low-level and the implementations differ too much.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've just started with opengl but I ran into some strange behaviour. Below I
I am trying to get started on opengl programming from the videotutorialsrock.com site. It
Just started learning OpenGL and couldn't find a decent tutorial to get me going.
I am learning OpenGL and just started getting into lighting. I enable lighting and
I've recently started learning programming to make my own 3D OpenGL game on the
Just started getting a bunch of errors on our C# .Net app that seemed
Have just started using Google Chrome , and noticed in parts of our site,
I just started thinking about creating/customizing a web crawler today, and know very little
Have just started using Visual Studio Professional's built-in unit testing features, which as I
I just started using GNU Emacs as my text editor and I am concerned

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.