Jump to content

  • Log In with Google      Sign In   
  • Create Account

blending textured polys


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
1 reply to this topic

#1 Sebbi   Members   -  Reputation: 122

Like
Likes
Like

Posted 25 November 2001 - 06:06 AM

hi guys ! i am programming some kind of software where i need to blend textured polys with the background ... the texturemap has an alpha channel and i set the texture environment mode to GL_REPLACE (glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE)) so that the rgba value of my texturemap is used instead of the fragment color of the poly or stuff ... ok now i enable blending and i choose a blending func ... so that i can blend it with the background ... but on the edges of the opaque areas there is a very mysterious effect ... there is a little bit of the color of the texmap where alpha is 255 blended with the color of that areas of texmap where alpha is 0 ... if i use GL_NEAREST as texfilter it works but if i use GL_LINEAR it would'nt work ... so that i see this blending effect where no blended should be ... ok some of you may say that the teximage has allready this effect but it is produced mysteriously by opengl or my graphics board ... i don't know ... on the image there are just 0's and 255's alphavalues so that there is a hard boarder between the totally opaque and totally transparent areas ... maybe you can help me or know what the reason is ? may it be my graphics board ? maybe you need some kind of picture ? the good one: and the bad one: would be nice if someone has any kind of hint ! cu Edited by - Sebbi on November 25, 2001 2:59:32 PM

Sponsor:

#2 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 26 November 2001 - 09:17 AM

Sebbi

May you e-mail me the two pictures, the good and the bad one?
It seems that I have the same problem.
Thanks
Alberto

gabakko@tin.it





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