Discussion:
[osg-users] reflection on mesh texture
Vinicius Nonnenmacher
2018-11-06 19:58:31 UTC
Permalink
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:
Loading Image...
Alberto Luaces
2018-11-09 09:11:51 UTC
Permalink
Post by 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 ?
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
Glenn Waldron
2018-11-09 21:34:01 UTC
Permalink
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 <
Post by 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
------------------
http://forum.openscenegraph.org/viewtopic.php?p=75171#75171
http://forum.openscenegraph.org//files/screenshot_from_2018_11_06_17_41_27_139.png
_______________________________________________
osg-users mailing list
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Continue reading on narkive:
Loading...