HI Ethan, Texture filter is controlled per osg::Texture, you can't override the filtering without overriding a the texturing.
If you want to modify the filtering of the textures that an osgTerrain based database they you'll need to load the scene graph then search the scene graph to locate the TerrainTile, from these you can get the color layers, and each of these layer with have the MinFilter and MagFilter. Robert. On 20 March 2012 14:38, Ethan Fahy <[email protected]> wrote: > And if it's not possible, is there any way to change the filters once I've > read a terrain.ive file into an osg project? I've seen this code snippet: > > > Code: > > osg::osg::Node* terrain = osgDB::readNodeFile("terrain.ive"); > osg::Texture2D* tex = new osg::Texture2D; > tex->setFilter(osg::Texture::MIN_FILTER, osg::Texture::NEAREST); > tex->setFilter(osg::Texture::MAG_FILTER, osg::Texture::NEAREST); > terrain->getOrCreateStateSet()->setTextureAttribute(0, tex.get(), > osg::StateAttribute::ON | osg::StateAttribute::OVERRIDE); > > > > > but that creates a new texture2d object that overwrites all of my other > textures instead of just changing the filter type. Any advice on this? > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=46441#46441 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

