Hi,
you can make an osg::Image and point it to existing data in memory. See
the "setImage" function of osg::Image. You need to pass the right pixel
format params etc. Also search the mail archives for setImage.
jp
Akilan Thangamani wrote:
Hi,
For displaying any .jpg/.tif file, we create texture and then doing so.
Using OSG how to display pixels from a buffer straightaway as it could be done
using openGL?
Is it possible to by-pass osgDB::readImageFile(..) to read image content from
buffer instead of from file?
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=25439#25439
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard.
The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.
This message has been scanned for viruses and dangerous content by MailScanner,
and is believed to be clean. MailScanner thanks Transtec Computers for their support.
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org