cesium icon indicating copy to clipboard operation
cesium copied to clipboard

Replace FXAA with TXAA?

Open pjcozzi opened this issue 8 years ago • 3 comments

For some scenes, TAA may look better. I have only glanced at this so it needs some real research.

It uses a different sampling pattern over multiple frames.

https://bartwronski.com/2014/03/15/temporal-supersampling-and-antialiasing/

Recently added to Sketchfab: https://blog.sketchfab.com/introducing-temporal-anti-aliasing/

pjcozzi avatar Dec 10 '17 19:12 pjcozzi

When will it be updated?

duoduohappy avatar Dec 15 '17 08:12 duoduohappy

@duoduohappy no timeline as of now, but contributions are welcome if you would like to code this.

pjcozzi avatar Dec 15 '17 12:12 pjcozzi

Did some hacky one-off prototyping of TAA in this branch for a support issue. The implementation there jitters the projection matrix with small offset translations and resolves the frames with a post process stage. That works for purely static views. I started implementing a velocity buffer (reconstructed from the depth buffer) to attempt to avoid ghosting from camera movement.

  • The velocity buffer would need to be fixed up to mitigate ghosting from camera movement
  • Jittering the projection matrix produces stronger effects closer to the camera, so we'd need to make adjustments to improve effectiveness at long distances
  • If expected to work for dynamic scenes with animation, we'd need to figure out a strategy for handling that, such as motion vectors

ggetz avatar Apr 10 '25 19:04 ggetz