[osg-users] fixed size texture

Robert Osfield robert.osfield at gmail.com
Mon Aug 3 02:17:00 PDT 2015


Try changing the Texure type to Texture2D and the tex coordinates to 0 to
1.0.

On 3 August 2015 at 09:49, Vitaliy Polyakov <poljak181 at yandex.ru> wrote:

>
> robertosfield wrote:
> >
> > My guess there is a numerical precision issue on the texture
> coordinates.  Try setting the Texture wrap mode to CLAMP_TO_EDGE, via:
> >
> >
> >    texture->setWrap(osg::Texture::WRAP_S, osg::Texture::CLAMP_TO_EDGE);
> >
> >    texture->setWrap(osg::Texture::WRAP_T, osg::Texture::CLAMP_TO_EDGE);
> >
>
>
> It is a good idea! But setting the Texture wrap mode to CLAMP_TO_EDGE
> doesn't help... Nothing changed.
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=64572#64572
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20150803/6ee1cb87/attachment-0003.htm>


More information about the osg-users mailing list