Hello Thibault,
> I might be wrong, but osg::Image::getInternalTextureFormat() returns 0x1908
> on an already allocated image (with allocateImage()), which happens to be
> GL_RGBA. You pass 8 (32/4) as the internal texture format for your image. It
> might be worth having a look at that
I'm actually passing 4 (32/8) which is the number of bytes per pixel for a 32bpp
image.
All the other examples I have seen (like anisotropiclighting.cpp, cartoon.cpp
which are part of the OSG examples) used a hard-coded value for that argument
(most were also 4). I'll check if passing GL_RGBA works/makes a difference...
Thanks for your suggestion.
J-S
--
______________________________________________________
Jean-Sebastien Guay [EMAIL PROTECTED]
http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/