PRB: Antialiased Polygons Not Drawn in OpenGL Antipoly Sample

ID: Q139653


The information in this article applies to:


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          : kbNTOS351 kbNTOS400 kbSDKWin32 kbWinOS95 GdiOpenGL 
Version           : WINDOWS:95
Platform          : WINDOWS 
Issue type        : kbprb 

Last Reviewed: June 15, 1999