Hi Brad,

On Tue, Mar 2, 2010 at 9:03 PM, Brad Colbert <[email protected]> wrote:

> Robert,
>
> I just upgraded everything to 2.9.6.  In the process I built one of our
> sensor capable databases which relies on data that is in the alpha
> channel of the terrain imagery.  To my surprise, the terrain was no
> translucent.  I found that in GeometryTechnique that a stateset is set
> for each PagedLOD that enables blending if the image is RGBA.
>
> I guess my question is if this is absolutely necessary?  This is a bit
> of a big hammer solution, I think.
> Can't the user just enable blending on the osg::Node* that represents
> the entire database?
>

osgTerrain doesn't know that your alpha is not a real alpha, it is simply
trying to do the right thing by your data.

The fact that you are interpreting alpha in a non standard way, I presume in
a shader, suggests that osgTerrain needs extra controls for specifying
whether it should require blending or not, or be automatic - i.e. RGB no
blending, RGBA to enable blending.  VirtualPlanetBuilder would need this
option as well.  Adding an enum hint into osgTerrain::Terrain would probably
be the best way to tackle this, and then add support for this into
GeometryTechnique and VirtualPlanetBuilder.

Feel free to dive in and implement it :-)

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

Reply via email to