PRB: Antialiased Polygons Not Drawn in OpenGL Antipoly Sample
Article ID: 139653
Article Last Modified on 7/11/2005
APPLIES TO
- Microsoft Platform Software Development Kit-January 2000 Edition, when used with:
- Microsoft Windows NT Server 3.51
- Microsoft Windows NT Server 4.0 Standard Edition
- Microsoft Windows NT Workstation 3.51
- Microsoft Windows NT Workstation 4.0 Developer Edition
This article was previously published under Q139653
SYMPTOMS
The antipoly sample in OpenGL SDK BOOK directory is unable to draw
antialised polygons with the generic implementation of Windows NT and
Windows 95 OpenGL.
CAUSE
The technique used in this sample uses alpha values rather than depth
values to determine what to write to the color buffer. You need to first
turn off the depth buffer, choose the (GL_SRC_ALPHA_SATURATE, GL_ONE) blend function, and then draw polygons from front to back. But the generic Windows NT and Windows 95 OpenGL implementation does not provide alpha buffer. The cAlphaBits field of the pixel format descriptor for all generic pixel formats is 0.
RESOLUTION
The sample will work if an OpenGL accelerator card is present and
additional device pixel formats provided by the OpenGL accelerator card
support alpha buffer.
STATUS
This behavior is by design.
Additional query words: 4.00 Windows
Keywords: kbprb KB139653