Hi,
26.11.2010 17:11, Luciano da Silva wrote:
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.

In your code problem maybe what you have not allocated texture object. Could you please show how you initialize _phisycalTexture?


I think usgin subload callback would be better in your case.

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

Reply via email to