Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

vanne

dithering

This topic is 6300 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

sorry for spamming the forum, but ah I have trouble with something that looks like dithering when I blend together alot of polys on top of eachother, say smoke in a particle system. just textured quads. I set these states: glBlendFunc(GL_SRC_ALPHA,GL_ONE); glShadeModel(GL_SMOOTH); glHint(GL_POINT_SMOOTH_HINT,GL_NICEST); and even though I have 32bit enabled in windows it sure doesn''t look like it. (I have a GeForce1.) any clues?

Share this post


Link to post
Share on other sites
Advertisement
Check the internal format and the range of the alpha values.
Another thing to try is from the MSDN documentation:
"To optimize polygon antialiasing, use glBlendFunc(GL_SRC_ALPHA_SATURATE, GL_ONE)"

Share this post


Link to post
Share on other sites
Dithering is an incredibly annoying problem (unless of course, you want it to happen). I
haven''t really figured out a great way to stop the ugly stuff from happening in some of my demos
yet... but I''m working on it. I''ve found it extremely common in my particle demos, and I found
it INCREDIBLY often in Deus Ex.... annoying stuff.

------------------------------
Trent (ShiningKnight)
E-mail me
OpenGL Game Programming Tutorials

Share this post


Link to post
Share on other sites
i dont think its dithering thats the cause but lack of colour depth precision, not much u can do about it apart from use 32 bit colour + high quality internal format textures.some sgi machines can handle 48bit colour. carmack in a quite recent plan wrote about the need for greater colour depths for the same reason. an interesting read.

http://members.xoom.com/myBollux

Share this post


Link to post
Share on other sites

  • 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!