Re: [osg-users] Loading an Image file

2008-02-19 Thread wanyama harold
thanks Guy and J-s for your advice on loading image files. i used the quad idea with texture of an image but all i got to see was black.Have u ever tried it b4? if so some help would be welcome ___ Support the World Aids Awareness

Re: [osg-users] Loading an image file

2008-02-19 Thread Mike Weiblen
Of wanyama harold Sent: Sunday, February 17, 2008 8:13 AM To: osg users Subject: [osg-users] Loading an image file 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

Re: [osg-users] Loading an image file

2008-02-18 Thread Jean-Sébastien Guay
Hello Guy, This method also creates geometry, I think those guys are trying to avoid geometry creation. I think the class osg::DrawPixels can do the trick, but I never tried it. It's a tradeoff. You can create geometry (ooh, one whole quad!) and then set it to absolute reference frame or

Re: [osg-users] Loading an image file

2008-02-18 Thread Guy
: Monday, February 18, 2008 6:20 PM To: OpenSceneGraph Users Subject: Re: [osg-users] Loading an image file Hello Guy, This method also creates geometry, I think those guys are trying to avoid geometry creation. I think the class osg::DrawPixels can do the trick, but I never tried it. It's

[osg-users] Loading an image file

2008-02-17 Thread wanyama harold
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

Re: [osg-users] Loading an image file

2008-02-17 Thread Per Rosengren
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

Re: [osg-users] Loading an image file

2008-02-17 Thread Jean-Sébastien Guay
Hello Per, 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. To that end, there is a utility function in the Geometry header.