Hi Shamim,

On 30/06/10 20:51 , Akhtar Shamim wrote:
> I have a model exported in IVE format. This model is just a quad with a 
> texture mapped
> onto it. I want to retrieve the original image from osg::Image object and 
> convert it to
> JPG/PNG or any other format. Seems simple, but I am not sure what is causing 
> the problem.
> 
> The image when loaded using osgviewer looks perfectly fine. But when I debug 
> and look at
> the contents of the osg::Image object I find that both the 
> InternalTextureFormat and the
> PixelFormat are invalid.
> 
>         _internalTextureFormat    33776    int
>         _pixelFormat    33776    unsigned int

They are not invalid, decimal 33776 is hex 0x83f0 is 
GL_COMPRESSED_RGB_S3TC_DXT1_EXT.
In the process of converting to .ive they have been compressed to speed up 
texture upload.

As far as I know no image exporter supports writing these compressed images.

You could render the texture to a framebuffer and read that back... :-/

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

Reply via email to