Jump to content
  • Advertisement
Sign in to follow this  
Elantre

Texture vs Blending?

This topic is 4864 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi all, it's quite simple thing i am doing here; i read some texture (not mapped to anything yet), and left GL_TEXTURE_2D enabled; then i try to draw some simpel points providing glBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA); but the points just won't show up; until i found that if i disable GL_TEXTURE_2D before drawing the blended points.... what's the reason behind this situation? thx all... plus: i am using jogl

Share this post


Link to post
Share on other sites
Advertisement
As you left the state enabled when OGL came to draw the points it saw that it needed to use a texture and thus looked at the active texture coords, it saw it only had one texture unit active and thus looked at the location it stored teh current texture coords, as these texture coords default to (0,0,0,1) (iirc) that is where it tried to sample before applying it to the final points output colour.

When you disabled it you stopped that.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!