PRB: Antialiased Polygons Not Drawn in OpenGL Antipoly SampleLast reviewed: November 16, 1995Article ID: Q139653 |
The information in this article applies to:
SYMPTOMSThe antipoly sample in OpenGL SDK BOOK directory is unable to draw antialised polygons with the generic implementation of Windows NT and Windows 95 OpenGL.
CAUSEThe 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.
RESOLUTIONThe sample will work if an OpenGL accelerator card is present and additional device pixel formats provided by the OpenGL accelerator card support alpha buffer.
STATUSThis behavior is by design.
|
Additional reference words: 4.00 Windows 95
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |