Hi Mikhail,

Thank you very much for your reply. 

I had previously tried that method, but with no success.
I am sure i am doing something wrong somewhere.

I have tried the following code:

osg::State * state = _viewer->getCamera ()->getGraphicsContext ()->getState ();

_physicalTexture->apply ( *state ); // This is the texture to be updated.

osg::Texture::Extensions * ext = osg::Texture::getExtensions ( 
state->getContextID (), true );

ext->glCompressedTexSubImage2D ( GL_TEXTURE_2D, 0, 0, 0, 128, 128, 
GL_COMPRESSED_RGBA_S3TC_DXT5_EXT, page->Tile->BufferSize, page->Tile->LoadTile 
() );

The LoadTile method returns a valid pointer to valid data. I have tested that 
previously.

This does not update the texture. It remains (aparently) unchanged in the 
render.

Thank you very much!

Best Regards,
Luciano

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=34134#34134





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to