I too need to show images. Since osg is (and should be) 3d-based, the way to do is seemed to be to display a rectange Geometry infront of an orthographic camera, and set the rectangle texture to be the image.

Instead of this, I chose to use OpenCV (CV for Computer Vision), but you can also use gtk, qt or SDL.

Maybe another way to do it in osg would be to set the pixelbuffer to the image. Don't know how to do that though.

wanyama harold wrote:
Hi guys,
how do i get to load an image file.iam able to load
.osg file formats and i have set the directory path
that contains the image in the OSG_PATH.
the only issue is afte i read the image ie
osg::Image* image=osgDB::readImageFile("output1.png");
how can i now view it as it cant be viewed by the
osgViewer class.
thx guys


      ___________________________________________________________
Support the World Aids Awareness campaign this month with Yahoo! For Good 
http://uk.promotions.yahoo.com/forgood/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
begin:vcard
fn:Per Rosengren
n:Rosengren;Per
org:KTH;CVAP
adr:;;KTH;Stockholm;;SE-100 44;Sweden
email;internet:[EMAIL PROTECTED]
title:Ph.D. student
tel;work:+46 8 790 6203
tel;fax:+46 8 723 0302 
note:PGP keyID: 0xD40DD8E0
x-mozilla-html:FALSE
url:http://www.csc.kth.se/~perrose/
version:2.1
end:vcard

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to