Re: [osg-users] reflection on mesh texture

2018-11-09 Thread Glenn Waldron
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 <
vnonnenmac...@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@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] reflection on mesh texture

2018-11-09 Thread Alberto Luaces
"Vinicius Nonnenmacher" writes:

> 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 ?

Hi Vinicius, I think it is a texture repeating pattern.  If you want to
avoid this effect, look for "seamless texture patterns" and programs to
do it (for example, the "texturize" plugin for GIMP).

-- 
Alberto

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] reflection on mesh texture

2018-11-06 Thread Vinicius Nonnenmacher
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@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org