Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Enabling multisampling in NSOpenGLView?



Just in case anyone's having the same problem, I thought I'd point out that you can 'fix' the problem by removing NSOpenGLPFAPixelBuffer from the pixel format. Of course, that then means you can't use pixel buffers...

Jon


On 6 May 2005, at 16:31, Jonathan del Strother wrote:
I'm having trouble persuading multisampling to work. I used to have it working in Panther, and sometime between then and now it's stopped. I can't figure out if I changed something in my code to break it, or whether Tiger has some different requirements for setting it up...

Pixel format :

    NSOpenGLPixelFormatAttribute attrs[] =
    {
        NSOpenGLPFAPixelBuffer,
        NSOpenGLPFADoubleBuffer,
        NSOpenGLPFAAccelerated,
        NSOpenGLPFAMultisample,
        NSOpenGLPFASampleBuffers, (NSOpenGLPixelFormatAttribute)1,
        NSOpenGLPFASamples, (NSOpenGLPixelFormatAttribute)4,
        (NSOpenGLPixelFormatAttribute)nil
    };

and enabling in OpenGL:

    glEnable (GL_MULTISAMPLE_ARB);
    glHint (GL_MULTISAMPLE_FILTER_HINT_NV, GL_NICEST);


The documentation mentions that NSOpenGLPFAMultisample will only take effect if the pixel format requires anti-aliasing. How do you do that?


This is on a Radeon 9600, running 10.4.0

Cheers,
Jon
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/maillist% 40steelskies.com


This email sent to email@hidden


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden

This email sent to email@hidden
References: 
 >Enabling multisampling in NSOpenGLView? (From: Jonathan del Strother <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.