Jump to content

  • Log In with Google      Sign In   
  • Create Account

texture and alpha blending


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
3 replies to this topic

#1 FatGarfield   Members   -  Reputation: 122

Like
Likes
Like

Posted 17 November 2001 - 12:10 AM

Need Help, Please I just write down the important code Here the code from NeHe''s OpenGL lesson 9: glBlendFunc(GL_SRC_ALPHA,GL_ONE); //then load B&W texture from bitmap ... glColor4ub(120, 200,100, 255); ... glTexCoord2f(0.0f, 0.0f); glVertex3f(-1.0f,-1.0f, 0.0f); ... so what do you think about the color of pixel( -1.0, -1.0, 0.0 ) Why? Please Help, Thanks

Sponsor:

#2 Serge K   Members   -  Reputation: 154

Like
Likes
Like

Posted 21 November 2001 - 09:10 PM

glVertex3f is not a vertex color, but coordinate.

#3 FatGarfield   Members   -  Reputation: 122

Like
Likes
Like

Posted 21 November 2001 - 09:23 PM

Thanks for help, but I think you didn''t understand my question clearly.
when I want to draw a point P:
1. using glColor4ub() to specify a color to the point P
2. load a bitmap and map from one point in the bitmap called
Q to the point P
then the color of Q and the color specified by glColor4f() will
blend, why and how ?

#4 Serge K   Members   -  Reputation: 154

Like
Likes
Like

Posted 21 November 2001 - 10:24 PM

quote:
Original post by FatGarfield
Thanks for help, but I think you didn''t understand my question clearly.


I guess - because nothing is clear in this question..

quote:

when I want to draw a point P:
1. using glColor4ub() to specify a color to the point P
2. load a bitmap and map from one point in the bitmap called
Q to the point P
then the color of Q and the color specified by glColor4f() will
blend, why and how ?


Look at the Texture Function - it controls blending between texture and fragment color.





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.



PARTNERS