[osg-users] reflection on mesh texture

Glenn Waldron gwaldron at gmail.com
Fri Nov 9 13:34:01 PST 2018


Vinicius,

That looks like texture aliasing. Enable mipmapping by setting a
minification filter like so:

texture->setFilter(osg::Texture::MIN_FILTER,
osg::Texture::LINEAR_MIPMAP_LINEAR);
texture->setFilter(osg::Texture::MAG_FILTER, osg::Texture::LINEAR);

Good luck.

Glenn Waldron / osgEarth


On Tue, Nov 6, 2018 at 8:55 PM Vinicius Nonnenmacher <
vnonnenmacher at gmail.com> wrote:

> Hi,
>
> I am trying to understand what are these 'wavy' effect. It changes
> depending on the camera position. Is it my texture that is beeing
> replicated for every triangle on the terrain mesh ? or the material
> attached to it ?
>
>
>
>
> Thank you!
>
> Cheers,
> Vinicius
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=75171#75171
>
>
>
>
> Attachments:
>
> http://forum.openscenegraph.org//files/screenshot_from_2018_11_06_17_41_27_139.png
>
>
> _______________________________________________
> 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/20181109/956d1044/attachment.html>


More information about the osg-users mailing list