Results 1 to 2 of 2

Thread: Color picking is not working on Geforce Go 6150

  1. #1
    Senior Member Regular Contributor
    Join Date
    Dec 2002
    Posts
    120

    Color picking is not working on Geforce Go 6150

    I created a program that implement the Color picking method (render objects with unique color) is not working on Geforce Go 6150. However it works on other graphic cards. Anyone know why?

  2. #2
    Senior Member Regular Contributor remdul's Avatar
    Join Date
    Mar 2004
    Location
    The Netherlands
    Posts
    346

    Re: Color picking is not working on Geforce Go 6150

    AFAIK, the OpenGL specification does not strictly require that the color you pass to GL will be exactly the same if you read them back from the framebuffer, so there may be some variation.

    First of all, check if the display/frame buffer isn't 16-bit! Make sure it has the right bit depth, z-buffering etc.

    2nd, call SwapBuffers to make sure everything gets drawn properly. Could be a driver bug.

    3rd, when converting the index to color, and you read the rasterized colors back, take in account a margin. E.g. so the RGB components can be off a few values, and still be converted back to the same index. I never tried this in my application, but I think it should technically be possible.

Similar Threads

  1. Picking an Object not working
    By Zubaja in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 04-02-2014, 01:24 AM
  2. Picking is not working properly!
    By mehmedean in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 01-11-2010, 04:24 AM
  3. Picking is not working properly!
    By mehmedean in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 01-11-2010, 04:22 AM
  4. Picking not working...
    By aofmike388 in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 10-21-2009, 02:37 PM
  5. Z-buffer picking, gluUnProject picking not working
    By Icetigris in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 07-29-2008, 10:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean