Martin Großer wrote:
Hello,
I have make a new message, because I replied another message and it
was not so good. I hope this is ok.
Ok, back to my problem.
Mourad thanks for your help. I try it and it seems that I lose the
half image information. When I have a image 12 x 12 I get a image 6x6.
I think the problem is that the unsigned char* can only handle 8 bits.
That's not the problem. If that were the problem, there would have to
be a dozen or more versions of setImage() to handle all the different
formats.
Try changing your setImage() call to this:
image->setImage(width, height, 1, GL_RGB16, GL_RGB, GL_UNSIGNED_SHORT,
(unsigned char*)data, osg::Image::NO_DELETE);
--"J"
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org