Jump to content
  • Advertisement
Sign in to follow this  
ic0de

OpenGL FXAA in opengl

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

I am planning to replace the MSAA(antialiasing) in game with FXAA(for speed) but I cannot seem to find any info on the web explaining how FXAA actually works much less anything specific to OpenGL, could somebody explain to me how FXAA works and give me any OpenGL specific info?

Share this post


Link to post
Share on other sites
Advertisement
If you haven't seen the whitepaper it is here. It appears to be a two step process. First do an edge detect algorithm based on the current screen and output the edges to a new texture, use that new texture and wher there are edges you do a blur. You can discard non-edge pixels by turning on alpha test or some early reject so that the pixel shader only runs on the few select edge pixels in your texture.
http://developer.download.nvidia.com/assets/gamedev/files/sdk/11/FXAA_WhitePaper.pdf

Share this post


Link to post
Share on other sites
It's a single-step process. You just render your scene to a texture, then you draw a full-screen quad using the FXAA shader and that texture as input.

It's assumed that if you're going to be integrating FXAA that you already know how to perform full-screen post-processing effects. If you're new to this, perhaps look up some OpenGL post processing tutorials first.

Share this post


Link to post
Share on other sites
Thanks for the whitepaper, I couldn't find it

oh and btw I already know how to do postfx

Share this post


Link to post
Share on other sites
Use the code provided by Timothy Lottes at NVIDIA: http://timothylottes.blogspot.com/2011/07/nvidia-fxaa-39-released.html

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!