You are using compressed textures in the ive file, right?
I figured out that the rgb plugin can't write compressed textures.
The only pixel formats that are supported are:
GLenum pixelFormat = img.getPixelFormat();
raw.sizeZ =
pixelFormat == GL_COLOR_INDEX? 1 :
pixelFormat == GL_RED? 1 :
pixelFormat == GL_GREEN? 1 :
pixelFormat == GL_BLUE? 1 :
pixelFormat == GL_ALPHA? 1 :
pixelFormat == GL_RGB? 3 :
pixelFormat == GL_BGR ? 3 :
pixelFormat == GL_RGBA? 4 :
pixelFormat == GL_BGRA? 4 :
pixelFormat == GL_LUMINANCE? 1 :
pixelFormat == GL_LUMINANCE_ALPHA ? 2 : 1;
When an compressed pixelformat (0x83f0) is encountered, it is treated as
an unknown pixel format. And hence 1 is used for sizeZ...
On Thu, 06 Aug 2009 14:42:03 +0200, Mach Bhai <sar...@dsi.co.ae> wrote:
So how can this issue be resolved ?
The issue can be solved by extending the rgb plugin, so that it can write
compressed textures.
OR
Don't compress your textures when you create the ive file...
--
Joakim Simonsson
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org