Antialiasing on SDK 3.2

This topic contains 6 replies, has 2 voices, and was last updated by  Slion 4 years ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #31549

    Slion
    Member

    Is antialiasing supposed to work on Windows 7 host with some NVidia GTX 460?
    Can’t get it to kick in 🙁

    #38227

    chris
    Moderator

    Antialiasing should work with most cards. In your application you just need to select an appropriate EGL config by setting EGL_SAMPLE_BUFFERS and EGL_SAMPLES.

    If you are using PVRShell or running the examples provided with the SDK, this is done automatically, but you need to pass an additional command line option to specify the number of samples to use.

    For example, for 4 samples:
    OGLES2FilmTV.exe -aasamples=4

    #38228

    Slion
    Member

    Ok it works if you request an antialiased config the first time you initialize EGL.
    It won’t work if you init EGL first without antialias and during the life time of you application reinit EGL with an antialiased config. The proper config is returned by eglChooseConfig but antialias won’t kick in.

    I observed that behaviour on a Windows 7 machine.

    #38229

    Slion
    Member

    The opposite is also true. If you init first with antialias then you can’t disable it. Maybe I need to delete my HWND on top of reinitializing EGL.

    #38230

    chris
    Moderator

    Hi Slion, sorry for the delay. I’m going to see if I can reproduce this issue here. It sounds like you have found a bug in the emulator.

    #38231

    chris
    Moderator

    Hi Slion,

    I’ve been investigating and it looks like you will need to recreate your window each time you change the framebuffer configuration. Sadly it’s not possible to set the pixel format of a GDI window more than once so an internal error will occur inside eglCreateWindowSurface if you pass in a HWND which you’ve already used. I’ll update the emulator to report an appropriate EGL error in this case.

    Hope this helps clear things up a bit!

    #38232

    Slion
    Member

    If I recall well the MALI emulator somehow managed to get this working.

Viewing 7 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic.