[osg-users] get a Texel from an osg::Image

Jeremy Moles jeremy at emperorlinux.com
Fri Jul 11 07:39:57 PDT 2008


On Fri, 2008-07-11 at 11:17 +0000, ka Ming wrote:
> Hi,
> is there any possibility to get, for example the rgb value, out of an
> osg::Image.
> data() returns only an unsigned char*
> I need or I want an vec3 or with alpha value a vec4 as retrun value.
> Is there any solution.
> ming

osgWidget has a method:

	osgWidget::Widget::getImageColorAtXY()

...that does something like this if you want to see how I did it.

> 
> ______________________________________________________________________
> Gesendet von Yahoo! Mail. 
> Dem pfiffigeren Posteingang.
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




More information about the osg-users mailing list