Hi Brad,

The ideal of this line of code is to allow compositing of layers of
imagery such that the alpha'd out imagery doesn't have any effect,
this is the usual way to tackle things.

I'm you case you seem to have data that has an alpha of 0, but you
still want it to have an effect.  Perhaps we could have an option to
set the value or not when the alpha value of 0, but just disabling
this line of code is certainly wrrong.

Robert.

On 10/18/06, Brad Colbert <[EMAIL PROTECTED]> wrote:
I found the problem!

In osg::Terrain in the file DataSet.cpp starting at line 814 is the
following code:

if (hasAlpha)
{
  // only copy over source pixel if its alpha value is not 0
  if (sourceColumnPtr[3]!=0)
  {


The problem is that it skips copying the color values if the alpha is
zero.  This is the wrong thing to do because those values may be very
important.  Simply commenting out the code fixed my problem.


if (hasAlpha)
{
  // only copy over source pixel if its alpha value is not 0
  //if (sourceColumnPtr[3]!=0)
  // BDC The values should still be copied since they may be very
important.
  {



Cheers,

Brad


---
Renaissance Sciences Corporation
O/M: 480 290-3997
F:   425 675-8044

_______________________________________________
osg-submissions mailing list
[EMAIL PROTECTED]
http://openscenegraph.net/mailman/listinfo/osg-submissions

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to