Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: G200 & OpenGL problem

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2000
    Location
    Chengdu,Sichuan,P.R.China
    Posts
    2

    G200 & OpenGL problem

    Now we are developing our application using OpenGL on Window NT 4.0. We know that G200, G400 don't support OpenGL acceleration on NT4.0, we don't expect that it can accelerate the OpenGL rendering. But we do want to get the correct result image rendered.
    Now we meet some problem as follow:
    (1) using glReadPixel, we can't get the alpha value(the value is always 255 even though the area is transparent), when we use other card like ELSA Sernergy II or 3DLabs Oxygen GVX1, they all can get the alpha value correctly. Are there any setting should we set?
    (2) texture mapping is very slow.

  2. #2
    Junior Member Regular Contributor
    Join Date
    Apr 2000
    Location
    Redlands, CA, USA
    Posts
    233

    Re: G200 & OpenGL problem

    > We know that G200, G400 don't support OpenGL acceleration on NT4.0, we don't expect that it can accelerate the OpenGL rendering.

    This mean, that you are dealing with MS software-only OpenGL implementation.
    And yes, texture mapping IS very slow in this case.

    About alpha value:
    If color buffer has no alpha channel OpenGL uses 1.0 (=255) as Destination_Alpha.
    Are you sure, that you have alpha channel in color buffer? If you work in 16bpp (HiColor) - you have only RGB.

    You can check it:

    PIXELFORMATDESCRIPTOR pixelFormatDescriptor;
    HDC hDC;
    int nPixelFormat;

    // current pixel format index
    iPixelFormat = GetPixelFormat(hDC);

    // description of pixel format
    DescribePixelFormat(hDC, nPixelFormat, sizeof(PIXELFORMATDESCRIPTOR), &pixelFormatDescriptor);

    if(!pixelFormatDescriptor.cAlphaBits)
    {
    // No Alpha channel
    }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •