Re: [osg-users] Problem with osgEarth::ImageOverlay::setAlpha

2012-04-27 Thread Jason Beverage
This bug is fixed in the trunk of osgEarth, try pulling and retest. Thanks, Jason On Mon, Apr 23, 2012 at 10:33 AM, Ou Yang vrcraze2...@gmail.com wrote: Hi, The bug has been found in ImageOverlay::init() method. The original code is: osg::Vec4Array* colors = new osg::Vec4Array(1);

Re: [osg-users] Problem with osgEarth::ImageOverlay::setAlpha

2012-04-23 Thread Ou Yang
Hi, The bug has been found in ImageOverlay::init() method. The original code is: osg::Vec4Array* colors = new osg::Vec4Array(1); (*colors)[0] = osg::Vec4(1,1,1,_alpha); geometry-setColorArray( colors ); geometry-setColorBinding( osg::Geometry::BIND_OVERALL ); when change it to:

[osg-users] Problem with osgEarth::ImageOverlay::setAlpha

2012-02-21 Thread Ou Yang
Hi, I use osgEarth::ImageOverlay::setAlpha(float alpha) to change the transparency of images, which was draped on terrain, just like what google earth does, but this method seems has no effect at all! It also doesn't work in the sample osgearth_imageoverlay. Is it a bug? I use openscenegraph

Re: [osg-users] Problem with osgEarth::ImageOverlay::setAlpha

2012-02-21 Thread Chris Hanson
I use osgEarth::ImageOverlay::setAlpha(float alpha) to change the transparency of images, which was draped on terrain, just like what google earth does, but this method seems has no effect at all! It also doesn't work in the sample osgearth_imageoverlay. Is it a bug? I use openscenegraph

Re: [osg-users] Problem with osgEarth::ImageOverlay::setAlpha

2012-02-21 Thread Glenn Waldron
Yes, appears to be malfunctioning. I will open an issue for it...thanks. http://github.com/gwaldron/osgearth/issues/66https://github.com/gwaldron/osgearth/issues/66 Glenn Waldron / @glennwaldron On Wed, Feb 8, 2012 at 11:38 AM, Ou Yang vrcraze2...@gmail.com wrote: Hi, I use