Hi Martin, On 4/03/11 1:32 , "Martin Großer" wrote: > I would like write a 16 bit image. I tried the follow: > > // image Data > float* data = new float[width * height * depth];
(float != 16-bit, but float seems to be what you're after? 'depth' == 4? For RGBA?) > // set data to image > img->setImage(width, height, 1, GL_RGBA16F_ARB, GL_RGBA, GL_FLOAT, (unsigned > char*) data, Image::USE_NEW_DELETE); > > osgDB::writeImageFile(*img, "test_image.tiff"); > > How can I do this? My divining rod seems to be broken. What is the problem again? Do you get an error? Does it crash? Does it look wrong? Cheers, /ulrich _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

