How can I stop pixel seams appearing in adjacent mesh boundaries due to floating point imprecision?
Posted
by
ufomorace
on Game Development
See other posts from Game Development
or by ufomorace
Published on 2014-08-17T10:29:42Z
Indexed on
2014/08/20
4:31 UTC
Read the original article
Hit count: 193
Graphics cards are mathematically imprecise.
So when some meshes are joined by their borders, the graphics card often makes mistakes and decides that some pixels at the seam represent neither object, and unwanted pixels appear.
It's a natural behaviour on all graphics cards. How are such worries avoided in Pro Games? Batching? Shaders? Different tangent vectors? Merging? Overlaping seams? Dark backgrounds? Extra vertices at borders? Z precision? Camera distance tweaks?
Screencap of a fix that ended up not working:
© Game Development or respective owner