[osg-users] fixed size texture

Vitaliy Polyakov poljak181 at yandex.ru
Mon Aug 3 03:48:13 PDT 2015


robertosfield wrote:
> My best guess is that the hardware is rounding down the tex coords when sampling the texture so that it's not always picking out the right hand set of pixels due to numerical precision issues.  Try setting the Border of the osg::Texture2D::setBorderColor(Vec4(r,g,b,a)); and set the wrap mode to CLAMP_TO_BORDER.
> 


Unfortunately, no effect. 
Now I trying to use specific vertex shader for correct tex coord rounding.

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=64579#64579








More information about the osg-users mailing list