Jump to content

  • Log In with Google      Sign In   
  • Create Account

glReadPixels & alpha channel problem


Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
4 replies to this topic

#1   Members   

122
Like
Likes
Like

Posted 05 September 2001 - 04:47 AM

I''m trying to read RGBA colors from the frame buffer using glReadPixels, but all my alpha''s are 255. Anyone encountered this problem before?

#2   Members   

528
Like
Likes
Like

Posted 05 September 2001 - 10:24 AM

does your card support destination alpha?
is your window created with destination alpha?
are u sure the alpha values of the pixels u read aint 255?

#3   Members   

122
Like
Likes
Like

Posted 05 September 2001 - 08:08 PM

yes
yes
yes

#4   Members   

122
Like
Likes
Like

Posted 05 September 2001 - 08:57 PM

Shit, got it!

glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGBA | GLUT_ALPHA | GLUT_DEPTH | GLUT_STENCIL);

instead of

glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGBA | GLUT_DEPTH | GLUT_STENCIL);

Damn!

#5   Members   

528
Like
Likes
Like

Posted 06 September 2001 - 10:53 AM

so it was
yes
no
yes
watch out not all cards support destination alpha, though i believe only the very old/bad ones dont




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.