Hi John,
Try:
stateset->getTextureAttrbiute(0, osg::StateAttribute::TEXTURE);
Robert.
On 12/18/06, Argentieri, John-P63223 <[EMAIL PROTECTED]> wrote:
Hello again Robert and Gang.
Here is a geode from my .ive database after I hit 'o' in the viewer.
Geode {
DataVariance STATIC
name "p7665_15"
nodeMask 0xffffffff
cullingActive TRUE
StateSet {
DataVariance STATIC
rendering_hint DEFAULT_BIN
renderBinMode INHERIT
GL_CULL_FACE ON
GL_LIGHTING ON
Use Material_2
Use CullFace_3
textureUnit 0 {
GL_TEXTURE_2D ON
Texture2D {
DataVariance STATIC
wrap_s REPEAT
wrap_t REPEAT
wrap_r CLAMP
min_filter LINEAR
mag_filter LINEAR
maxAnisotropy 1
borderColor 0 0 0 0
borderWidth 0
useHardwareMipMapGeneration TRUE
unRefImageDataAfterApply TRUE
internalFormatMode USE_IMAGE_DATA_FORMAT
resizeNonPowerOfTwo TRUE
}
Use TexEnv_4
}
}
I can't seem to get the texture using:
spTexture = (osg::Texture*)( spStateSet->getAttribute(
osg::StateAttribute::TEXTURE ) );
All I want to do is change the min_filter on all the textures in this .ive
file.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/